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> {
30
30
}
31
31
32
32
/// 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 {
34
34
attrs. iter ( ) . any ( is_unstable_variant)
35
35
}
36
36
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ fn config_value_of_variant(variant: &syn::Variant) -> String {
161
161
}
162
162
163
163
fn unstable_of_variant ( variant : & syn:: Variant ) -> bool {
164
- find_unstable_variant ( & variant. attrs )
164
+ any_unstable_variant ( & variant. attrs )
165
165
}
166
166
167
167
fn impl_serde ( ident : & syn:: Ident , variants : & Variants ) -> TokenStream {
You can’t perform that action at this time.
0 commit comments