Skip to content

Commit ffa8293

Browse files
Clippy fixes
1 parent 9747102 commit ffa8293

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ pub fn this_host_triple() -> String {
120120
// For windows, this host may be different to the target: we may be
121121
// building with i686 toolchain, but on an x86_64 host, so run the
122122
// actual detection logic and trust it.
123+
#[allow(clippy::box_default)]
123124
let tp = Box::new(currentprocess::TestProcess::default());
124125
return currentprocess::with(tp, || TargetTriple::from_host().unwrap().to_string());
125126
}

tests/mock/clitools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ impl Config {
762762

763763
/// Change the current distribution manifest to a particular date
764764
pub fn set_current_dist_date(config: &Config, date: &str) {
765-
let url = Url::from_file_path(&config.distdir.as_ref().unwrap()).unwrap();
765+
let url = Url::from_file_path(config.distdir.as_ref().unwrap()).unwrap();
766766
for channel in &["nightly", "beta", "stable"] {
767767
change_channel_date(&url, channel, date);
768768
}

tests/suite/dist.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Tests of installation and updates from a v2 Rust distribution
22
// server (mocked on the file system)
3+
#![allow(clippy::type_complexity)]
34

45
use std::cell::Cell;
56
use std::collections::HashMap;

0 commit comments

Comments
 (0)