From 0095972fad9b37bcb0fd337f82b8858cc9633a84 Mon Sep 17 00:00:00 2001 From: daalfox <123469030+daalfox@users.noreply.github.com> Date: Fri, 3 Apr 2026 22:11:27 +0500 Subject: [PATCH] Rephrase comment Rephrase the comment on `map` field in `Extensions` to make it easier to understand --- src/extensions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensions.rs b/src/extensions.rs index ed6f85c2..f1c1b7c1 100644 --- a/src/extensions.rs +++ b/src/extensions.rs @@ -33,8 +33,8 @@ impl Hasher for IdHasher { /// extra data derived from the underlying protocol. #[derive(Clone, Default)] pub struct Extensions { - // If extensions are never used, no need to carry around an empty HashMap. - // That's 3 words. Instead, this is only 1 word. + // Extensions might never be used and carrying an empty HashMap around is + // inefficient (because it's 3 words). This is only 1 word instead. map: Option>, }