mirror of
https://github.com/fluencelabs/aquavm
synced 2025-07-31 14:02:04 +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:
@@ -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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user