From b287a695fce7c96b3703567f1a2dab0d81b4bffc Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Thu, 4 Jan 2024 12:43:02 +0100 Subject: [PATCH] fix formatting --- src/lib.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fa876bd..51e5c11 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,12 +5,12 @@ use std::char; use std::cmp::{max, min}; use std::collections::HashMap; +use std::convert::TryFrom; use std::error::Error; use std::fmt::{self, Display, Formatter}; use std::hash::Hash; use std::mem; use std::str::Chars; -use std::convert::TryFrom; #[derive(Debug, PartialEq)] pub enum StrSimError { @@ -589,12 +589,7 @@ where } } -fn damerau_levenshtein_impl( - s1: Iter1, - len1: usize, - s2: Iter2, - len2: usize, -) -> usize +fn damerau_levenshtein_impl(s1: Iter1, len1: usize, s2: Iter2, len2: usize) -> usize where Iter1: Iterator + Clone, Iter2: Iterator + Clone,