From 15c2ec2c2c1b688345082af6e63f93fd52f779b3 Mon Sep 17 00:00:00 2001 From: FelixRilling Date: Sat, 25 Sep 2021 17:29:56 +0200 Subject: [PATCH] Replace deprecated std constants by associated constants. See https://blog.rust-lang.org/2020/04/23/Rust-1.43.0.html#library-changes and https://doc.rust-lang.org/stable/std/usize/index.html for details. --- src/cow_rc_str.rs | 1 - src/tests.rs | 1 - src/tokenizer.rs | 1 - 3 files changed, 3 deletions(-) diff --git a/src/cow_rc_str.rs b/src/cow_rc_str.rs index f89f4cda..026f49d3 100644 --- a/src/cow_rc_str.rs +++ b/src/cow_rc_str.rs @@ -12,7 +12,6 @@ use std::ops::Deref; use std::rc::Rc; use std::slice; use std::str; -use std::usize; /// A string that is either shared (heap-allocated and reference-counted) or borrowed. /// diff --git a/src/tests.rs b/src/tests.rs index 654f3f7a..4ced0a44 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -631,7 +631,6 @@ fn line_numbers() { #[test] fn overflow() { - use std::f32; use std::iter::repeat; let css = r" diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 62f38683..0f51d340 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -9,7 +9,6 @@ use crate::cow_rc_str::CowRcStr; use crate::parser::ParserState; use matches::matches; use std::char; -use std::i32; use std::ops::Range; /// One of the pieces the CSS input is broken into.