We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b1960e commit 8d66d57Copy full SHA for 8d66d57
1 file changed
src/err/mod.rs
@@ -692,7 +692,7 @@ impl core::fmt::Display for PyErr {
692
let type_name = value.get_type().qualname().map_err(|_| core::fmt::Error)?;
693
write!(f, "{type_name}")?;
694
if let Ok(s) = value.str() {
695
- write!(f, ": {}", &s.to_string_lossy())
+ write!(f, ": {}", s.to_string_lossy())
696
} else {
697
write!(f, ": <exception str() failed>")
698
}
0 commit comments