Skip to content

Commit

Permalink
borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
JannesBrands committed Feb 22, 2024
1 parent 6a51750 commit 24f567a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}
Expand Down

0 comments on commit 24f567a

Please sign in to comment.