Skip to content

Commit 8a10b4a

Browse files
committed
address some clippy warning about numeric maxima
1 parent 1c57b0c commit 8a10b4a

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

capnp/src/message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ where
505505
self,
506506
ReaderOptions {
507507
traversal_limit_in_words: None,
508-
nesting_limit: i32::max_value(),
508+
nesting_limit: i32::MAX,
509509
},
510510
)
511511
}

capnp/src/private/arena.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// THE SOFTWARE.
2020

2121
use core::slice;
22-
use core::u64;
2322

2423
use crate::message;
2524
use crate::message::Allocator;

capnp/src/private/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3194,7 +3194,7 @@ impl<'a> PointerBuilder<'a> {
31943194
self.segment_id,
31953195
self.cap_table.into_reader(),
31963196
self.pointer,
3197-
::core::i32::MAX,
3197+
i32::MAX,
31983198
)
31993199
}
32003200
}

0 commit comments

Comments
 (0)