From 29978d3a31be7236a32ac25ce69bd2fb3feb81ed Mon Sep 17 00:00:00 2001 From: dbr Date: Mon, 30 Jan 2023 17:03:56 +1030 Subject: [PATCH] Fix clippy lint in example --- imgui-examples/examples/tables_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {