Skip to content

Commit

Permalink
Make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Nov 21, 2024
1 parent 9759acb commit b4b17b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion macro/src/type_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl VisitMut for ExpandSelfVisitor<'_> {
.path
.segments
.first()
.map_or(false, |segment| segment.ident == "Self")
.is_some_and(|segment| segment.ident == "Self")
{
let segments = path.path.segments.iter().skip(1).collect::<Vec<_>>();
let self_ty = self.self_ty;
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pub fn write_enabled() -> bool {
#[must_use]
fn enabled(opt: &str) -> bool {
let key = "TEST_FUZZ".to_owned() + if opt.is_empty() { "" } else { "_" } + opt;
env::var(key).map_or(false, |value| value != "0")
env::var(key).is_ok_and(|value| value != "0")
}

pub fn write_impl_generic_args<T>(args: &[&str]) {
Expand Down
2 changes: 1 addition & 1 deletion test-fuzz/tests/integration/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,5 @@ fn unmaintained() {

#[must_use]
pub fn enabled(key: &str) -> bool {
var(key).map_or(false, |value| value != "0")
var(key).is_ok_and(|value| value != "0")
}

0 comments on commit b4b17b4

Please sign in to comment.