Closed nyurik closed 1 year ago
For some reason, fmt::Display for Error uses an unusual form match &self.inner { &Value(ref err) => err.fmt(f), ...}. It seems Value(err) will work just as well.
fmt::Display for Error
match &self.inner { &Value(ref err) => err.fmt(f), ...}
Value(err)
If this is actually needed, we should add some comment explaining why so
For some reason,
fmt::Display for Error
uses an unusual formmatch &self.inner { &Value(ref err) => err.fmt(f), ...}
. It seemsValue(err)
will work just as well.If this is actually needed, we should add some comment explaining why so