From 3a66b11170ecc2d037b53e374bffa05e56398b64 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu <sam@rfc1149.net> Date: Wed, 10 Jul 2024 14:59:27 +0200 Subject: [PATCH] Remove must_use attribute Calling `I2C2::new()` as enough side effects by itself --- i2c2-target/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/i2c2-target/src/lib.rs b/i2c2-target/src/lib.rs index 65be57d..c0fcdfe 100644 --- a/i2c2-target/src/lib.rs +++ b/i2c2-target/src/lib.rs @@ -108,7 +108,6 @@ pub struct I2C2 { } impl I2C2 { - #[must_use] pub fn new(i2c2: peripherals::I2C2, pb10: PB10, pb11: PB11, addr: u16, prio: Priority) -> Self { // Set pins in AF mode let af_num = SclPin::af_num(&pb10); -- GitLab