diff options
author | uHOOCCOOHu <[email protected]> | 2019-09-29 22:15:03 +0100 |
---|---|---|
committer | uHOOCCOOHu <[email protected]> | 2019-09-30 09:17:53 +0100 |
commit | 5a4b4f507e9b90bfe41b451763868cba0a70c392 (patch) | |
tree | 7e136a69aa5bf67a2dacf74fdee189558970ff20 /crates/ra_assists | |
parent | 71efdaa6364142b359c59659ec10f35a1e53b5d2 (diff) |
Fix API of Attr
Diffstat (limited to 'crates/ra_assists')
-rw-r--r-- | crates/ra_assists/src/assists/add_derive.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/assists/add_derive.rs b/crates/ra_assists/src/assists/add_derive.rs index 9c88644df..8f2c6266e 100644 --- a/crates/ra_assists/src/assists/add_derive.rs +++ b/crates/ra_assists/src/assists/add_derive.rs | |||
@@ -13,7 +13,7 @@ pub(crate) fn add_derive(mut ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> | |||
13 | ctx.add_action(AssistId("add_derive"), "add `#[derive]`", |edit| { | 13 | ctx.add_action(AssistId("add_derive"), "add `#[derive]`", |edit| { |
14 | let derive_attr = nominal | 14 | let derive_attr = nominal |
15 | .attrs() | 15 | .attrs() |
16 | .filter_map(|x| x.as_call()) | 16 | .filter_map(|x| x.as_simple_call()) |
17 | .filter(|(name, _arg)| name == "derive") | 17 | .filter(|(name, _arg)| name == "derive") |
18 | .map(|(_name, arg)| arg) | 18 | .map(|(_name, arg)| arg) |
19 | .next(); | 19 | .next(); |