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