From 24f567a0a939559f4651135a3a456df1c7df440c Mon Sep 17 00:00:00 2001 From: Jannes Brands Date: Thu, 22 Feb 2024 23:01:07 +0100 Subject: [PATCH] borrow --- examples/forward.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/forward.rs b/examples/forward.rs index d2bf09e..e8f7295 100644 --- a/examples/forward.rs +++ b/examples/forward.rs @@ -64,9 +64,10 @@ fn main() { .expect("Could not set output bus to non-blocking!"); loop { - match input.receive() { + match input.borrow().receive() { Ok(frame) => { output + .borrow() .transmit(&frame) .expect("Could not forward received message!"); }