From 2f7b03b01c4379e070df2db96e94c145286cd7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Mon, 1 Mar 2021 09:05:14 +0100 Subject: Remove redundant semicolon --- crates/mbe/src/benchmark.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/mbe/src/benchmark.rs b/crates/mbe/src/benchmark.rs index 0d0acd589..6d81be880 100644 --- a/crates/mbe/src/benchmark.rs +++ b/crates/mbe/src/benchmark.rs @@ -177,7 +177,7 @@ fn invocation_fixtures(rules: &FxHashMap) -> Vec<(String, tt let c = 1013904223; *seed = usize::wrapping_add(usize::wrapping_mul(*seed, a), c); return *seed; - }; + } fn make_ident(ident: &str) -> tt::TokenTree { tt::Leaf::Ident(tt::Ident { id: tt::TokenId::unspecified(), text: SmolStr::new(ident) }) .into() -- cgit v1.2.3 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(-) (limited to 'crates') 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