mirror of
https://github.com/fluencelabs/aquavm
synced 2024-12-04 15:20:16 +00:00
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:
parent
658daf1d3f
commit
b2116c7ea4
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user