don't pass mut references if you don't need to
@@ -231,7 +231,7 @@ where
{
let mut writer: &mut [u8] = &mut request_bytes;
- compression.write_message(&mut writer, &mut message_req)?;
+ compression.write_message(&mut writer, &message_req)?;
}
let mut request_bytes1: &[u8] = &request_bytes;
@@ -244,7 +244,7 @@ where
{
let mut writer: &mut [u8] = &mut response_bytes;
- compression.write_message(&mut writer, &mut message_res)?;
+ compression.write_message(&mut writer, &message_res)?;
}
let mut response_bytes1: &[u8] = &response_bytes;
@@ -286,7 +286,7 @@ where
testcase.handle_request(request_reader, response)?;
}
- compression.write_message(&mut out_buffered, &mut message_res)?;
+ compression.write_message(&mut out_buffered, &message_res)?;
out_buffered.flush()?;
}
Ok(())
@@ -317,7 +317,7 @@ where
let request = message_req.init_root();
testcase.setup_request(&mut rng, request)
};
- compression.write_message(&mut out_buffered, &mut message_req)?;
+ compression.write_message(&mut out_buffered, &message_req)?;
out_buffered.flush()?;
let message_reader = compression.read_message(&mut in_buffered, Default::default())?;
