diff options
author | Aleksey Kladov <[email protected]> | 2021-05-09 17:51:06 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-05-09 17:55:43 +0100 |
commit | 4f3c0adc5aafea465c71c85f36484da970df1ba2 (patch) | |
tree | 4cb502a6c345c3ecfb4090067ab1de2cfd69ed55 /crates/ide_assists/src/tests | |
parent | 680a0d54e4d2d474ae41f4f4a95c749495a02883 (diff) |
internal: introduce `ast::make::ext` module with common shortcuts
There's a tension between keeping a well-architectured minimal
orthogonal set of constructs, and providing convenience functions.
Relieve this pressure by introducing an dedicated module for
non-orthogonal shortcuts.
This is inspired by the django.shortcuts module which serves a similar
purpose architecturally.
Diffstat (limited to 'crates/ide_assists/src/tests')
-rw-r--r-- | crates/ide_assists/src/tests/generated.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/tests/generated.rs b/crates/ide_assists/src/tests/generated.rs index 59bcef8fb..49c1a9776 100644 --- a/crates/ide_assists/src/tests/generated.rs +++ b/crates/ide_assists/src/tests/generated.rs | |||
@@ -1531,7 +1531,7 @@ enum Result<T, E> { Ok(T), Err(E) } | |||
1531 | fn main() { | 1531 | fn main() { |
1532 | let x: Result<i32, i32> = Result::Ok(92); | 1532 | let x: Result<i32, i32> = Result::Ok(92); |
1533 | let y = match x { | 1533 | let y = match x { |
1534 | Ok(a) => a, | 1534 | Ok(it) => it, |
1535 | $0_ => unreachable!(), | 1535 | $0_ => unreachable!(), |
1536 | }; | 1536 | }; |
1537 | } | 1537 | } |