mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Clean up unused field warning
This commit is contained in:
@@ -54,7 +54,6 @@ fn completes_items_from_standard_library() {
|
||||
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 @@
|
||||
|
||||
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 @@ pub(crate) fn root(mut self, path: &str) -> 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
|
||||
|
||||
Reference in New Issue
Block a user