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
182182
183183 impl std::hash::Hash for $name<'_> {
184184 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+ }
186188 }
187189 }
188190