Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed incorrectly commented deprecated attribute #178

Merged
merged 3 commits into from Oct 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion strum/src/lib.rs
Expand Up @@ -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<T>
where
T: ?Sized,
Expand Down
1 change: 1 addition & 0 deletions strum_macros/src/lib.rs
Expand Up @@ -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);

Expand Down