From 2c8b9d903ce322035d27732d8bc89072af4e7e28 Mon Sep 17 00:00:00 2001 From: cscherrNT Date: Fri, 22 Mar 2024 16:28:12 +0000 Subject: [PATCH] automatic cargo CI changes --- src/error.rs | 6 +++--- src/wlist/mod.rs | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/error.rs b/src/error.rs index 4a287d5..75b56e4 100644 --- a/src/error.rs +++ b/src/error.rs @@ -21,10 +21,10 @@ pub enum Error { #[error("Unknown builtin solver")] UnknownBuiltinSolver, #[error("pattern matching error")] - Regex{ + Regex { #[from] - source: regex::Error - } + source: regex::Error, + }, } #[derive(Debug, Clone, Error)] diff --git a/src/wlist/mod.rs b/src/wlist/mod.rs index c71b5e7..71951fb 100644 --- a/src/wlist/mod.rs +++ b/src/wlist/mod.rs @@ -87,9 +87,7 @@ pub trait WordList: Clone + std::fmt::Debug + Default { buf.push(w) } // sort by frequency - buf.sort_by(|a, b| { - a.1.partial_cmp(&b.1).unwrap() - }); + buf.sort_by(|a, b| a.1.partial_cmp(&b.1).unwrap()); buf.reverse(); Ok(buf) }