diff options
Diffstat (limited to 'docs/user/assists.md')
-rw-r--r-- | docs/user/assists.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md index b1fe44d84..303353e74 100644 --- a/docs/user/assists.md +++ b/docs/user/assists.md | |||
@@ -136,6 +136,20 @@ impl T for () { | |||
136 | } | 136 | } |
137 | ``` | 137 | ``` |
138 | 138 | ||
139 | ## `add_import` | ||
140 | |||
141 | Adds a use statement for a given fully-qualified path. | ||
142 | |||
143 | ```rust | ||
144 | // BEFORE | ||
145 | fn process(map: std::collections::┃HashMap<String, String>) {} | ||
146 | |||
147 | // AFTER | ||
148 | use std::collections::HashMap; | ||
149 | |||
150 | fn process(map: HashMap<String, String>) {} | ||
151 | ``` | ||
152 | |||
139 | ## `apply_demorgan` | 153 | ## `apply_demorgan` |
140 | 154 | ||
141 | Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws). | 155 | Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws). |