aboutsummaryrefslogtreecommitdiff
path: root/docs/user/assists.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/user/assists.md')
-rw-r--r--docs/user/assists.md14
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
141Adds a use statement for a given fully-qualified path.
142
143```rust
144// BEFORE
145fn process(map: std::collections::┃HashMap<String, String>) {}
146
147// AFTER
148use std::collections::HashMap;
149
150fn process(map: HashMap<String, String>) {}
151```
152
139## `apply_demorgan` 153## `apply_demorgan`
140 154
141Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws). 155Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws).