mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
fix: clean up warnings
Change-Id: I91a468f6e846ac28574825b8ee7aa02fbff68f63
This commit is contained in:
parent
354be0ae8a
commit
44363cd5d2
3 changed files with 6 additions and 6 deletions
|
@ -47,7 +47,7 @@ pub fn syntax_node_to_token_tree(node: &SyntaxNode) -> Option<(tt::Subtree, Toke
|
|||
|
||||
fn token_tree_to_syntax_node<F>(tt: &tt::Subtree, f: F) -> Result<TreeArc<SyntaxNode>, ExpandError>
|
||||
where
|
||||
F: Fn(&mut ra_parser::TokenSource, &mut ra_parser::TreeSink),
|
||||
F: Fn(&mut dyn ra_parser::TokenSource, &mut dyn ra_parser::TreeSink),
|
||||
{
|
||||
let tokens = [tt.clone().into()];
|
||||
let buffer = TokenBuffer::new(&tokens);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue