File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,6 @@ pub fn wrap_in_const(
39
39
}
40
40
}
41
41
42
- #[ allow( deprecated) ]
43
42
fn unraw ( ident : & Ident ) -> String {
44
- // str::trim_start_matches was added in 1.30, trim_left_matches deprecated
45
- // in 1.33. We currently support rustc back to 1.15 so we need to continue
46
- // to use the deprecated one.
47
- ident. to_string ( ) . trim_left_matches ( "r#" ) . to_owned ( )
43
+ ident. to_string ( ) . trim_start_matches ( "r#" ) . to_owned ( )
48
44
}
Original file line number Diff line number Diff line change @@ -141,12 +141,8 @@ pub struct Name {
141
141
deserialize_aliases : Vec < String > ,
142
142
}
143
143
144
- #[ allow( deprecated) ]
145
144
fn unraw ( ident : & Ident ) -> String {
146
- // str::trim_start_matches was added in 1.30, trim_left_matches deprecated
147
- // in 1.33. We currently support rustc back to 1.15 so we need to continue
148
- // to use the deprecated one.
149
- ident. to_string ( ) . trim_left_matches ( "r#" ) . to_owned ( )
145
+ ident. to_string ( ) . trim_start_matches ( "r#" ) . to_owned ( )
150
146
}
151
147
152
148
impl Name {
You can’t perform that action at this time.
0 commit comments