chore(trace-handler): fix fmt and clippy warnings (#567)

chore(trace-handler): remove some line breaks to sync with cargo fmt
This commit is contained in:
raftedproc 2023-04-07 12:50:00 +03:00 committed by GitHub
parent 658daf1d3f
commit b2116c7ea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -26,9 +26,7 @@ impl ParResult {
/// Returns a size of subtrace that this par describes in execution_step trace.
pub fn size(&self) -> Option<u32> {
self.left_size
.checked_add(self.right_size)
.map(|v| v)
self.left_size.checked_add(self.right_size)
}
}

View File

@ -17,8 +17,6 @@
use super::*;
use merger::*;
use IntConversionError;
use std::convert::TryInto;
#[derive(Debug, Default)]
@ -44,7 +42,7 @@ impl TraceHandler {
.result_trace
.len()
.try_into()
.map_err(|e| IntConversionError::TryIntoTracePosError(e))
.map_err(IntConversionError::TryIntoTracePosError)
}
pub fn into_result_trace(self) -> ExecutionTrace {