Skip to content

Commit

Permalink
refactor: use set_cli() for --style-edition
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Jul 27, 2024
1 parent 0f53d2b commit ec7b298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ impl CliOptions for GetOptsOptions {
config.set_cli().edition(edition);
}
if let Some(edition) = self.style_edition {
config.set().style_edition(edition);
config.set_cli().style_edition(edition);
}
if self.check {
config.set_cli().emit_mode(EmitMode::Diff);
Expand Down

0 comments on commit ec7b298

Please sign in to comment.