warning: mutable key type
--> helyim/src/directory/topology/volume_grow.rs:67:9
|
67 | let data_centers = topology.data_centers().await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
= note: `#[warn(clippy::mutable_key_type)]` on by default
Bug Report
Version
0.2.11
Platform
macos 12.1 M1
Description
The affected code is as follows.
when execute
cargo clippy
, it always got outputHow to avoid such warnings?
Maybe it‘s clippy’s bug.