Skip to content

Commit 7cfe68a

Browse files
sirhceleldruin
authored andcommitted
Silence Clippy warning on assigning_clones
1 parent a26561c commit 7cfe68a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ pub struct SerialPortBuilder {
331331

332332
impl SerialPortBuilder {
333333
/// Set the path to the serial port
334+
// TODO: Switch to `clone_into` when bumping our MSRV past 1.63 and remove this exemption.
335+
#[allow(clippy::assigning_clones)]
334336
#[must_use]
335337
pub fn path<'a>(mut self, path: impl Into<std::borrow::Cow<'a, str>>) -> Self {
336338
self.path = path.into().as_ref().to_owned();

0 commit comments

Comments
 (0)