Browse Source

lint: allow clippy::should_implement_trait for infallible U16String::from_str

tags/v0.3.4-rc1
Michael-J-Ward 2 years ago
parent
commit
3c6204e4cf
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libraries/extensions/ros2-bridge/src/_core/string.rs

+ 1
- 0
libraries/extensions/ros2-bridge/src/_core/string.rs View File

@@ -29,6 +29,7 @@ impl U16String {
Self(widestring::U16String::new())
}

#[allow(clippy::should_implement_trait)]
pub fn from_str(arg: &str) -> U16String {
Self(widestring::U16String::from_str(arg))
}


Loading…
Cancel
Save