We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61a2de8 commit 51220aaCopy full SHA for 51220aa
src/lib.rs
@@ -89,12 +89,8 @@ fn dummy_const_trick<T: quote::ToTokens>(
89
}
90
91
92
-#[allow(deprecated)]
93
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()
+ ident.to_string().trim_start_matches("r#").to_owned()
98
99
100
// If `data` is a newtype, return the type it's wrapping.
0 commit comments