Skip to content

Commit

Permalink
Eliminate FoldHelper trait
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 19, 2024
1 parent 6e20bb8 commit eacc8ab
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 124 deletions.
5 changes: 1 addition & 4 deletions codegen/src/fold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn visit(
let Type::Syn(t) = &**t else { unimplemented!() };
let method = method_name(t);
Some(quote! {
FoldHelper::lift(#name, f, F::#method)
crate::gen::helper::fold::vec(#name, f, F::#method)
})
}
Type::Punctuated(p) => {
Expand Down Expand Up @@ -230,9 +230,6 @@ pub fn generate(defs: &Definitions) -> Result<()> {
clippy::needless_pass_by_ref_mut,
)]

#[cfg(any(feature = "full", feature = "derive"))]
use crate::gen::helper::fold::FoldHelper;

#full_macro

/// Syntax tree traversal to transform the nodes of an owned syntax tree.
Expand Down
Loading

0 comments on commit eacc8ab

Please sign in to comment.