diff --git a/stats/stats-server/src/config/read/layout.rs b/stats/stats-server/src/config/read/layout.rs index a37967301..201e427f2 100644 --- a/stats/stats-server/src/config/read/layout.rs +++ b/stats/stats-server/src/config/read/layout.rs @@ -35,12 +35,12 @@ impl From for Config { /// /// `push_missing_items_back`: /// - if `true`, then items not present in -/// `layout` are placed at the end of the vector in their original -/// relative order. +/// `layout` are placed at the end of the vector in their original +/// relative order. /// - if `false` - at the beginning with the same logic. pub fn sorted_items_according_to_layout( to_sort: Vec, - layout: &Vec, + layout: &[Key], get_key: F, push_missing_items_back: bool, ) -> Vec diff --git a/stats/stats-server/src/config/types.rs b/stats/stats-server/src/config/types.rs index 995c98e29..7cbcae7e8 100644 --- a/stats/stats-server/src/config/types.rs +++ b/stats/stats-server/src/config/types.rs @@ -1,6 +1,6 @@ //! Common types for the configs -use std::collections::{BTreeMap, HashMap, HashSet}; +use std::collections::{BTreeMap, HashSet}; use cron::Schedule; use serde::{Deserialize, Serialize};