diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-20 10:10:52 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-20 10:10:52 +0100 |
commit | 4d3fd62f897da50db1b203b86f45b9d2cd272b4d (patch) | |
tree | 595b6ff2205303b2eeb55a275ac0d364742732e6 /crates/ra_assists/src/tests | |
parent | b422cef7dce4d98391de2a108001a49ae1c9625a (diff) | |
parent | 33e111483fbc80c017037e0b158ee652ed41b3e8 (diff) |
Merge #4530
4530: Use snippets in change_return_type_to_result r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/tests')
-rw-r--r-- | crates/ra_assists/src/tests/generated.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/tests/generated.rs b/crates/ra_assists/src/tests/generated.rs index 3808aded1..cd6129dc5 100644 --- a/crates/ra_assists/src/tests/generated.rs +++ b/crates/ra_assists/src/tests/generated.rs | |||
@@ -204,7 +204,7 @@ struct Ctx<T: Clone> { | |||
204 | } | 204 | } |
205 | 205 | ||
206 | impl<T: Clone> Ctx<T> { | 206 | impl<T: Clone> Ctx<T> { |
207 | fn new(data: T) -> Self { Self { data } } | 207 | fn $0new(data: T) -> Self { Self { data } } |
208 | } | 208 | } |
209 | 209 | ||
210 | "#####, | 210 | "#####, |
@@ -276,7 +276,7 @@ fn doctest_change_return_type_to_result() { | |||
276 | fn foo() -> i32<|> { 42i32 } | 276 | fn foo() -> i32<|> { 42i32 } |
277 | "#####, | 277 | "#####, |
278 | r#####" | 278 | r#####" |
279 | fn foo() -> Result<i32, > { Ok(42i32) } | 279 | fn foo() -> Result<i32, ${0:_}> { Ok(42i32) } |
280 | "#####, | 280 | "#####, |
281 | ) | 281 | ) |
282 | } | 282 | } |