diff --git a/src/algorithm/translate.rs b/src/algorithm/translate.rs index 3a0677439..a55729cbb 100644 --- a/src/algorithm/translate.rs +++ b/src/algorithm/translate.rs @@ -1,4 +1,4 @@ -use num_traits::{Float, FromPrimitive}; +use num_traits::Float; use algorithm::map_coords::MapCoords; pub trait Translate { @@ -26,7 +26,7 @@ pub trait Translate { } impl Translate for G - where T: Float + FromPrimitive, + where T: Float, G: MapCoords { fn translate(&self, xoff: T, yoff: T) -> Self {