From 740a26b7d26a68cc46becda3cca39091e8da67fc Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 7 Feb 2020 23:35:34 +0200 Subject: Rename add import assist --- docs/user/assists.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'docs/user') diff --git a/docs/user/assists.md b/docs/user/assists.md index 1e2dd7485..f737a2fa4 100644 --- a/docs/user/assists.md +++ b/docs/user/assists.md @@ -154,20 +154,6 @@ impl Trait for () { } ``` -## `add_import` - -Adds a use statement for a given fully-qualified path. - -```rust -// BEFORE -fn process(map: std::collections::┃HashMap) {} - -// AFTER -use std::collections::HashMap; - -fn process(map: HashMap) {} -``` - ## `add_new` Adds a new inherent impl for a type. @@ -568,6 +554,20 @@ fn handle(action: Action) { } ``` +## `replace_qualified_name_with_use` + +Adds a use statement for a given fully-qualified name. + +```rust +// BEFORE +fn process(map: std::collections::┃HashMap) {} + +// AFTER +use std::collections::HashMap; + +fn process(map: HashMap) {} +``` + ## `split_import` Wraps the tail of import into braces. -- cgit v1.2.3