Fix clippy lint in example

This commit is contained in:
dbr 2023-01-30 17:03:56 +10:30
parent 6cd80834e5
commit 29978d3a31

View File

@ -190,7 +190,7 @@ struct HumanData {
}
impl HumanData {
pub fn sort_humans(humans: &mut Vec<Self>, specs: Specs<'_>) {
pub fn sort_humans(humans: &mut [Self], specs: Specs<'_>) {
let spec = specs.iter().next().unwrap();
if let Some(kind) = spec.sort_direction() {
match kind {