You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #385: Use Self::Foo instead of importing error variants
ac8e9f0 Run the formatter (Jamil Lambert, PhD)
4ede644 Use Self::Foo instead of importing error variants (Jamil Lambert, PhD)
Pull request description:
In the Error impl there is a combination of the use of:
- use FooError::*;
- use FooError as E;
- Self::FooVariant
Remove all imports and use Self::FooVariant in all Error impl in types. Style change only, there is no functional change.
Run the formatter in a separate patch to make the diff of the first easier to read.
Closes#372
ACKs for top commit:
tcharding:
ACK ac8e9f0
Tree-SHA512: 585c9906f42833294c27205329ced92530b6ddc52b19074dafe100451db54f066d90c62c3928e0fe75a99b7c800f26b6af77ece11962b5e2910df6cc939e6dbe
Negative{ref field, value } => write!(f,"expected an unsigned numeric value however the value was negative (field name: {} value: {})", field, value),
84
-
Overflow{ref field, value } => write!(f,"a value larger than `u32::MAX` was unexpectedly encountered (field name: {} Value: {})", field, value),
81
+
Self::Negative{ref field, value } => write!(f,"expected an unsigned numeric value however the value was negative (field name: {} value: {})", field, value),
82
+
Self::Overflow{ref field, value } => write!(f,"a value larger than `u32::MAX` was unexpectedly encountered (field name: {} Value: {})", field, value),
0 commit comments