Skip to content

Commit

Permalink
Removed the unnecessary trait bound on Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Sep 1, 2017
1 parent f4b646d commit 9b4a16b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithm/translate.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use num_traits::{Float, FromPrimitive};
use num_traits::Float;
use algorithm::map_coords::MapCoords;

pub trait Translate<T> {
Expand Down Expand Up @@ -26,7 +26,7 @@ pub trait Translate<T> {
}

impl<T, G> Translate<T> for G
where T: Float + FromPrimitive,
where T: Float,
G: MapCoords<T, T, Output=G>
{
fn translate(&self, xoff: T, yoff: T) -> Self {
Expand Down

0 comments on commit 9b4a16b

Please sign in to comment.