remove Some from fn name

This commit is contained in:
Jane Lusby 2020-02-10 15:48:09 -08:00
parent 87117783fb
commit 70c9133014

View File

@ -185,7 +185,7 @@ impl fmt::Debug for BacktraceSymbol {
let mut dbg = fmt.debug_struct("");
if let Some(fn_name) = self.name.as_ref().map(|b| backtrace::SymbolName::new(b)) {
dbg.field("fn", &fn_name);
dbg.field("fn", &format_args!("\"{}\"", fn_name));
} else {
dbg.field("fn", &"<unknown>");
}