Skip to content

Commit 0d56b66

Browse files
author
bors-servo
authored
Auto merge of servo#238 - servo:nightly, r=asajeffrey
Fix nightly warnings and errors. This will allow servo#227 to merge. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/238) <!-- Reviewable:end -->
2 parents 218d737 + 92fed1f commit 0d56b66

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

procedural-masquerade/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,14 @@ pub fn _extract_input(derive_input: &str) -> &str {
200200

201201
for expected in &["#[allow(unused)]", "enum", "ProceduralMasqueradeDummyType", "{",
202202
"Input", "=", "(0,", "stringify!", "("] {
203-
input = input.trim_left();
203+
input = input.trim_start();
204204
assert!(input.starts_with(expected),
205205
"expected prefix {:?} not found in {:?}", expected, derive_input);
206206
input = &input[expected.len()..];
207207
}
208208

209209
for expected in [")", ").0,", "}"].iter().rev() {
210-
input = input.trim_right();
210+
input = input.trim_end();
211211
assert!(input.ends_with(expected),
212212
"expected suffix {:?} not found in {:?}", expected, derive_input);
213213
let end = input.len() - expected.len();

src/size_of_tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use cow_rc_str::CowRcStr;
66
use std::borrow::Cow;
77
use tokenizer::Token;
88

9-
#[macro_export]
109
macro_rules! size_of_test {
1110
($testname: ident, $t: ty, $expected_size: expr) => {
1211
#[test]

0 commit comments

Comments
 (0)