~matthiasbeyer/imag

a8bb180a6a20b7b1dda7682b3fb5857e230ccb4c — flip1995 2 years ago d377a99
[No-auto] lib/entry/view: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
M lib/entry/libimagentryview/src/builtin/md.rs => lib/entry/libimagentryview/src/builtin/md.rs +2 -2
@@ 59,10 59,10 @@ impl<'a> Viewer for MarkdownViewer<'a> {

        ::mdcat::push_tty(sink,
                          TerminalCapabilities::ansi(),
                          self.termsize.clone(),
                          self.termsize,
                          parser,
                          base_dir,
                          self.resource_access.clone(),
                          self.resource_access,
                          syntax_set)
        .map_err(|e| e.compat())
        .map_err(::failure::Error::from)

M lib/entry/libimagentryview/src/builtin/stdout.rs => lib/entry/libimagentryview/src/builtin/stdout.rs +1 -1
@@ 60,7 60,7 @@ impl Viewer for StdoutViewer {
        where W: Write
    {
        if self.view_header {
            let header = to_string(e.get_header()).unwrap_or(String::from("TOML Parser error"));
            let header = to_string(e.get_header()).unwrap_or_else(|_| String::from("TOML Parser error"));
            writeln!(sink, "{}", header)?;
        }