From 45b093ea596a8397360e2bd0f2db06a0ee273a08 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 6 Sep 2017 08:50:57 -0700 Subject: [PATCH] Use `write_all()` to write to write an entire string rather than `write()`. https://github.com/rust-lang-nursery/rust-clippy/wiki#unused_io_amount --- cranelift/src/cton-util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cranelift/src/cton-util.rs b/cranelift/src/cton-util.rs index 3d9b979e2f..bd104e9d5f 100644 --- a/cranelift/src/cton-util.rs +++ b/cranelift/src/cton-util.rs @@ -96,7 +96,7 @@ fn main() { if !msg.ends_with('\n') { msg.push('\n'); } - io::stderr().write(msg.as_bytes()).unwrap(); + io::stderr().write_all(msg.as_bytes()).unwrap(); process::exit(1); } }