diff --git a/src/util/mod.rs b/src/util/mod.rs index 478cf722..93118714 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -16,36 +16,10 @@ pub use util::spotify_id::{SpotifyId, FileId}; pub use util::arcvec::ArcVec; pub use util::subfile::Subfile; -#[macro_export] -macro_rules! eprintln( - ($($arg:tt)*) => ( - { - use std::io::Write; - writeln!(&mut ::std::io::stderr(), $($arg)* ).unwrap() - } - ) -); -#[macro_export] -macro_rules! eprint( - ($($arg:tt)*) => ( - { - use std::io::Write; - write!(&mut ::std::io::stderr(), $($arg)* ).unwrap() - } - ) -); - pub fn rand_vec(rng: &mut G, size: usize) -> Vec { rng.gen_iter().take(size).collect() } -pub fn hexdump(data: &[u8]) { - for b in data.iter() { - eprint!("{:02X} ", b); - } - eprintln!(""); -} - pub trait IgnoreExt { fn ignore(self); }