diff --git a/imgui-examples/examples/tables_api.rs b/imgui-examples/examples/tables_api.rs index 47a1d7d..1263617 100644 --- a/imgui-examples/examples/tables_api.rs +++ b/imgui-examples/examples/tables_api.rs @@ -190,7 +190,7 @@ struct HumanData { } impl HumanData { - pub fn sort_humans(humans: &mut Vec, 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 {