We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c176bc commit b10a70cCopy full SHA for b10a70c
src/filesystem/search_id.rs
@@ -19,7 +19,7 @@ impl IdGenerator {
19
/// Generate a new, unique [`SearchId`].
20
pub fn get(&mut self) -> SearchId {
21
let id = self.next_id;
22
- self.next_id += 1;
+ self.next_id = self.next_id.wrapping_add(1);
23
SearchId(id)
24
}
25
0 commit comments