Skip to content

Commit

Permalink
Remove unnecessary num crate from asio-sys
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchmindtree committed Jul 4, 2019
1 parent c2b7c7f commit 86e3366
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions asio-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ cc = "1.0.25"

[dependencies]
lazy_static = "1.0.0"
num = "0.1.42"
num-traits = "0.2.2"
num-derive = "0.2.0"
num-derive = "0.2"
num-traits = "0.2"
3 changes: 2 additions & 1 deletion asio-sys/src/bindings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mod asio_import;
#[macro_use]
pub mod errors;

use num_traits::FromPrimitive;
use self::errors::{AsioError, AsioErrorWrapper, LoadDriverError};
use std::ffi::CStr;
use std::ffi::CString;
Expand Down Expand Up @@ -320,7 +321,7 @@ impl Driver {
};
unsafe {
asio_result!(ai::ASIOGetChannelInfo(&mut channel_info))?;
Ok(num::FromPrimitive::from_i32(channel_info.type_).expect("failed to cast sample type"))
Ok(FromPrimitive::from_i32(channel_info.type_).expect("failed to cast sample type"))
}
}

Expand Down
3 changes: 2 additions & 1 deletion asio-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
#[macro_use]
extern crate lazy_static;

extern crate num;
#[allow(unused_imports)]
#[macro_use]
extern crate num_derive;
#[allow(unused_imports)]
extern crate num_traits;

#[cfg(asio)]
pub mod bindings;
Expand Down

0 comments on commit 86e3366

Please sign in to comment.