History

Allocation-free hashing for section keys and names (#331)

Sebastian Thiel committed 4 years ago

Commit 44d00611 parent 94608db1 file · +3 −1Browse files

Unified · Split

git-config/src/parse/section.rs+3−1
@@ -182,7 +182,9 @@ mod types { · 181 unmodified lines
182 182
183 impl std::hash::Hash for $name<'_> {183 impl std::hash::Hash for $name<'_> {
184 fn hash<H: std::hash::Hasher>(&self, state: &mut H) {184 fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
185 self.0.to_ascii_lowercase().hash(state)185 for b in self.0.iter() {
186 b.to_ascii_lowercase().hash(state);
187 }
186 }188 }
187 }189 }
188 190