History

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

Sebastian Thiel committed 4 years ago

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

Showing the changes to git-config/src/parse (1 of 1 file). Show all

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t