Skip to content

Commit d625dfd

Browse files
ndmitchellfacebook-github-bot
authored andcommitted
Note that we know what we are doing around comparisons
Summary: Ignore clippy, because this is only a warning for some types of I. Reviewed By: JakobDegen Differential Revision: D47226539 fbshipit-source-id: fd248d9dede1e1d52beb39b825cfdbedacdcceed
1 parent 73689aa commit d625dfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

starlark/src/values/types/inline_int.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ impl InlineInt {
190190
i32: TryFrom<I>,
191191
{
192192
let i = i32::try_from(i).ok().ok_or(InlineIntOverflow)?;
193+
// Only absurd for certain bit widths
194+
#[allow(clippy::absurd_extreme_comparisons)]
193195
if hint::likely(i >= Self::MIN.0 && i <= Self::MAX.0) {
194196
Ok(InlineInt(i))
195197
} else {

0 commit comments

Comments
 (0)