Skip to content

Commit 42e765b

Browse files
committed
chore: Silence warning
1 parent 898e94f commit 42e765b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

crates/libtest-json/src/event.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,12 @@ impl RunComplete {
441441
}
442442
}
443443

444+
#[cfg(feature = "serde")]
444445
fn true_default() -> bool {
445446
true
446447
}
447448

449+
#[cfg(feature = "serde")]
448450
fn is_true(yes: &bool) -> bool {
449451
*yes
450452
}
@@ -467,6 +469,7 @@ impl RunMode {
467469
}
468470
}
469471

472+
#[cfg(any(feature = "serde", feature = "json"))]
470473
fn is_default(&self) -> bool {
471474
*self == Default::default()
472475
}

0 commit comments

Comments
 (0)