Skip to content

Commit bced3f2

Browse files
authored
Auto merge of #289 - FelixRilling:deprecation-fixes, r=jdm
Replace deprecated std constants by associated constants. This PR aims to fix a few minor deprecation warnings. 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.
2 parents 79ff609 + 15c2ec2 commit bced3f2

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/cow_rc_str.rs

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use std::ops::Deref;
1212
use std::rc::Rc;
1313
use std::slice;
1414
use std::str;
15-
use std::usize;
1615

1716
/// A string that is either shared (heap-allocated and reference-counted) or borrowed.
1817
///

src/tests.rs

-1
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,6 @@ fn line_numbers() {
631631

632632
#[test]
633633
fn overflow() {
634-
use std::f32;
635634
use std::iter::repeat;
636635

637636
let css = r"

src/tokenizer.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use crate::cow_rc_str::CowRcStr;
99
use crate::parser::ParserState;
1010
use matches::matches;
1111
use std::char;
12-
use std::i32;
1312
use std::ops::Range;
1413

1514
/// One of the pieces the CSS input is broken into.

0 commit comments

Comments
 (0)