Skip to content

Commit 14cc626

Browse files
bors[bot]bugadani
andauthored
Merge #7818
7818: Clean up warnings r=matklad a=bugadani Co-authored-by: Dániel Buga <bugadani@gmail.com>
2 parents 5df3ee8 + cb39f2d commit 14cc626

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

crates/mbe/src/benchmark.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ fn invocation_fixtures(rules: &FxHashMap<String, MacroRules>) -> Vec<(String, tt
177177
let c = 1013904223;
178178
*seed = usize::wrapping_add(usize::wrapping_mul(*seed, a), c);
179179
return *seed;
180-
};
180+
}
181181
fn make_ident(ident: &str) -> tt::TokenTree {
182182
tt::Leaf::Ident(tt::Ident { id: tt::TokenId::unspecified(), text: SmolStr::new(ident) })
183183
.into()

crates/rust-analyzer/tests/rust-analyzer/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ version = "0.0.0"
5454
use std::collections::Spam;
5555
"#,
5656
)
57-
.with_sysroot(true)
5857
.server()
5958
.wait_until_workspace_is_loaded();
6059

@@ -451,7 +450,6 @@ fn main() {{}}
451450
"#,
452451
librs, libs
453452
))
454-
.with_sysroot(true)
455453
.server()
456454
.wait_until_workspace_is_loaded();
457455

crates/rust-analyzer/tests/rust-analyzer/support.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,14 @@ use crate::testdir::TestDir;
2020

2121
pub(crate) struct Project<'a> {
2222
fixture: &'a str,
23-
with_sysroot: bool,
2423
tmp_dir: Option<TestDir>,
2524
roots: Vec<PathBuf>,
2625
config: serde_json::Value,
2726
}
2827

2928
impl<'a> Project<'a> {
3029
pub(crate) fn with_fixture(fixture: &str) -> Project {
31-
Project {
32-
fixture,
33-
tmp_dir: None,
34-
roots: vec![],
35-
with_sysroot: false,
36-
config: serde_json::Value::Null,
37-
}
30+
Project { fixture, tmp_dir: None, roots: vec![], config: serde_json::Value::Null }
3831
}
3932

4033
pub(crate) fn tmp_dir(mut self, tmp_dir: TestDir) -> Project<'a> {
@@ -47,11 +40,6 @@ impl<'a> Project<'a> {
4740
self
4841
}
4942

50-
pub(crate) fn with_sysroot(mut self, yes: bool) -> Project<'a> {
51-
self.with_sysroot = yes;
52-
self
53-
}
54-
5543
pub(crate) fn with_config(mut self, config: serde_json::Value) -> Project<'a> {
5644
self.config = config;
5745
self

0 commit comments

Comments
 (0)