libafl_{cc,derive}: Bump MSRV to 1.82 for home crate update (#2775)

* 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
This commit is contained in:
Mrmaxmeier 2024-12-17 21:08:32 +01:00 committed by GitHub
parent b7c7465be4
commit d9ddf82499
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ readme = "README.md"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
keywords = ["fuzzing", "testing", "compiler"] keywords = ["fuzzing", "testing", "compiler"]
edition = "2021" edition = "2021"
rust-version = "1.78" rust-version = "1.82"
categories = [ categories = [
"development-tools::testing", "development-tools::testing",
"emulators", "emulators",

View File

@ -317,7 +317,7 @@ where
let new_distance = distance + successor_info.get_weight(); let new_distance = distance + successor_info.get_weight();
let is_shorter = distances let is_shorter = distances
.get(successor) .get(successor)
.map_or(true, |&current| new_distance < current); .is_none_or(|&current| new_distance < current);
if is_shorter { if is_shorter {
distances.insert(*successor, new_distance); distances.insert(*successor, new_distance);

View File

@ -9,7 +9,7 @@ readme = "../README.md"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
keywords = ["fuzzing", "testing"] keywords = ["fuzzing", "testing"]
edition = "2021" edition = "2021"
rust-version = "1.78" rust-version = "1.82"
categories = [ categories = [
"development-tools::testing", "development-tools::testing",
"emulators", "emulators",