Skip to content

Commit 51220aa

Browse files
committed
Stop using deprecated trim_left_matches
1 parent 61a2de8 commit 51220aa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,8 @@ fn dummy_const_trick<T: quote::ToTokens>(
8989
}
9090
}
9191

92-
#[allow(deprecated)]
9392
fn unraw(ident: &proc_macro2::Ident) -> String {
94-
// str::trim_start_matches was added in 1.30, trim_left_matches deprecated
95-
// in 1.33. We currently support rustc back to 1.15 so we need to continue
96-
// to use the deprecated one.
97-
ident.to_string().trim_left_matches("r#").to_owned()
93+
ident.to_string().trim_start_matches("r#").to_owned()
9894
}
9995

10096
// If `data` is a newtype, return the type it's wrapping.

0 commit comments

Comments
 (0)