diff options
Diffstat (limited to 'bin/core/imag-diagnostics/src/lib.rs')
-rw-r--r-- | bin/core/imag-diagnostics/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/core/imag-diagnostics/src/lib.rs b/bin/core/imag-diagnostics/src/lib.rs index 78161d79..5517d622 100644 --- a/bin/core/imag-diagnostics/src/lib.rs +++ b/bin/core/imag-diagnostics/src/lib.rs @@ -92,7 +92,7 @@ impl Diagnostic { Some(_) => "Non-String type in 'imag.version'".to_owned(), None => "No version".to_owned(), }) - .unwrap_or("Error reading version".to_owned()), + .unwrap_or_else(|_| "Error reading version".to_owned()), header_sections: match entry.get_header() { &Value::Table(ref map) => map.keys().count(), _ => 0 |