diff --git a/strum/src/lib.rs b/strum/src/lib.rs index ed50ea70..18a8af7e 100644 --- a/strum/src/lib.rs +++ b/strum/src/lib.rs @@ -168,7 +168,7 @@ pub trait EnumProperty { /// A cheap reference-to-reference conversion. Used to convert a value to a /// reference value with `'static` lifetime within generic code. -/// #[deprecated(since="0.13.0", note="please use `#[derive(IntoStaticStr)]` instead")] +#[deprecated(since="0.22.0", note="please use `#[derive(IntoStaticStr)]` instead")] pub trait AsStaticRef where T: ?Sized, diff --git a/strum_macros/src/lib.rs b/strum_macros/src/lib.rs index a6009a25..b49da1e6 100644 --- a/strum_macros/src/lib.rs +++ b/strum_macros/src/lib.rs @@ -191,6 +191,7 @@ pub fn variant_names(input: proc_macro::TokenStream) -> proc_macro::TokenStream } #[proc_macro_derive(AsStaticStr, attributes(strum))] +#[deprecated(since="0.22.0", note="please use `#[derive(IntoStaticStr)]` instead")] pub fn as_static_str(input: proc_macro::TokenStream) -> proc_macro::TokenStream { let ast = syn::parse_macro_input!(input as DeriveInput);