Skip to content

Commit 4993476

Browse files
committed
Update for clippy 1.83 (#441)
* Update for clippy 1.83 Signed-off-by: Michael X. Grey <[email protected]> * Update clippy for cfg(test) as well Signed-off-by: Michael X. Grey <[email protected]> * Exclude dependencies from clippy test Signed-off-by: Michael X. Grey <[email protected]> * Fix clippy for rosidl_runtime_rs Signed-off-by: Michael X. Grey <[email protected]> --------- Signed-off-by: Michael X. Grey <[email protected]>
1 parent e22d669 commit 4993476

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

rosidl_runtime_rs/src/string/serde.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use super::{
1313
struct StringVisitor;
1414
struct WStringVisitor;
1515

16-
impl<'de> Visitor<'de> for StringVisitor {
16+
impl Visitor<'_> for StringVisitor {
1717
type Value = String;
1818

1919
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {

rosidl_runtime_rs/src/traits.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@ pub trait RmwMessage: Clone + Debug + Default + Send + Sync + Message {
124124
///
125125
/// Memory ownership by C is achieved by calling `init()` when any string or sequence is created,
126126
/// as well as in the `Default` impl for messages.
127+
///
127128
/// User code can still create messages explicitly, which will not call `init()`, but this is not a
128-
/// problem, since nothing is allocated this way.
129+
/// problem, since nothing is allocated this way.
130+
///
129131
/// The `Drop` impl for any sequence or string will call `fini()`.
130-
131132
pub trait Message: Clone + Debug + Default + 'static + Send + Sync {
132133
/// The corresponding RMW-native message type.
133134
type RmwMsg: RmwMessage;

0 commit comments

Comments
 (0)