Skip to content

Commit

Permalink
Always inline UserBounds matches
Browse files Browse the repository at this point in the history
  • Loading branch information
riquito committed Feb 12, 2024
1 parent 1df2371 commit 2c6d411
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bounds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ impl UserBounds {
*
* Fields are 1-indexed.
*/
#[inline(always)]
pub fn matches(&self, idx: i32) -> Result<bool> {
match (self.l, self.r) {
(Side::Some(left), _) if (left * idx).is_negative() => {
Expand Down

0 comments on commit 2c6d411

Please sign in to comment.