Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
leshow committed Feb 17, 2025
1 parent 2c8993f commit 777704e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/config/src/wire/v6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ fn write_opt(enc: &mut Encoder<'_>, code: u16, opt: Opt) -> anyhow::Result<()> {
encode_opt(&list, |n, e| e.write_u16(*n), enc)?;
}
Opt::Str(MaybeList::Val(s)) => {
enc.write_u16(s.as_bytes().len() as u16)?;
enc.write_u16(s.len() as u16)?;
enc.write_slice(s.as_bytes())?;
}
Opt::Str(MaybeList::List(list)) => {
Expand Down

0 comments on commit 777704e

Please sign in to comment.