Skip to content

Commit

Permalink
Merge pull request #3276 from gautamprikshit1/clippy-fixes
Browse files Browse the repository at this point in the history
Clippy fixes
  • Loading branch information
rbtcollins authored Mar 21, 2023
2 parents 2a7ea00 + 60c54b7 commit 4094153
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/test.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/mock/clitools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions tests/suite/dist.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 4094153

Please sign in to comment.