forked from mirrors/gstreamer-rs
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:
parent
962da8a63d
commit
0ca6be25c5
2 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
}
|
||||
|
|
|
@ -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(),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue