mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 04:26:48 +00:00
Clean up unused field warning
This commit is contained in:
parent
2f7b03b01c
commit
cb39f2df94
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user