aboutsummaryrefslogtreecommitdiff
path: root/crates/server/tests/heavy_tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-02 13:18:43 +0100
committerAleksey Kladov <[email protected]>2018-09-02 13:18:43 +0100
commit1329dd4e287c137ec0a90abeec0272275b2b2c8d (patch)
treed924f7bcc28b9c46d1643d54c5a2f109d19b2977 /crates/server/tests/heavy_tests
parent80be61ed78e8410e013cb94879435d54a4907c30 (diff)
Avoid clones
Diffstat (limited to 'crates/server/tests/heavy_tests')
-rw-r--r--crates/server/tests/heavy_tests/support.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/server/tests/heavy_tests/support.rs b/crates/server/tests/heavy_tests/support.rs
index 006926216..76cbd56ea 100644
--- a/crates/server/tests/heavy_tests/support.rs
+++ b/crates/server/tests/heavy_tests/support.rs
@@ -83,7 +83,7 @@ impl Server {
83 }; 83 };
84 for (path, text) in files { 84 for (path, text) in files {
85 res.send_notification(RawNotification::new::<DidOpenTextDocument>( 85 res.send_notification(RawNotification::new::<DidOpenTextDocument>(
86 DidOpenTextDocumentParams { 86 &DidOpenTextDocumentParams {
87 text_document: TextDocumentItem { 87 text_document: TextDocumentItem {
88 uri: Url::from_file_path(path).unwrap(), 88 uri: Url::from_file_path(path).unwrap(),
89 language_id: "rust".to_string(), 89 language_id: "rust".to_string(),
@@ -149,7 +149,7 @@ impl Server {
149 R: Request, 149 R: Request,
150 R::Params: Serialize, 150 R::Params: Serialize,
151 { 151 {
152 let r = RawRequest::new::<R>(id, params); 152 let r = RawRequest::new::<R>(id, &params);
153 self.sender.as_ref() 153 self.sender.as_ref()
154 .unwrap() 154 .unwrap()
155 .send(RawMessage::Request(r)); 155 .send(RawMessage::Request(r));