diff options
author | Alex Auvolat <alex@adnab.me> | 2023-12-11 15:31:47 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-12-11 15:31:47 +0100 |
commit | 85b5a6bcd11c0a7651e4c589569e1935a3d18e46 (patch) | |
tree | 5aabcc8e161dfb304514e23e59f9ccf5a52a6d0a /src/api/admin | |
parent | e4f493b48156e6e30f16fba10f300f6cb5fe0b0d (diff) | |
download | garage-85b5a6bcd11c0a7651e4c589569e1935a3d18e46.tar.gz garage-85b5a6bcd11c0a7651e4c589569e1935a3d18e46.zip |
fix some clippy lints
Diffstat (limited to 'src/api/admin')
-rw-r--r-- | src/api/admin/cluster.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin/cluster.rs b/src/api/admin/cluster.rs index 3ce1b254..8677257d 100644 --- a/src/api/admin/cluster.rs +++ b/src/api/admin/cluster.rs @@ -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 { |