diff --git a/serde_derive/src/dummy.rs b/serde_derive/src/dummy.rs index a02bd3762..2be502713 100644 --- a/serde_derive/src/dummy.rs +++ b/serde_derive/src/dummy.rs @@ -39,10 +39,6 @@ pub fn wrap_in_const( } } -#[allow(deprecated)] fn unraw(ident: &Ident) -> String { - // str::trim_start_matches was added in 1.30, trim_left_matches deprecated - // in 1.33. We currently support rustc back to 1.15 so we need to continue - // to use the deprecated one. - ident.to_string().trim_left_matches("r#").to_owned() + ident.to_string().trim_start_matches("r#").to_owned() } diff --git a/serde_derive/src/internals/attr.rs b/serde_derive/src/internals/attr.rs index dc532484d..c9a76a621 100644 --- a/serde_derive/src/internals/attr.rs +++ b/serde_derive/src/internals/attr.rs @@ -141,12 +141,8 @@ pub struct Name { deserialize_aliases: Vec, } -#[allow(deprecated)] fn unraw(ident: &Ident) -> String { - // str::trim_start_matches was added in 1.30, trim_left_matches deprecated - // in 1.33. We currently support rustc back to 1.15 so we need to continue - // to use the deprecated one. - ident.to_string().trim_left_matches("r#").to_owned() + ident.to_string().trim_start_matches("r#").to_owned() } impl Name {