Skip to content

Commit a8c8594

Browse files
committed
Use i32::MAX instead of i32::max_value()
1 parent 09f247a commit a8c8594

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub enum DataStoreError {
7070
```rust
7171
#[derive(Error, Debug)]
7272
pub enum Error {
73-
#[error("invalid rdo_lookahead_frames {0} (expected < {})", i32::max_value())]
73+
#[error("invalid rdo_lookahead_frames {0} (expected < {})", i32::MAX)]
7474
InvalidLookahead(u32),
7575
}
7676
```

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
//! #
6767
//! #[derive(Error, Debug)]
6868
//! pub enum Error {
69-
//! #[error("invalid rdo_lookahead_frames {0} (expected < {})", i32::max_value())]
69+
//! #[error("invalid rdo_lookahead_frames {0} (expected < {})", i32::MAX)]
7070
//! InvalidLookahead(u32),
7171
//! }
7272
//! ```

0 commit comments

Comments
 (0)