diff --git a/examples/forward.rs b/examples/forward.rs index ada5200..0e9b876 100644 --- a/examples/forward.rs +++ b/examples/forward.rs @@ -55,7 +55,8 @@ fn main() { #[cfg(target_os = "linux")] |opts: Options| { - let (input, output) = open_can_interface(&opts.input_interface, &opts.output_interface); + let (mut input, mut output) = + open_can_interface(&opts.input_interface, &opts.output_interface); input .set_nonblocking(true) .expect("Could not set input bus to non-blocking!"); @@ -73,5 +74,5 @@ fn main() { Err(_err) => continue, } } - } + }; }