From b00befbcaf37c1cf746860721a740f81da7a5ec6 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 5 Jan 2016 16:33:13 +0100 Subject: [PATCH] Use unused return value by wrapping in try!() --- src/module/notes/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/notes/mod.rs b/src/module/notes/mod.rs index 917d7d0a..cefee621 100644 --- a/src/module/notes/mod.rs +++ b/src/module/notes/mod.rs @@ -496,7 +496,7 @@ impl<'a> Module<'a> for Notes<'a> { impl<'a> Debug for Notes<'a> { fn fmt(&self, fmt: &mut Formatter) -> FMTResult { - write!(fmt, "[Module][Notes]"); + try!(write!(fmt, "[Module][Notes]")); Ok(()) }