Use unused return values from write_all()
This commit is contained in:
parent
e46fb41dd2
commit
1ddbaae9e0
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
open::that(&temppath[..]).is_ok()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue