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
The documentation example contains the deprecated std::error::Error::description method in the main function:
fnmain(){matchget_super_error(){Err(e) => {println!("Error: {}", e.description());// <----------- HERE IT ISprintln!("Caused by: {}", e.source().unwrap());}
_ => println!("No error"),}}
This is probably a mistake as get_super_error returns a struct that implements the std::fmt::Display trait which should be used instead of the deprecated std::error::Error::description method. So, this: