diff --git a/procedural-masquerade/lib.rs b/procedural-masquerade/lib.rs index 22cdeeb1..e36b75bb 100644 --- a/procedural-masquerade/lib.rs +++ b/procedural-masquerade/lib.rs @@ -200,14 +200,14 @@ pub fn _extract_input(derive_input: &str) -> &str { for expected in &["#[allow(unused)]", "enum", "ProceduralMasqueradeDummyType", "{", "Input", "=", "(0,", "stringify!", "("] { - input = input.trim_left(); + input = input.trim_start(); assert!(input.starts_with(expected), "expected prefix {:?} not found in {:?}", expected, derive_input); input = &input[expected.len()..]; } for expected in [")", ").0,", "}"].iter().rev() { - input = input.trim_right(); + input = input.trim_end(); assert!(input.ends_with(expected), "expected suffix {:?} not found in {:?}", expected, derive_input); let end = input.len() - expected.len(); diff --git a/src/size_of_tests.rs b/src/size_of_tests.rs index b07abc07..e59e9498 100644 --- a/src/size_of_tests.rs +++ b/src/size_of_tests.rs @@ -6,7 +6,6 @@ use cow_rc_str::CowRcStr; use std::borrow::Cow; use tokenizer::Token; -#[macro_export] macro_rules! size_of_test { ($testname: ident, $t: ty, $expected_size: expr) => { #[test]