From 1329dd4e287c137ec0a90abeec0272275b2b2c8d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 2 Sep 2018 15:18:43 +0300 Subject: Avoid clones --- crates/server/tests/heavy_tests/support.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/server/tests/heavy_tests') 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 { }; for (path, text) in files { res.send_notification(RawNotification::new::( - DidOpenTextDocumentParams { + &DidOpenTextDocumentParams { text_document: TextDocumentItem { uri: Url::from_file_path(path).unwrap(), language_id: "rust".to_string(), @@ -149,7 +149,7 @@ impl Server { R: Request, R::Params: Serialize, { - let r = RawRequest::new::(id, params); + let r = RawRequest::new::(id, ¶ms); self.sender.as_ref() .unwrap() .send(RawMessage::Request(r)); -- cgit v1.2.3