From a04fed01a102f598788151b38f8d42dbf27b04e0 Mon Sep 17 00:00:00 2001 From: Casey Dahlin Date: Thu, 19 Dec 2024 16:21:04 -0800 Subject: [PATCH] Fix clippy lint in argh_derive --- argh_derive/src/parse_attrs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argh_derive/src/parse_attrs.rs b/argh_derive/src/parse_attrs.rs index 39d2fba..9c32e94 100644 --- a/argh_derive/src/parse_attrs.rs +++ b/argh_derive/src/parse_attrs.rs @@ -355,7 +355,7 @@ impl TypeAttrs { continue; } }; - if value > (std::i32::MAX as u64) { + if value > (i32::MAX as u64) { errors.err(lit_int, "Error code out of range for `i32`"); } match map.entry(value) {