diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-03-18 18:35:11 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-18 18:35:11 +0000 |
commit | b28d41186698a6e2aa3d679ee63dd48304ca4262 (patch) | |
tree | 7be0684f1c2660eb5da089d1067d13a343e8bcff /docs/user | |
parent | 12c952f8010afb583989a6e72f81ded4aa9110d2 (diff) | |
parent | 3f6dc20d3cf3fa101552a9067b98a1314260a679 (diff) |
Merge #3640
3640: Merge imports assist r=matklad a=matklad
Work towards #2220
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'docs/user')
-rw-r--r-- | docs/user/assists.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md index 9861332af..e2850b4dd 100644 --- a/docs/user/assists.md +++ b/docs/user/assists.md | |||
@@ -402,6 +402,19 @@ fn main() { | |||
402 | } | 402 | } |
403 | ``` | 403 | ``` |
404 | 404 | ||
405 | ## `merge_imports` | ||
406 | |||
407 | Merges two imports with a common prefix. | ||
408 | |||
409 | ```rust | ||
410 | // BEFORE | ||
411 | use std::┃fmt::Formatter; | ||
412 | use std::io; | ||
413 | |||
414 | // AFTER | ||
415 | use std::{fmt::Formatter, io}; | ||
416 | ``` | ||
417 | |||
405 | ## `merge_match_arms` | 418 | ## `merge_match_arms` |
406 | 419 | ||
407 | Merges identical match arms. | 420 | Merges identical match arms. |