-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minor code cleanups #105625
minor code cleanups #105625
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,7 +209,7 @@ impl<T: Idx> BitSet<T> { | |
self.words[start_word_index] |= !(start_mask - 1); | ||
// And all trailing bits (i.e. from 0..=end) in the end word, | ||
// including the end. | ||
self.words[end_word_index] |= end_mask | end_mask - 1; | ||
self.words[end_word_index] |= end_mask | (end_mask - 1); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lol was this a bug? or is the precedence alright implicitly like those parens? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. according to clippy the precedence was already like this but since its no obvious it suggested the parens 🙃 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense. |
||
} else { | ||
self.words[start_word_index] |= end_mask | (end_mask - start_mask); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAX_BASE
is already declaredusize
at line 8