Clean up unused field warning

This commit is contained in:
Dániel Buga 2021-03-01 09:12:42 +01:00
parent 2f7b03b01c
commit cb39f2df94
2 changed files with 1 additions and 15 deletions

View File

@ -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();

View File

@ -20,7 +20,6 @@ use crate::testdir::TestDir;
pub(crate) struct Project<'a> {
fixture: &'a str,
with_sysroot: bool,
tmp_dir: Option<TestDir>,
roots: Vec<PathBuf>,
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