commit 14ad9d5c377bd55fe5dbe2f05e1e7832dd29ec64
parent 6cb9cce1c37157d0f9ea032c86f14e3bac44c933
Author: Zack Newman <zack@philomathiclife.com>
Date: Thu, 3 Apr 2025 14:07:22 -0600
msrv
Diffstat:
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
@@ -9,8 +9,8 @@ license = "MIT OR Apache-2.0"
name = "calc_rational"
readme = "README.md"
repository = "https://git.philomathiclife.com/repos/calc_rational/"
-rust-version = "1.85.0"
-version = "2.1.0"
+rust-version = "1.86.0"
+version = "2.2.0"
[lib]
name = "calc_lib"
diff --git a/src/lib.rs b/src/lib.rs
@@ -152,6 +152,7 @@
clippy::pub_use,
clippy::question_mark_used,
clippy::ref_patterns,
+ clippy::return_and_then,
clippy::single_char_lifetime_names,
clippy::unseparated_literal_suffix,
reason = "noisy, opinionated, and likely doesn't prevent bugs or improve APIs"
@@ -470,7 +471,7 @@ impl<'input, 'cache, 'prev, 'scratch, 'rand> Evaluator<'input, 'cache, 'prev, 's
/// Creates an `Evaluator<'input, 'cache, 'prev, 'scratch, 'rand>` based on the supplied arguments.
#[cfg(feature = "rand")]
#[inline]
- pub fn new(
+ pub const fn new(
utf8: &'input [u8],
cache: &'cache mut Cache<Ratio<BigInt>, 8>,
prev: &'prev mut Option<Ratio<BigInt>>,
diff --git a/src/main.rs b/src/main.rs
@@ -32,6 +32,7 @@
clippy::min_ident_chars,
clippy::missing_trait_methods,
clippy::ref_patterns,
+ clippy::return_and_then,
clippy::single_call_fn,
reason = "noisy, opinionated, and likely doesn't prevent bugs or improve APIs"
)]