Skip to content

Commit

Permalink
remove unnecessary question mark
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Jan 23, 2024
1 parent 82198f5 commit 5af3755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/edcode/src/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl<'de> Decode<'de> for String {
let len = VarI32::decode(buf)? as usize;
let mut vec = vec![0; len];
buf.copy_to_slice(&mut vec[..]);
Ok(String::from_utf8(vec).map_err(ErrorWithVarI32Err::Target)?)
String::from_utf8(vec).map_err(ErrorWithVarI32Err::Target)
}
}

Expand Down

0 comments on commit 5af3755

Please sign in to comment.