From a8c8594ae5fb1072037bf1f7804dabd92243aab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Fri, 20 Nov 2020 20:33:49 +0100 Subject: [PATCH] Use i32::MAX instead of i32::max_value() --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 704034a..76c436a 100644 --- a/README.md +++ b/README.md @@ -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), } ``` diff --git a/src/lib.rs b/src/lib.rs index 5f6582a..65d76d3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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), //! } //! ```