mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-24 03:48:30 +00:00
Fix clippy lint in example
This commit is contained in:
parent
6cd80834e5
commit
29978d3a31
@ -190,7 +190,7 @@ struct HumanData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl 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();
|
let spec = specs.iter().next().unwrap();
|
||||||
if let Some(kind) = spec.sort_direction() {
|
if let Some(kind) = spec.sort_direction() {
|
||||||
match kind {
|
match kind {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user