clippy
This commit is contained in:
@@ -250,6 +250,7 @@ impl<'w, 'c, W: std::io::Write> Encoder<'w, 'c, W> {
|
|||||||
pub(crate) fn new(writer: &'w mut W, ctx: &'c mut Ctx) -> Self {
|
pub(crate) fn new(writer: &'w mut W, ctx: &'c mut Ctx) -> Self {
|
||||||
Self { writer, ctx }
|
Self { writer, ctx }
|
||||||
}
|
}
|
||||||
|
#[allow(clippy::too_many_lines)]
|
||||||
pub fn encode_checkpoint(mut self, checkpoint: &[u8], frame: u64) -> std::io::Result<u32> {
|
pub fn encode_checkpoint(mut self, checkpoint: &[u8], frame: u64) -> std::io::Result<u32> {
|
||||||
use rmp::encode as r;
|
use rmp::encode as r;
|
||||||
let stopwatch = clock::time(Timer::EncodeStatestream);
|
let stopwatch = clock::time(Timer::EncodeStatestream);
|
||||||
|
|||||||
Reference in New Issue
Block a user