mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 08:36:31 +00:00
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()
|
.get_src()
|
||||||
.map(|s| String::from(s.get_path_string()))
|
.map(|s| String::from(s.get_path_string()))
|
||||||
.unwrap_or_else(|| String::from("None")),
|
.unwrap_or_else(|| String::from("None")),
|
||||||
error: err.get_error().description().into(),
|
error: err.get_error().to_string(),
|
||||||
debug: err.get_debug(),
|
debug: err.get_debug(),
|
||||||
cause: err.get_error(),
|
cause: err.get_error(),
|
||||||
}
|
}
|
||||||
|
|
|
@ -316,7 +316,7 @@ fn example_main() -> Result<(), Error> {
|
||||||
.get_src()
|
.get_src()
|
||||||
.map(|s| String::from(s.get_path_string()))
|
.map(|s| String::from(s.get_path_string()))
|
||||||
.unwrap_or_else(|| String::from("None")),
|
.unwrap_or_else(|| String::from("None")),
|
||||||
error: err.get_error().description().into(),
|
error: err.get_error().to_string(),
|
||||||
debug: err.get_debug(),
|
debug: err.get_debug(),
|
||||||
cause: err.get_error(),
|
cause: err.get_error(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue