Remove quotes around unknown fn placeholder in backtrace

This commit is contained in:
David Tolnay 2020-02-13 00:11:16 -08:00
parent 3dbade652e
commit 3ba89e8750
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -193,7 +193,7 @@ impl fmt::Debug for BacktraceSymbol {
if let Some(fn_name) = self.name.as_ref().map(|b| backtrace::SymbolName::new(b)) { if let Some(fn_name) = self.name.as_ref().map(|b| backtrace::SymbolName::new(b)) {
write!(fmt, "fn: \"{:#}\"", fn_name)?; write!(fmt, "fn: \"{:#}\"", fn_name)?;
} else { } else {
write!(fmt, "fn: \"<unknown>\"")?; write!(fmt, "fn: <unknown>")?;
} }
if let Some(fname) = self.filename.as_ref() { if let Some(fname) = self.filename.as_ref() {