Skip to content

Commit c3c591a

Browse files
committed
Make code compiles with rust 1.32.0 stable
1 parent 492cf35 commit c3c591a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coord/numeric.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ macro_rules! make_numeric_coord {
3333
pub struct $name($type, $type);
3434
impl From<Range<$type>> for $name {
3535
fn from(range: Range<$type>) -> Self {
36-
return Self(range.start, range.end);
36+
return $name(range.start, range.end);
3737
}
3838
}
3939
impl Ranged for $name {

0 commit comments

Comments
 (0)