Skip to content

Commit

Permalink
shouldn't go crazy with @nospecialize
Browse files Browse the repository at this point in the history
  • Loading branch information
domluna committed Sep 21, 2024
1 parent 0a2323f commit c7bb3b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/styles/default/nest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function nest!(
extra_margin::Int = 0,
kwargs...,
)
@nospecialize kwargs extra_margin
@nospecialize kwargs
style = getstyle(ds)
nested = false

Expand Down Expand Up @@ -59,7 +59,7 @@ function nest!(
}[],
kwargs...,
)
@nospecialize kwargs lineage
@nospecialize kwargs
if is_leaf(fst)
s.line_offset += length(fst)
return false
Expand Down
2 changes: 1 addition & 1 deletion src/styles/default/pretty.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function pretty(
lineage::Vector{Tuple{JuliaSyntax.Kind,Bool,Bool}} = Tuple{JuliaSyntax.Kind,Bool,Bool}[],
kwargs...,
)
@nospecialize kwargs lineage
@nospecialize kwargs
k = kind(node)
style = getstyle(ds)
push!(lineage, (k, is_iterable(node), is_assignment(node)))
Expand Down

0 comments on commit c7bb3b0

Please # to comment.