From e696342afad79b0aa7638a8c51ef3ce45489ed21 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Tue, 5 Feb 2019 08:13:16 -0500 Subject: [PATCH] Rename assits to assists --- crates/ra_ide_api/src/{assits.rs => assists.rs} | 0 crates/ra_ide_api/src/{assits => assists}/fill_match_arm.rs | 6 +++--- .../snapshots/tests__fill_match_arm1.snap | 0 .../snapshots/tests__fill_match_arm2.snap | 0 crates/ra_ide_api/src/imp.rs | 2 +- crates/ra_ide_api/src/lib.rs | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename crates/ra_ide_api/src/{assits.rs => assists.rs} (100%) rename crates/ra_ide_api/src/{assits => assists}/fill_match_arm.rs (96%) rename crates/ra_ide_api/src/{assits => assists}/snapshots/tests__fill_match_arm1.snap (100%) rename crates/ra_ide_api/src/{assits => assists}/snapshots/tests__fill_match_arm2.snap (100%) diff --git a/crates/ra_ide_api/src/assits.rs b/crates/ra_ide_api/src/assists.rs similarity index 100% rename from crates/ra_ide_api/src/assits.rs rename to crates/ra_ide_api/src/assists.rs diff --git a/crates/ra_ide_api/src/assits/fill_match_arm.rs b/crates/ra_ide_api/src/assists/fill_match_arm.rs similarity index 96% rename from crates/ra_ide_api/src/assits/fill_match_arm.rs rename to crates/ra_ide_api/src/assists/fill_match_arm.rs index d433861a07..6ae829d856 100644 --- a/crates/ra_ide_api/src/assits/fill_match_arm.rs +++ b/crates/ra_ide_api/src/assists/fill_match_arm.rs @@ -18,7 +18,7 @@ use ra_syntax::{ } }; -use crate::assits::AssistCtx; +use crate::assists::AssistCtx; pub fn fill_match_arm(ctx: AssistCtx) -> Option { let match_expr = ctx.node_at_offset::()?; @@ -110,8 +110,8 @@ mod tests { .with_db(|db| db.parse(frange.file_id)) .expect("source file"); let ret = analysis - .with_db(|db| crate::assits::assists(db, frange.file_id, &source_file, frange.range)) - .expect("assits"); + .with_db(|db| crate::assists::assists(db, frange.file_id, &source_file, frange.range)) + .expect("assists"); assert_debug_snapshot_matches!(name, ret); } diff --git a/crates/ra_ide_api/src/assits/snapshots/tests__fill_match_arm1.snap b/crates/ra_ide_api/src/assists/snapshots/tests__fill_match_arm1.snap similarity index 100% rename from crates/ra_ide_api/src/assits/snapshots/tests__fill_match_arm1.snap rename to crates/ra_ide_api/src/assists/snapshots/tests__fill_match_arm1.snap diff --git a/crates/ra_ide_api/src/assits/snapshots/tests__fill_match_arm2.snap b/crates/ra_ide_api/src/assists/snapshots/tests__fill_match_arm2.snap similarity index 100% rename from crates/ra_ide_api/src/assits/snapshots/tests__fill_match_arm2.snap rename to crates/ra_ide_api/src/assists/snapshots/tests__fill_match_arm2.snap diff --git a/crates/ra_ide_api/src/imp.rs b/crates/ra_ide_api/src/imp.rs index 5f672367ca..fd8637ad24 100644 --- a/crates/ra_ide_api/src/imp.rs +++ b/crates/ra_ide_api/src/imp.rs @@ -240,7 +240,7 @@ impl db::RootDatabase { let file = self.parse(frange.file_id); ra_ide_api_light::assists::assists(&file, frange.range) .into_iter() - .chain(crate::assits::assists(self, frange.file_id, &file, frange.range).into_iter()) + .chain(crate::assists::assists(self, frange.file_id, &file, frange.range).into_iter()) .map(|local_edit| SourceChange::from_local_edit(frange.file_id, local_edit)) .collect() } diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 65941a5ca8..3a187d7a54 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs @@ -30,7 +30,7 @@ mod syntax_highlighting; mod parent_module; mod rename; mod impls; -mod assits; +mod assists; #[cfg(test)] mod marks;