Skip to content

Commit d9bfc37

Browse files
committed
chore: don't add profile arg for fmt commands in xtask
1 parent 099cdb3 commit d9bfc37

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/xtask/src/main.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,10 @@ impl Xtasks {
589589
}
590590

591591
if let Some(profile) = app_settings.profile.as_ref() {
592-
args.push("--profile".to_owned());
593-
args.push(profile.clone());
592+
if command != "fmt" {
593+
args.push("--profile".to_owned());
594+
args.push(profile.clone());
595+
}
594596
}
595597

596598
if command != "fmt" {

0 commit comments

Comments
 (0)