File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ pub struct TracingInspectorOutput {
1313
1414impl TracingInspectorOutput {
1515 /// Creates a new output instance.
16- pub fn new ( traces : CallTraceArena ) -> Self {
16+ pub const fn new ( traces : CallTraceArena ) -> Self {
1717 Self { traces }
1818 }
1919
2020 /// Returns a reference to the traces produced by the inspector.
21- pub fn traces ( & self ) -> & CallTraceArena {
21+ pub const fn traces ( & self ) -> & CallTraceArena {
2222 & self . traces
2323 }
2424
@@ -39,7 +39,7 @@ impl<Db: Database> InspectorWithOutput<Ctx<Db>> for TracingInspector {
3939 type Output = TracingInspectorOutput ;
4040
4141 fn has_output ( & self ) -> bool {
42- self . traces ( ) . nodes ( ) . len ( ) > 0
42+ ! self . traces ( ) . nodes ( ) . is_empty ( )
4343 }
4444
4545 fn reset_output ( & mut self ) {
You can’t perform that action at this time.
0 commit comments