diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/assists.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md index 6c6943622..02323772c 100644 --- a/docs/user/assists.md +++ b/docs/user/assists.md | |||
@@ -695,3 +695,21 @@ use std::┃collections::HashMap; | |||
695 | // AFTER | 695 | // AFTER |
696 | use std::{collections::HashMap}; | 696 | use std::{collections::HashMap}; |
697 | ``` | 697 | ``` |
698 | |||
699 | ## `unwrap_block` | ||
700 | |||
701 | Removes the `mut` keyword. | ||
702 | |||
703 | ```rust | ||
704 | // BEFORE | ||
705 | fn foo() { | ||
706 | if true {┃ | ||
707 | println!("foo"); | ||
708 | } | ||
709 | } | ||
710 | |||
711 | // AFTER | ||
712 | fn foo() { | ||
713 | ┃println!("foo"); | ||
714 | } | ||
715 | ``` | ||