Skip to content

Commit

Permalink
Bump edition to 2021 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev authored Apr 3, 2024
1 parent 76c5a90 commit 43d4443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ description = """
Implementations of string similarity metrics. Includes Hamming, Levenshtein,
OSA, Damerau-Levenshtein, Jaro, Jaro-Winkler, and Sørensen-Dice.
"""
edition = "2021"
license = "MIT"
rust-version = "1.56"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! This library implements string similarity metrics.

#![forbid(unsafe_code)]
#![warn(rust_2018_idioms)]
#![allow(
// these casts are sometimes needed. They restrict the length of input iterators
// but there isn't really any way around this except for always working with
Expand All @@ -9,7 +10,6 @@
clippy::cast_sign_loss,
clippy::cast_precision_loss,
// not practical
clippy::needless_pass_by_value,
clippy::similar_names,
// noisy
clippy::missing_errors_doc,
Expand All @@ -35,7 +35,7 @@ pub enum StrSimError {
}

impl Display for StrSimError {
fn fmt(&self, fmt: &mut Formatter) -> Result<(), fmt::Error> {
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), fmt::Error> {
let text = match self {
StrSimError::DifferentLengthArgs => "Differing length arguments provided",
};
Expand Down

0 comments on commit 43d4443

Please sign in to comment.