gstreamer-rs/examples
Marijn Suijten 8e4a561a41 examples: Return anyhow::Result out of main()
It is annoying to see only a single line of error when debugging a chain
of (e.g. `anyhow::Context::context()`-created) errors, and have a
zero exit-code while at it.

Instead Rust supports returning a `Result` type straight from main which
is `Debug`- instead of `Display`-printed, so that - in the case of
`anyhow::Error` - all nested (via `.source()`) `Error`s are printed in
backtrace-like form, and the exit code is appropriately non-zero.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1344>
2023-11-11 11:34:42 +02:00
..
src examples: Return anyhow::Result out of main() 2023-11-11 11:34:42 +02:00
build.rs Fix various new clippy warnings 2022-12-13 11:29:45 +02:00
Cargo.toml examples: Updates to memmap2 0.9 2023-11-03 10:46:18 +02:00