We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a26561c commit 7cfe68aCopy full SHA for 7cfe68a
src/lib.rs
@@ -331,6 +331,8 @@ pub struct SerialPortBuilder {
331
332
impl SerialPortBuilder {
333
/// 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)]
336
#[must_use]
337
pub fn path<'a>(mut self, path: impl Into<std::borrow::Cow<'a, str>>) -> Self {
338
self.path = path.into().as_ref().to_owned();
0 commit comments