chore: Fix lint warnings (#205)
This commit is contained in:
parent
07804ef72d
commit
4813ae02bf
3 changed files with 3 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ impl<C: Channel> ChannelBuffer<C> {
|
|||
M: Fragment,
|
||||
{
|
||||
let mut payload = Vec::new();
|
||||
minicbor::encode(&msg, &mut payload)
|
||||
minicbor::encode(msg, &mut payload)
|
||||
.map_err(|err| ChannelError::Encoding(err.to_string()))?;
|
||||
|
||||
let chunks = payload.chunks(MAX_SEGMENT_PAYLOAD_LENGTH);
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ fn read_segment(reader: &mut impl Read) -> Result<Segment, std::io::Error> {
|
|||
reader.read_exact(&mut header)?;
|
||||
|
||||
if log_enabled!(log::Level::Trace) {
|
||||
trace!("read segment header: {:?}", hex::encode(&header));
|
||||
trace!("read segment header: {:?}", hex::encode(header));
|
||||
}
|
||||
|
||||
let length = NetworkEndian::read_u16(&header[6..]) as usize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue