aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/assists/remove_dbg.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-27 08:53:56 +0000
committerGitHub <[email protected]>2019-10-27 08:53:56 +0000
commitc185f74fc9280dba1433ce53c9886ce524308c3d (patch)
tree3f470ea1e7f737e3d846eb77b006dc75023652ec /crates/ra_assists/src/assists/remove_dbg.rs
parentb85f6d522af7630ab227762076a9fbf75de502de (diff)
parent8118dc1bb9bc63670f72965e5115daa96e8c72fd (diff)
Merge #2084
2084: use more consistent naming r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/assists/remove_dbg.rs')
-rw-r--r--crates/ra_assists/src/assists/remove_dbg.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/assists/remove_dbg.rs b/crates/ra_assists/src/assists/remove_dbg.rs
index 1a7e2b305..ac2c43e1a 100644
--- a/crates/ra_assists/src/assists/remove_dbg.rs
+++ b/crates/ra_assists/src/assists/remove_dbg.rs
@@ -8,7 +8,7 @@ use ra_syntax::{
8}; 8};
9 9
10pub(crate) fn remove_dbg(mut ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> { 10pub(crate) fn remove_dbg(mut ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> {
11 let macro_call = ctx.node_at_offset::<ast::MacroCall>()?; 11 let macro_call = ctx.find_node_at_offset::<ast::MacroCall>()?;
12 12
13 if !is_valid_macrocall(&macro_call, "dbg")? { 13 if !is_valid_macrocall(&macro_call, "dbg")? {
14 return None; 14 return None;