diff options
Diffstat (limited to 'components/util/str.rs')
-rw-r--r-- | components/util/str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/util/str.rs b/components/util/str.rs index f08ae1178d9..28aedee4f30 100644 --- a/components/util/str.rs +++ b/components/util/str.rs @@ -71,7 +71,7 @@ pub fn split_html_space_chars<'a>(s: &'a str) -> Filter<'a, &'a str, CharSplits< fn do_parse_integer<T: Iterator<char>>(input: T) -> Option<i64> { fn is_ascii_digit(c: &char) -> bool { match *c { - '0'..'9' => true, + '0'...'9' => true, _ => false, } } @@ -152,7 +152,7 @@ pub fn parse_length(mut value: &str) -> LengthOrPercentageOrAuto { let (mut found_full_stop, mut found_percent) = (false, false); for (i, ch) in value.chars().enumerate() { match ch { - '0'..'9' => continue, + '0'...'9' => continue, '%' => { found_percent = true; end_index = i; |