Skip to content

Commit c8afe3b

Browse files
authored
Auto merge of #289 - FelixRilling:deprecation-fixes, r=emilio
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 c49f434 + 15c2ec2 commit c8afe3b

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
@@ -703,7 +703,6 @@ fn line_numbers() {
703703

704704
#[test]
705705
fn overflow() {
706-
use std::f32;
707706
use std::iter::repeat;
708707

709708
let css = r"

src/tokenizer.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use self::Token::*;
88
use crate::cow_rc_str::CowRcStr;
99
use crate::parser::ParserState;
1010
use std::char;
11-
use std::i32;
1211
use std::ops::Range;
1312

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

0 commit comments

Comments
 (0)