From 44363cd5d264f9bd214a3d87ad847dedf15e38e8 Mon Sep 17 00:00:00 2001 From: csmoe Date: Thu, 6 Jun 2019 10:06:46 +0800 Subject: fix: clean up warnings Change-Id: I91a468f6e846ac28574825b8ee7aa02fbff68f63 --- crates/ra_mbe/src/syntax_bridge.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_mbe') diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs index 9d3d2ad5b..cb039ca37 100644 --- a/crates/ra_mbe/src/syntax_bridge.rs +++ b/crates/ra_mbe/src/syntax_bridge.rs @@ -47,7 +47,7 @@ pub fn syntax_node_to_token_tree(node: &SyntaxNode) -> Option<(tt::Subtree, Toke fn token_tree_to_syntax_node(tt: &tt::Subtree, f: F) -> Result, 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); -- cgit v1.2.3