diff options
author | rabite <rabite@posteo.de> | 2020-01-24 13:30:57 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2020-01-24 13:30:57 +0100 |
commit | 42b1fe7507a49e637be10daf365d8bef30c89720 (patch) | |
tree | ec5ce41f13a90374b0ada498f01c907f06fbb0ca | |
parent | 8fc070b71b0347faa514f3e82f80b009c77201d1 (diff) |
fix build when building with with graphics, but no video
-rw-r--r-- | src/hunter-media.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hunter-media.rs b/src/hunter-media.rs index 02cd0d9..82e628d 100644 --- a/src/hunter-media.rs +++ b/src/hunter-media.rs @@ -14,10 +14,7 @@ use gstreamer::prelude::*; #[cfg(feature = "video")] use gstreamer_app; -use failure::Error; -#[cfg(feature = "video")] -use failure::format_err; - +use failure::{Error, format_err}; use std::io::Write; #[cfg(feature = "video")] @@ -51,10 +48,12 @@ fn main() -> MResult<()> { .expect("Provide preview type") .parse::<String>() .unwrap(); + #[allow(unused_variables)] let autoplay = args.get(7) .expect("Autoplay?") .parse::<bool>() .unwrap(); + #[allow(unused_variables)] let mute = args.get(8) .expect("Muted?") .parse::<bool>() |