From 5dbcbce796636604a16d7893955090fa760cdc77 Mon Sep 17 00:00:00 2001 From: Kirill Ivanov Date: Fri, 6 Dec 2024 15:22:18 +0900 Subject: [PATCH] clippy --- stats/stats-server/src/config/read/layout.rs | 6 +++--- stats/stats-server/src/config/types.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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};