From 66bded5b1804bc4e35c83caf5bb36183f3a529eb Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sun, 24 Nov 2024 00:02:25 +0100 Subject: [PATCH] feat!(Cargo): update MSRV to 1.82.0 --- Cargo.toml | 2 +- src/directed/idastar.rs | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dfeed300..c709d51f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ authors = ["Samuel Tardieu "] categories = ["algorithms"] readme = "README.md" edition = "2021" -rust-version = "1.81.0" +rust-version = "1.82.0" [package.metadata.release] sign-commit = true diff --git a/src/directed/idastar.rs b/src/directed/idastar.rs index de8b5fa3..a44c9f1e 100644 --- a/src/directed/idastar.rs +++ b/src/directed/idastar.rs @@ -154,7 +154,7 @@ where path.push(node); match search(path, cost + extra, bound, successors, heuristic, success) { found_path @ Path::Found(_, _) => return found_path, - Path::Minimum(m) if !min.is_some_and(|n| n < m) => min = Some(m), + Path::Minimum(m) if min.is_none_or(|n| n >= m) => min = Some(m), _ => (), } path.pop(); diff --git a/src/lib.rs b/src/lib.rs index c3e26656..f070a2b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,7 +76,7 @@ //! in this context, you can wrap them into compliant types using the //! [ordered-float](https://crates.io/crates/ordered-float) crate. //! -//! The minimum supported Rust version (MSRV) is Rust 1.81.0. +//! The minimum supported Rust version (MSRV) is Rust 1.82.0. //! //! [A*]: https://en.wikipedia.org/wiki/A*_search_algorithm //! [BFS]: https://en.wikipedia.org/wiki/Breadth-first_search