Skip to content

Commit

Permalink
Use i32::MAX instead of i32::max_value()
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Nov 20, 2020
1 parent 09f247a commit a8c8594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub enum DataStoreError {
```rust
#[derive(Error, Debug)]
pub enum Error {
#[error("invalid rdo_lookahead_frames {0} (expected < {})", i32::max_value())]
#[error("invalid rdo_lookahead_frames {0} (expected < {})", i32::MAX)]
InvalidLookahead(u32),
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
//! #
//! #[derive(Error, Debug)]
//! pub enum Error {
//! #[error("invalid rdo_lookahead_frames {0} (expected < {})", i32::max_value())]
//! #[error("invalid rdo_lookahead_frames {0} (expected < {})", i32::MAX)]
//! InvalidLookahead(u32),
//! }
//! ```
Expand Down

0 comments on commit a8c8594

Please sign in to comment.