From d0c619bdf7bce942ec0f1d9c660848ac93b844bb Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 22 Jul 2023 21:14:24 -0500 Subject: [PATCH] Clippy --- src/config/primitives.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config/primitives.rs b/src/config/primitives.rs index b37378e..b1e9dc0 100644 --- a/src/config/primitives.rs +++ b/src/config/primitives.rs @@ -44,7 +44,10 @@ impl std::str::FromStr for RetentionValue { type Err = RetentionValueError; fn from_str(s: &str) -> Result { - let num_str = s.chars().take_while(|c| c.is_digit(10)).collect::(); + let num_str = s + .chars() + .take_while(|c| c.is_ascii_digit()) + .collect::(); if num_str.is_empty() { return Err(RetentionValueError::NoValue);