mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Flatten red_knot_project
import paths (#15616)
This commit is contained in:
parent
f82ef32e53
commit
73798327c6
26 changed files with 553 additions and 566 deletions
|
@ -19,14 +19,14 @@ pub(crate) fn derive_impl(input: DeriveInput) -> syn::Result<proc_macro2::TokenS
|
|||
.expect("Expected to handle named fields");
|
||||
|
||||
quote_spanned!(
|
||||
ident.span() => crate::project::combine::Combine::combine_with(&mut self.#ident, other.#ident)
|
||||
ident.span() => crate::combine::Combine::combine_with(&mut self.#ident, other.#ident)
|
||||
)
|
||||
})
|
||||
.collect();
|
||||
|
||||
Ok(quote! {
|
||||
#[automatically_derived]
|
||||
impl crate::project::combine::Combine for #ident {
|
||||
impl crate::combine::Combine for #ident {
|
||||
fn combine_with(&mut self, other: Self) {
|
||||
#(
|
||||
#output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue