Skip to content

Commit 1888ad7

Browse files
committed
lint: cluppy
1 parent a7f3c23 commit 1888ad7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/inspectors/tracing.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ pub struct TracingInspectorOutput {
1313

1414
impl 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) {

0 commit comments

Comments
 (0)