generated from PlexSheep/rs-base
automatic cargo CI changes
This commit is contained in:
parent
c372285015
commit
2c8b9d903c
|
@ -21,10 +21,10 @@ pub enum Error {
|
||||||
#[error("Unknown builtin solver")]
|
#[error("Unknown builtin solver")]
|
||||||
UnknownBuiltinSolver,
|
UnknownBuiltinSolver,
|
||||||
#[error("pattern matching error")]
|
#[error("pattern matching error")]
|
||||||
Regex{
|
Regex {
|
||||||
#[from]
|
#[from]
|
||||||
source: regex::Error
|
source: regex::Error,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Error)]
|
#[derive(Debug, Clone, Error)]
|
||||||
|
|
|
@ -87,9 +87,7 @@ pub trait WordList: Clone + std::fmt::Debug + Default {
|
||||||
buf.push(w)
|
buf.push(w)
|
||||||
}
|
}
|
||||||
// sort by frequency
|
// sort by frequency
|
||||||
buf.sort_by(|a, b| {
|
buf.sort_by(|a, b| a.1.partial_cmp(&b.1).unwrap());
|
||||||
a.1.partial_cmp(&b.1).unwrap()
|
|
||||||
});
|
|
||||||
buf.reverse();
|
buf.reverse();
|
||||||
Ok(buf)
|
Ok(buf)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue