From 7cfe68a1423dc28c81cfdff35792e4a6e7fd2fa0 Mon Sep 17 00:00:00 2001 From: Christian Meusel Date: Fri, 10 May 2024 11:40:04 +0200 Subject: [PATCH] Silence Clippy warning on assigning_clones --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index f01363dc..200374e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -331,6 +331,8 @@ pub struct SerialPortBuilder { impl SerialPortBuilder { /// Set the path to the serial port + // TODO: Switch to `clone_into` when bumping our MSRV past 1.63 and remove this exemption. + #[allow(clippy::assigning_clones)] #[must_use] pub fn path<'a>(mut self, path: impl Into>) -> Self { self.path = path.into().as_ref().to_owned();