diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-23 16:57:47 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-23 16:57:47 +0100 |
commit | 2197205885f43441f14861f34449426295397dd9 (patch) | |
tree | 3af21aaefe1efdabafeb5702959e1094504813e7 /crates/ra_assists/src/assists/early_return.rs | |
parent | edf4d8e555c6847fb9e6e61d727c4def11789bfc (diff) | |
parent | 6048d294009f0f58593747e0870aa174e29a32af (diff) |
Merge #2050
2050: xtask: don't depend on itertools r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/assists/early_return.rs')
-rw-r--r-- | crates/ra_assists/src/assists/early_return.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/assists/early_return.rs b/crates/ra_assists/src/assists/early_return.rs index 9c95adc53..f7d7e12e7 100644 --- a/crates/ra_assists/src/assists/early_return.rs +++ b/crates/ra_assists/src/assists/early_return.rs | |||
@@ -2,7 +2,7 @@ | |||
2 | //! | 2 | //! |
3 | //! Replace a large conditional with a guarded return. | 3 | //! Replace a large conditional with a guarded return. |
4 | //! | 4 | //! |
5 | //! ```notrust | 5 | //! ```text |
6 | //! fn <|>main() { | 6 | //! fn <|>main() { |
7 | //! if cond { | 7 | //! if cond { |
8 | //! foo(); | 8 | //! foo(); |
@@ -11,7 +11,7 @@ | |||
11 | //! } | 11 | //! } |
12 | //! ``` | 12 | //! ``` |
13 | //! -> | 13 | //! -> |
14 | //! ```notrust | 14 | //! ```text |
15 | //! fn main() { | 15 | //! fn main() { |
16 | //! if !cond { | 16 | //! if !cond { |
17 | //! return; | 17 | //! return; |