From cb39f2df9457ea372a5f870a3274b341a8f41c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Mon, 1 Mar 2021 09:12:42 +0100 Subject: Clean up unused field warning --- crates/rust-analyzer/tests/rust-analyzer/main.rs | 2 -- crates/rust-analyzer/tests/rust-analyzer/support.rs | 14 +------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/crates/rust-analyzer/tests/rust-analyzer/main.rs b/crates/rust-analyzer/tests/rust-analyzer/main.rs index 80bde29b9..391a0b60d 100644 --- a/crates/rust-analyzer/tests/rust-analyzer/main.rs +++ b/crates/rust-analyzer/tests/rust-analyzer/main.rs @@ -54,7 +54,6 @@ version = "0.0.0" use std::collections::Spam; "#, ) - .with_sysroot(true) .server() .wait_until_workspace_is_loaded(); @@ -451,7 +450,6 @@ fn main() {{}} "#, librs, libs )) - .with_sysroot(true) .server() .wait_until_workspace_is_loaded(); diff --git a/crates/rust-analyzer/tests/rust-analyzer/support.rs b/crates/rust-analyzer/tests/rust-analyzer/support.rs index 453ce4fa8..726d555e4 100644 --- a/crates/rust-analyzer/tests/rust-analyzer/support.rs +++ b/crates/rust-analyzer/tests/rust-analyzer/support.rs @@ -20,7 +20,6 @@ use crate::testdir::TestDir; pub(crate) struct Project<'a> { fixture: &'a str, - with_sysroot: bool, tmp_dir: Option, roots: Vec, config: serde_json::Value, @@ -28,13 +27,7 @@ pub(crate) struct Project<'a> { impl<'a> Project<'a> { pub(crate) fn with_fixture(fixture: &str) -> Project { - Project { - fixture, - tmp_dir: None, - roots: vec![], - with_sysroot: false, - config: serde_json::Value::Null, - } + Project { fixture, tmp_dir: None, roots: vec![], config: serde_json::Value::Null } } pub(crate) fn tmp_dir(mut self, tmp_dir: TestDir) -> Project<'a> { @@ -47,11 +40,6 @@ impl<'a> Project<'a> { self } - pub(crate) fn with_sysroot(mut self, yes: bool) -> Project<'a> { - self.with_sysroot = yes; - self - } - pub(crate) fn with_config(mut self, config: serde_json::Value) -> Project<'a> { self.config = config; self -- cgit v1.2.3