Skip to content

Commit

Permalink
address some clippy warning about numeric maxima
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed May 12, 2024
1 parent 1c57b0c commit 8a10b4a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion capnp/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ where
self,
ReaderOptions {
traversal_limit_in_words: None,
nesting_limit: i32::max_value(),
nesting_limit: i32::MAX,
},
)
}
Expand Down
1 change: 0 additions & 1 deletion capnp/src/private/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
// THE SOFTWARE.

use core::slice;
use core::u64;

use crate::message;
use crate::message::Allocator;
Expand Down
2 changes: 1 addition & 1 deletion capnp/src/private/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3194,7 +3194,7 @@ impl<'a> PointerBuilder<'a> {
self.segment_id,
self.cap_table.into_reader(),
self.pointer,
::core::i32::MAX,
i32::MAX,
)
}
}
Expand Down

0 comments on commit 8a10b4a

Please sign in to comment.