diff options
author | Kevaundray Wedderburn <[email protected]> | 2021-01-06 20:15:48 +0000 |
---|---|---|
committer | Kevaundray Wedderburn <[email protected]> | 2021-01-07 12:09:23 +0000 |
commit | 72b9a4fbd3c12f3250b9157a1d44230e04ec8b22 (patch) | |
tree | c138363e3592c690d841aeedb9ac97d6b2ff4396 /crates/assists/src/handlers/replace_unwrap_with_match.rs | |
parent | 171c3c08fe245938fb25321394233de5fe2abc7c (diff) |
Change <|> to $0 - Rebase
Diffstat (limited to 'crates/assists/src/handlers/replace_unwrap_with_match.rs')
-rw-r--r-- | crates/assists/src/handlers/replace_unwrap_with_match.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/assists/src/handlers/replace_unwrap_with_match.rs b/crates/assists/src/handlers/replace_unwrap_with_match.rs index f547066f0..a986a6ae8 100644 --- a/crates/assists/src/handlers/replace_unwrap_with_match.rs +++ b/crates/assists/src/handlers/replace_unwrap_with_match.rs | |||
@@ -23,7 +23,7 @@ use ide_db::ty_filter::TryEnum; | |||
23 | // enum Result<T, E> { Ok(T), Err(E) } | 23 | // enum Result<T, E> { Ok(T), Err(E) } |
24 | // fn main() { | 24 | // fn main() { |
25 | // let x: Result<i32, i32> = Result::Ok(92); | 25 | // let x: Result<i32, i32> = Result::Ok(92); |
26 | // let y = x.<|>unwrap(); | 26 | // let y = x.$0unwrap(); |
27 | // } | 27 | // } |
28 | // ``` | 28 | // ``` |
29 | // -> | 29 | // -> |
@@ -101,7 +101,7 @@ enum Result<T, E> { Ok(T), Err(E) } | |||
101 | fn i<T>(a: T) -> T { a } | 101 | fn i<T>(a: T) -> T { a } |
102 | fn main() { | 102 | fn main() { |
103 | let x: Result<i32, i32> = Result::Ok(92); | 103 | let x: Result<i32, i32> = Result::Ok(92); |
104 | let y = i(x).<|>unwrap(); | 104 | let y = i(x).$0unwrap(); |
105 | } | 105 | } |
106 | ", | 106 | ", |
107 | r" | 107 | r" |
@@ -127,7 +127,7 @@ enum Option<T> { Some(T), None } | |||
127 | fn i<T>(a: T) -> T { a } | 127 | fn i<T>(a: T) -> T { a } |
128 | fn main() { | 128 | fn main() { |
129 | let x = Option::Some(92); | 129 | let x = Option::Some(92); |
130 | let y = i(x).<|>unwrap(); | 130 | let y = i(x).$0unwrap(); |
131 | } | 131 | } |
132 | ", | 132 | ", |
133 | r" | 133 | r" |
@@ -153,7 +153,7 @@ enum Result<T, E> { Ok(T), Err(E) } | |||
153 | fn i<T>(a: T) -> T { a } | 153 | fn i<T>(a: T) -> T { a } |
154 | fn main() { | 154 | fn main() { |
155 | let x: Result<i32, i32> = Result::Ok(92); | 155 | let x: Result<i32, i32> = Result::Ok(92); |
156 | let y = i(x).<|>unwrap().count_zeroes(); | 156 | let y = i(x).$0unwrap().count_zeroes(); |
157 | } | 157 | } |
158 | ", | 158 | ", |
159 | r" | 159 | r" |
@@ -179,7 +179,7 @@ enum Option<T> { Some(T), None } | |||
179 | fn i<T>(a: T) -> T { a } | 179 | fn i<T>(a: T) -> T { a } |
180 | fn main() { | 180 | fn main() { |
181 | let x = Option::Some(92); | 181 | let x = Option::Some(92); |
182 | let y = i(x).<|>unwrap(); | 182 | let y = i(x).$0unwrap(); |
183 | } | 183 | } |
184 | ", | 184 | ", |
185 | r"i(x).unwrap()", | 185 | r"i(x).unwrap()", |