diff options
author | flip1995 <hello@philkrones.com> | 2019-08-27 10:28:52 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-08-28 18:18:41 +0200 |
commit | a8bb180a6a20b7b1dda7682b3fb5857e230ccb4c (patch) | |
tree | 4e3cd342011385ba2d9e733492db04bfa4ffb5a9 /lib/entry/libimagentryview/src/builtin/stdout.rs | |
parent | d377a999cb4e0b81685376bcf73f4270f7c7dd3e (diff) |
[No-auto] lib/entry/view: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/entry/libimagentryview/src/builtin/stdout.rs')
-rw-r--r-- | lib/entry/libimagentryview/src/builtin/stdout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/entry/libimagentryview/src/builtin/stdout.rs b/lib/entry/libimagentryview/src/builtin/stdout.rs index 2706ca4a..6df89abe 100644 --- a/lib/entry/libimagentryview/src/builtin/stdout.rs +++ b/lib/entry/libimagentryview/src/builtin/stdout.rs @@ -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)?; } |