From bd4c89af3bcac29fac7d2838877c5cf0d3426c4e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 Apr 2016 20:48:17 +0200 Subject: [PATCH] Use unused results --- libimagrt/src/configuration.rs | 6 +++--- libimagrt/src/runtime.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libimagrt/src/configuration.rs b/libimagrt/src/configuration.rs index a7590def..f270abbf 100644 --- a/libimagrt/src/configuration.rs +++ b/libimagrt/src/configuration.rs @@ -252,10 +252,10 @@ fn fetch_config(rtp: &PathBuf) -> Result { let mut parser = Parser::new(&content[..]); let res = parser.parse(); if res.is_none() { - write!(stderr(), "Config file parser error:"); + write!(stderr(), "Config file parser error:").ok(); for error in parser.errors { - write!(stderr(), "At [{}][{}] <> {}", error.lo, error.hi, error); - write!(stderr(), "in: '{}'", &content[error.lo..error.hi]); + write!(stderr(), "At [{}][{}] <> {}", error.lo, error.hi, error).ok(); + write!(stderr(), "in: '{}'", &content[error.lo..error.hi]).ok(); } None } else { diff --git a/libimagrt/src/runtime.rs b/libimagrt/src/runtime.rs index de337b8c..d5fd69aa 100644 --- a/libimagrt/src/runtime.rs +++ b/libimagrt/src/runtime.rs @@ -93,8 +93,8 @@ impl<'a> Runtime<'a> { }; if is_debugging { - write!(stderr(), "Config: {:?}\n", cfg); - write!(stderr(), "Store-config: {:?}\n", store_config); + write!(stderr(), "Config: {:?}\n", cfg).ok(); + write!(stderr(), "Store-config: {:?}\n", store_config).ok(); } Store::new(storepath, store_config).map(|mut store| {