diff options
Diffstat (limited to 'src/logging.rs')
-rw-r--r-- | src/logging.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging.rs b/src/logging.rs index 893a39a2..1f51d2b2 100644 --- a/src/logging.rs +++ b/src/logging.rs @@ -137,7 +137,7 @@ impl log::Log for Logger { record.file().unwrap_or("?"), record.line() .map(|l| l.to_string()) - .unwrap_or("?".to_string()), + .unwrap_or_else(|| "?".into()), record.args()) } else { format!("[{}] [{}] {}\n", |