examples: remove the use of description() in Error

Replace the use of deprecated method "Error::description()"
with to_string() method
This commit is contained in:
Vikram Fugro 2020-04-01 16:06:23 +02:00 committed by Sebastian Dröge
parent 962da8a63d
commit 0ca6be25c5
2 changed files with 2 additions and 2 deletions

View file

@ -286,7 +286,7 @@ fn example_main() -> Result<(), Error> {
.get_src()
.map(|s| String::from(s.get_path_string()))
.unwrap_or_else(|| String::from("None")),
error: err.get_error().description().into(),
error: err.get_error().to_string(),
debug: err.get_debug(),
cause: err.get_error(),
}

View file

@ -316,7 +316,7 @@ fn example_main() -> Result<(), Error> {
.get_src()
.map(|s| String::from(s.get_path_string()))
.unwrap_or_else(|| String::from("None")),
error: err.get_error().description().into(),
error: err.get_error().to_string(),
debug: err.get_debug(),
cause: err.get_error(),
}