We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01d08e3 commit 9143868Copy full SHA for 9143868
src/error/multiple_error_types/define_error_type.md
@@ -40,11 +40,7 @@ impl fmt::Display for DoubleError {
40
41
// This is important for other errors to wrap this one.
42
impl error::Error for DoubleError {
43
- fn description(&self) -> &str {
44
- "invalid first item to double"
45
- }
46
-
47
- fn cause(&self) -> Option<&error::Error> {
+ fn source(&self) -> Option<&(dyn error::Error + 'static)> {
48
// Generic error, underlying cause isn't tracked.
49
None
50
}
0 commit comments