Skip to content

Commit

Permalink
libafl_{cc,derive}: Bump MSRV to 1.82 for home crate update (#2775)
Browse files Browse the repository at this point in the history
* libafl_{cc,derive}: Bump MSRV for `home` crate update

With the upcoming 2024 edition we should also set `resolver = "3"` in
the workspace's Cargo.toml to opt into a new MSRV-aware dependency
resolver. This would fix the breakage we encountered with dependencies
that bump their MSRV in a minor version update.

* libafl_cc: apply clippy suggestion
  • Loading branch information
Mrmaxmeier authored Dec 17, 2024
1 parent b7c7465 commit d9ddf82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libafl_cc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["fuzzing", "testing", "compiler"]
edition = "2021"
rust-version = "1.78"
rust-version = "1.82"
categories = [
"development-tools::testing",
"emulators",
Expand Down
2 changes: 1 addition & 1 deletion libafl_cc/src/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ where
let new_distance = distance + successor_info.get_weight();
let is_shorter = distances
.get(successor)
.map_or(true, |&current| new_distance < current);
.is_none_or(|&current| new_distance < current);

if is_shorter {
distances.insert(*successor, new_distance);
Expand Down
2 changes: 1 addition & 1 deletion libafl_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "../README.md"
license = "MIT OR Apache-2.0"
keywords = ["fuzzing", "testing"]
edition = "2021"
rust-version = "1.78"
rust-version = "1.82"
categories = [
"development-tools::testing",
"emulators",
Expand Down

0 comments on commit d9ddf82

Please sign in to comment.