fix some clippy lints

This commit is contained in:
Alex Auvolat
2023-12-11 15:31:47 +01:00
parent e4f493b481
commit 85b5a6bcd1
9 changed files with 19 additions and 22 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ pub async fn handle_get_cluster_status(garage: &Arc<Garage>) -> Result<Response<
}
}
let mut nodes = nodes.into_iter().map(|(_, v)| v).collect::<Vec<_>>();
let mut nodes = nodes.into_values().collect::<Vec<_>>();
nodes.sort_by(|x, y| x.id.cmp(&y.id));
let res = GetClusterStatusResponse {