diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5,7 +5,7 @@ pub mod scene; pub mod trace; pub mod sample; -use std::ops::{Add, Sub, Mul, DivAssign}; +use std::ops::{Add, Sub, Mul, DivAssign, Neg}; use std::cmp; use std::fmt; @@ -18,6 +18,7 @@ pub trait Number: Sub<Output = Self> + Add<Output = Self> + Mul<Output = Self> + + Neg<Output = Self> + DivAssign + fmt::Display {} |