diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-06 18:44:34 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-06 18:44:34 +0000 |
commit | 71b8fb7c572eb658ee1136f086d6348aafba1e1d (patch) | |
tree | 6643987173e3748feda4f7cbedb329adb7e1768d /crates/ide_assists/src/handlers/replace_unwrap_with_match.rs | |
parent | cd60c4f76ce21bac16ca90d94b29096739c9c551 (diff) | |
parent | e29b53f1e6ba067725c0cbbf01c8f0aa7e09913b (diff) |
Merge #7894
7894: generate_function assist: convert arg names to lower snake case r=Veykril a=JoshMcguigan
This PR fixes one of the points listed by @TimoFreiberg in #3639. Specifically that all generated argument names should be converted to lower snake case.
```rust
struct BazBaz;
fn foo() {
bar$0(BazBaz);
// ^ when triggering the assist here, you get the output below
}
// BEFORE
fn bar(BazBaz: BazBaz) ${0:-> ()} {
todo!()
}
// AFTER
fn bar(baz_baz: BazBaz) ${0:-> ()} {
todo!()
}
```
Co-authored-by: Josh Mcguigan <[email protected]>
Diffstat (limited to 'crates/ide_assists/src/handlers/replace_unwrap_with_match.rs')
0 files changed, 0 insertions, 0 deletions