File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pub fn find_config_value(attrs: &[syn::Attribute]) -> Option<String> {
3030}
3131
3232/// Returns `true` if the there is at least one `unstable` attribute in the given slice.
33- pub fn find_unstable_variant ( attrs : & [ syn:: Attribute ] ) -> bool {
33+ pub fn any_unstable_variant ( attrs : & [ syn:: Attribute ] ) -> bool {
3434 attrs. iter ( ) . any ( is_unstable_variant)
3535}
3636
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ fn config_value_of_variant(variant: &syn::Variant) -> String {
161161}
162162
163163fn unstable_of_variant ( variant : & syn:: Variant ) -> bool {
164- find_unstable_variant ( & variant. attrs )
164+ any_unstable_variant ( & variant. attrs )
165165}
166166
167167fn impl_serde ( ident : & syn:: Ident , variants : & Variants ) -> TokenStream {
You can’t perform that action at this time.
0 commit comments