From 5f8b37563e6d82872a18afaf4d9ca25a4ebefac0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 29 Feb 2020 13:49:43 +0100 Subject: Cleanup editing API --- crates/ra_ide/src/expand_macro.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide/src') diff --git a/crates/ra_ide/src/expand_macro.rs b/crates/ra_ide/src/expand_macro.rs index f2814e684..5a079de27 100644 --- a/crates/ra_ide/src/expand_macro.rs +++ b/crates/ra_ide/src/expand_macro.rs @@ -52,7 +52,7 @@ fn expand_macro_recur( } } - Some(replace_descendants(&expanded, &|n| replaces.get(n).cloned())) + Some(replace_descendants(&expanded, |n| replaces.get(n).cloned())) } // FIXME: It would also be cool to share logic here and in the mbe tests, -- cgit v1.2.3