aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/util/debug.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/util/debug.rs')
-rw-r--r--src/components/util/debug.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/util/debug.rs b/src/components/util/debug.rs
index 3c7e11b5707..0cebc305a27 100644
--- a/src/components/util/debug.rs
+++ b/src/components/util/debug.rs
@@ -10,18 +10,18 @@ use std::mem::size_of;
fn hexdump_slice(buf: &[u8]) {
let mut stderr = io::stderr();
- stderr.write(bytes!(" "));
+ stderr.write(bytes!(" ")).unwrap();
for (i, &v) in buf.iter().enumerate() {
let output = format!("{:02X} ", v as uint);
- stderr.write(output.as_bytes());
+ stderr.write(output.as_bytes()).unwrap();
match i % 16 {
- 15 => { stderr.write(bytes!("\n ")); },
- 7 => { stderr.write(bytes!(" ")); },
+ 15 => { stderr.write(bytes!("\n ")).unwrap(); },
+ 7 => { stderr.write(bytes!(" ")).unwrap(); },
_ => ()
}
- stderr.flush();
+ stderr.flush().unwrap();
}
- stderr.write(bytes!("\n"));
+ stderr.write(bytes!("\n")).unwrap();
}
pub fn hexdump<T>(obj: &T) {