From 4b32adf172c4ef12d92f3add4d0152f4aaab7cc8 Mon Sep 17 00:00:00 2001 From: Jannes Brands Date: Thu, 22 Feb 2024 22:55:46 +0100 Subject: [PATCH] .. --- examples/forward.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, } } - } + }; }