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
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. /// Returns a size of subtrace that this par describes in execution_step trace.
pub fn size(&self) -> Option<u32> { pub fn size(&self) -> Option<u32> {
self.left_size self.left_size.checked_add(self.right_size)
.checked_add(self.right_size)
.map(|v| v)
} }
} }

View File

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