mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Simplify
This commit is contained in:
parent
abe3177445
commit
9767156a29
4 changed files with 33 additions and 24 deletions
|
@ -117,7 +117,7 @@ fn derive_expand(
|
|||
}
|
||||
|
||||
pub fn pseudo_derive_attr_expansion(
|
||||
tt: &tt::Subtree,
|
||||
_: &tt::Subtree,
|
||||
args: &tt::Subtree,
|
||||
call_site: Span,
|
||||
) -> ExpandResult<tt::Subtree> {
|
||||
|
@ -141,7 +141,7 @@ pub fn pseudo_derive_attr_expansion(
|
|||
token_trees.push(mk_leaf(']'));
|
||||
}
|
||||
ExpandResult::ok(tt::Subtree {
|
||||
delimiter: tt.delimiter,
|
||||
delimiter: args.delimiter,
|
||||
token_trees: token_trees.into_boxed_slice(),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue