Skip to content

Commit b29671f

Browse files
committed
Remove mutability from RawCstrs in unsubscribe config
The RawCstrs instance in the TryFrom implementation for EspUnsubscribePropertyConfig no longer needs to be mutable, as it is not mutated after creation.
1 parent 694f3ff commit b29671f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mqtt/client5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ impl<'a> TryFrom<Option<UnsubscribePropertyConfig<'a>>> for EspUnsubscribeProper
322322
}
323323

324324
let config = config.unwrap();
325-
let mut cstrs = RawCstrs::new();
325+
let cstrs = RawCstrs::new();
326326
let mut user_properties = EspUserPropertyList::new();
327327
if let Some(ref user_properties_items) = config.user_properties {
328328
user_properties.set_items(user_properties_items)?;

0 commit comments

Comments
 (0)