diff --git a/swarm/src/connection.rs b/swarm/src/connection.rs index f0bac724942..85aa7a0f5d4 100644 --- a/swarm/src/connection.rs +++ b/swarm/src/connection.rs @@ -762,7 +762,7 @@ enum Shutdown { Later(Delay), } -// Structure used to avoid allocations when storing the protocols in the `HashMap. +// Structure used to avoid allocations when storing the protocols in the `HashMap`. // Instead of allocating a new `String` for the key, // we use `T::as_ref()` in `Hash`, `Eq` and `PartialEq` requirements. pub(crate) struct AsStrHashEq(pub(crate) T);