mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
Upgrade to Rust 1.82 (#13816)
This commit is contained in:
parent
bd33b4972d
commit
2ff36530c3
11 changed files with 58 additions and 50 deletions
|
@ -90,9 +90,10 @@ fn attributes_for_prefix(
|
|||
attributes: &BTreeMap<String, &[Attribute]>,
|
||||
) -> proc_macro2::TokenStream {
|
||||
let attrs = intersection_all(codes.iter().map(|code| attributes[code]));
|
||||
match attrs.as_slice() {
|
||||
[] => quote!(),
|
||||
[..] => quote!(#(#attrs)*),
|
||||
if attrs.is_empty() {
|
||||
quote!()
|
||||
} else {
|
||||
quote!(#(#attrs)*)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue