From 1ddbaae9e0d233150b19f8699b5290431e623f0f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 5 Jan 2016 16:35:14 +0100 Subject: [PATCH] Use unused return values from write_all() --- src/module/notes/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/module/notes/mod.rs b/src/module/notes/mod.rs index e20e79a5..09a2a2f8 100644 --- a/src/module/notes/mod.rs +++ b/src/module/notes/mod.rs @@ -211,7 +211,12 @@ impl<'a> Notes<'a> { } }; - tempfile.write_all(MarkdownParser::new(&s).to_html_page().as_ref()); + tempfile.write_all(MarkdownParser::new(&s).to_html_page().as_ref()) + .map_err(|e| { + error!("Could not write HTML to file: {}", temppath); + debug!("Could not write HTML to file: {:?}", e); + }) + .ok(); open::that(&temppath[..]).is_ok() }