aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
diff options
context:
space:
mode:
authorAlan Du <[email protected]>2019-06-03 15:01:10 +0100
committerAlan Du <[email protected]>2019-06-04 23:05:07 +0100
commitecd420636efe54657ae742ce960ce061740ef108 (patch)
tree612606f7a9f093375a946a69078041f095eb0d8b /crates/ra_lsp_server
parent354db651dafd24d93cf0f151d63ad5ecb2e716e2 (diff)
Fix clippy::single_match
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r--crates/ra_lsp_server/tests/heavy_tests/support.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/ra_lsp_server/tests/heavy_tests/support.rs b/crates/ra_lsp_server/tests/heavy_tests/support.rs
index f952a03a3..955d283dd 100644
--- a/crates/ra_lsp_server/tests/heavy_tests/support.rs
+++ b/crates/ra_lsp_server/tests/heavy_tests/support.rs
@@ -141,15 +141,14 @@ impl Server {
141 R::Params: Serialize, 141 R::Params: Serialize,
142 { 142 {
143 let actual = self.send_request::<R>(params); 143 let actual = self.send_request::<R>(params);
144 match find_mismatch(&expected_resp, &actual) { 144 if let Some((expected_part, actual_part)) = find_mismatch(&expected_resp, &actual) {
145 Some((expected_part, actual_part)) => panic!( 145 panic!(
146 "JSON mismatch\nExpected:\n{}\nWas:\n{}\nExpected part:\n{}\nActual part:\n{}\n", 146 "JSON mismatch\nExpected:\n{}\nWas:\n{}\nExpected part:\n{}\nActual part:\n{}\n",
147 to_string_pretty(&expected_resp).unwrap(), 147 to_string_pretty(&expected_resp).unwrap(),
148 to_string_pretty(&actual).unwrap(), 148 to_string_pretty(&actual).unwrap(),
149 to_string_pretty(expected_part).unwrap(), 149 to_string_pretty(expected_part).unwrap(),
150 to_string_pretty(actual_part).unwrap(), 150 to_string_pretty(actual_part).unwrap(),
151 ), 151 );
152 None => {}
153 } 152 }
154 } 153 }
155 154