automatic cargo CI changes

This commit is contained in:
cscherrNT 2024-03-22 16:28:12 +00:00 committed by github-actions[bot]
parent c372285015
commit 2c8b9d903c
2 changed files with 4 additions and 6 deletions

View File

@ -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)]

View File

@ -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)
}