Skip to content

Commit ba7eeac

Browse files
committed
fix bootstrap tests
1 parent 47cce21 commit ba7eeac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bootstrap/src/core/build_steps/clippy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub struct LintConfig {
9595
pub deny: Vec<String>,
9696
pub forbid: Vec<String>,
9797
// Path to folder containing clippy.toml, if any
98-
clippy_cfg_path: Option<PathBuf>,
98+
pub clippy_cfg_path: Option<PathBuf>,
9999
}
100100

101101
impl LintConfig {

src/bootstrap/src/core/config/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ fn order_of_clippy_rules() {
318318

319319
let actual = match config.cmd.clone() {
320320
crate::Subcommand::Clippy { allow, deny, warn, forbid, .. } => {
321-
let cfg = LintConfig { allow, deny, warn, forbid };
321+
let cfg = LintConfig { allow, deny, warn, forbid, clippy_cfg_path: None };
322322
get_clippy_rules_in_order(&args, &cfg)
323323
}
324324
_ => panic!("invalid subcommand"),
@@ -342,7 +342,7 @@ fn clippy_rule_separate_prefix() {
342342

343343
let actual = match config.cmd.clone() {
344344
crate::Subcommand::Clippy { allow, deny, warn, forbid, .. } => {
345-
let cfg = LintConfig { allow, deny, warn, forbid };
345+
let cfg = LintConfig { allow, deny, warn, forbid, clippy_cfg_path: None };
346346
get_clippy_rules_in_order(&args, &cfg)
347347
}
348348
_ => panic!("invalid subcommand"),

0 commit comments

Comments
 (0)