1
Fork 0

Add quotes around filename in Backtrace debug

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

View file

@ -197,7 +197,7 @@ impl fmt::Debug for BacktraceSymbol {
}
if let Some(fname) = self.filename.as_ref() {
write!(fmt, ", file: {:?}", fname)?;
write!(fmt, ", file: \"{:?}\"", fname)?;
}
if let Some(line) = self.lineno.as_ref() {