From 336f4f0f7422d05231e52848ad1ad790802a0b11 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Wed, 24 Jan 2024 15:47:49 +0100 Subject: [PATCH] chore: update a653rs --- Cargo.toml | 2 +- src/error.rs | 2 +- src/queuing.rs | 5 ++--- src/sampling.rs | 5 ++--- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f41338c..b54704f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,4 +12,4 @@ serde = { version = "1.0", features = ["derive"], default-features = false } postcard = { version = "1.0", default-features = false } arrayvec = { version = "0.7", default-features = false } -a653rs = "0.3" +a653rs = "0.4" diff --git a/src/error.rs b/src/error.rs index 34ccaa7..aa75d8e 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,4 +1,4 @@ -use a653rs::bindings::*; +use a653rs::prelude::*; use arrayvec::ArrayVec; #[derive(Debug, Clone)] diff --git a/src/queuing.rs b/src/queuing.rs index 4a2c84b..b9b9bbe 100644 --- a/src/queuing.rs +++ b/src/queuing.rs @@ -1,4 +1,3 @@ -use a653rs::bindings::*; use a653rs::prelude::*; use arrayvec::ArrayVec; use postcard::de_flavors::Slice as DeSlice; @@ -20,7 +19,7 @@ pub trait QueuingPortReceiverExt { [u8; MSG_SIZE as usize]:; } -impl +impl QueuingPortSenderExt for QueuingPortSender where [u8; MSG_SIZE as usize]:, @@ -36,7 +35,7 @@ where } } -impl +impl QueuingPortReceiverExt for QueuingPortReceiver where [u8; MSG_SIZE as usize]:, diff --git a/src/sampling.rs b/src/sampling.rs index a90cfe4..e0aa1d9 100644 --- a/src/sampling.rs +++ b/src/sampling.rs @@ -1,4 +1,3 @@ -use a653rs::bindings::*; use a653rs::prelude::*; use arrayvec::ArrayVec; use postcard::de_flavors::Slice as DeSlice; @@ -20,7 +19,7 @@ pub trait SamplingPortDestinationExt { [u8; MSG_SIZE as usize]:; } -impl SamplingPortSourceExt +impl SamplingPortSourceExt for SamplingPortSource where [u8; MSG_SIZE as usize]:, @@ -36,7 +35,7 @@ where } } -impl SamplingPortDestinationExt +impl SamplingPortDestinationExt for SamplingPortDestination where [u8; MSG_SIZE as usize]:,