diff --git a/src/test.rs b/src/test.rs index 1d589c462d..cbd6fe6513 100644 --- a/src/test.rs +++ b/src/test.rs @@ -1,3 +1,4 @@ +#![allow(clippy::box_default)] //! Test support module; public to permit use from integration tests. use std::collections::HashMap; use std::env; diff --git a/tests/mock/clitools.rs b/tests/mock/clitools.rs index e4ce652bcd..6d4a0d5fe1 100644 --- a/tests/mock/clitools.rs +++ b/tests/mock/clitools.rs @@ -762,7 +762,7 @@ impl Config { /// Change the current distribution manifest to a particular date pub fn set_current_dist_date(config: &Config, date: &str) { - let url = Url::from_file_path(&config.distdir.as_ref().unwrap()).unwrap(); + let url = Url::from_file_path(config.distdir.as_ref().unwrap()).unwrap(); for channel in &["nightly", "beta", "stable"] { change_channel_date(&url, channel, date); } diff --git a/tests/suite/dist.rs b/tests/suite/dist.rs index 245482439d..87a9db6290 100644 --- a/tests/suite/dist.rs +++ b/tests/suite/dist.rs @@ -1,5 +1,6 @@ // Tests of installation and updates from a v2 Rust distribution // server (mocked on the file system) +#![allow(clippy::type_complexity)] use std::cell::Cell; use std::collections::HashMap;