[librsvg: 10/16] clippy: is_ascii_digit() instead of is_digit(10)
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 10/16] clippy: is_ascii_digit() instead of is_digit(10)
- Date: Fri, 16 Sep 2022 01:46:19 +0000 (UTC)
commit a2f95ce99e71fb9f8e45bc976be59c0d4f6162fa
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Sep 15 19:14:15 2022 -0500
clippy: is_ascii_digit() instead of is_digit(10)
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/747>
src/accept_language.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/accept_language.rs b/src/accept_language.rs
index 172c3e859..08e125e97 100644
--- a/src/accept_language.rs
+++ b/src/accept_language.rs
@@ -135,7 +135,7 @@ impl Item {
if let Some(decimals) = qvalue[1..].strip_prefix('.') {
if (first_digit == '0'
&& decimals.len() <= 3
- && decimals.chars().all(|c| c.is_digit(10)))
+ && decimals.chars().all(|c| c.is_ascii_digit()))
|| (first_digit == '1'
&& decimals.len() <= 3
&& decimals.chars().all(|c| c == '0'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]