Get rid of num-traits crate

Turns out the only use was as a private bound which was unused within
that method.
This commit is contained in:
Andreas Molzer committed 2019-11-12 20:06:02 +01:00
1 parent 07e8501ad6
commit 7b672998db
3 files changed
+1 -4

No files matched your search

+1 -2
View File
@@ -1,4 +1,3 @@
use num_traits::{Num};
use std::collections::HashMap;
use std::io::{self, Read, Seek};
use std::cmp;
@@ -236,7 +235,7 @@ impl Wrapping for u16 {
fn rev_hpredict_nsamp<T>(image: &mut [T], size: (u32, u32), samples: usize)
where
T: Num + Copy + Wrapping,
T: Copy + Wrapping,
{
let width = size.0 as usize;
let height = size.1 as usize;
-1
View File
@@ -9,7 +9,6 @@
extern crate byteorder;
extern crate lzw;
extern crate miniz_oxide;
extern crate num_traits;
pub mod decoder;
pub mod encoder;