diff options
author | Maan2003 <[email protected]> | 2021-06-13 04:59:36 +0100 |
---|---|---|
committer | Maan2003 <[email protected]> | 2021-06-13 04:59:36 +0100 |
commit | 75370312fbfe072947ffdc568eebc9cb4c6108e4 (patch) | |
tree | cb435a1c147db6891c7f6cf625efd8876f427788 /crates/ide/src/references | |
parent | 705f7e6e2644bf5de4255bc05ea8d9d5027c29b0 (diff) |
clippy::redundant_closure
Diffstat (limited to 'crates/ide/src/references')
-rw-r--r-- | crates/ide/src/references/rename.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/references/rename.rs b/crates/ide/src/references/rename.rs index 02b171bda..50cc1f963 100644 --- a/crates/ide/src/references/rename.rs +++ b/crates/ide/src/references/rename.rs | |||
@@ -426,7 +426,7 @@ fn text_edit_from_self_param(self_param: &ast::SelfParam, new_name: &str) -> Opt | |||
426 | None | 426 | None |
427 | } | 427 | } |
428 | 428 | ||
429 | let impl_def = self_param.syntax().ancestors().find_map(|it| ast::Impl::cast(it))?; | 429 | let impl_def = self_param.syntax().ancestors().find_map(ast::Impl::cast)?; |
430 | let type_name = target_type_name(&impl_def)?; | 430 | let type_name = target_type_name(&impl_def)?; |
431 | 431 | ||
432 | let mut replacement_text = String::from(new_name); | 432 | let mut replacement_text = String::from(new_name); |