@@ -1020,9 +1020,9 @@ pub fn my_func(a: i32, b: i32) -> Result<(), std::io::Error> {
10201020
10211021[discrete]
10221022=== `generate_enum_as_method`
1023- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_enum_projection_method.rs#L55 [generate_enum_projection_method.rs]
1023+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_enum_projection_method.rs#L56 [generate_enum_projection_method.rs]
10241024
1025- Generate an `as_` method for an enum variant.
1025+ Generate an `as_` method for this enum variant.
10261026
10271027.Before
10281028```rust
@@ -1053,9 +1053,9 @@ impl Value {
10531053
10541054[discrete]
10551055=== `generate_enum_is_method`
1056- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_enum_is_method.rs#L10 [generate_enum_is_method.rs]
1056+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_enum_is_method.rs#L11 [generate_enum_is_method.rs]
10571057
1058- Generate an `is_` method for an enum variant.
1058+ Generate an `is_` method for this enum variant.
10591059
10601060.Before
10611061```rust
@@ -1088,9 +1088,9 @@ impl Version {
10881088
10891089[discrete]
10901090=== `generate_enum_try_into_method`
1091- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_enum_projection_method.rs#L11 [generate_enum_projection_method.rs]
1091+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_enum_projection_method.rs#L12 [generate_enum_projection_method.rs]
10921092
1093- Generate an `try_into_` method for an enum variant.
1093+ Generate a `try_into_` method for this enum variant.
10941094
10951095.Before
10961096```rust
@@ -1123,7 +1123,7 @@ impl Value {
11231123=== `generate_from_impl_for_enum`
11241124**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_from_impl_for_enum.rs#L6[generate_from_impl_for_enum.rs]
11251125
1126- Adds a From impl for an enum variant with one tuple field.
1126+ Adds a From impl for this enum variant with one tuple field.
11271127
11281128.Before
11291129```rust
@@ -2445,6 +2445,26 @@ use std::fmt::Display;
24452445```
24462446
24472447
2448+ [discrete]
2449+ === `unnecessary_async`
2450+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unnecessary_async.rs#L15[unnecessary_async.rs]
2451+
2452+ Removes the `async` mark from functions which have no `.await` in their body.
2453+ Looks for calls to the functions and removes the `.await` on the call site.
2454+
2455+ .Before
2456+ ```rust
2457+ pub async f┃n foo() {}
2458+ pub async fn bar() { foo().await }
2459+ ```
2460+
2461+ .After
2462+ ```rust
2463+ pub fn foo() {}
2464+ pub async fn bar() { foo() }
2465+ ```
2466+
2467+
24482468[discrete]
24492469=== `unwrap_block`
24502470**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unwrap_block.rs#L11[unwrap_block.rs]
0 commit comments