From 601062f10f72b94d7ac4f37e2ffc1c81882840e5 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Wed, 13 Mar 2024 19:11:42 +0100 Subject: [PATCH] frame is already the right type --- src/socketcan/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socketcan/mod.rs b/src/socketcan/mod.rs index 389e030..dd5cece 100644 --- a/src/socketcan/mod.rs +++ b/src/socketcan/mod.rs @@ -53,7 +53,7 @@ impl CanAdapter for SocketCan { while let Ok((frame, meta)) = self.socket.read_frame_with_meta() { let mut frame: crate::can::Frame = frame.into(); frame.loopback = meta.loopback; - frames.push(frame.into()); + frames.push(frame); } Ok(frames)