Skip to content

Commit

Permalink
FMT: use rustfmt by default
Browse files Browse the repository at this point in the history
  • Loading branch information
l2dy authored Sep 7, 2024
1 parent df87671 commit 4d19376
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class RustfmtProjectSettingsService(
var additionalArguments by property("") { it.isEmpty() }
var channel by enum(RustChannel.DEFAULT)
var envs by map<String, String>()
var useRustfmt by property(false)
var useRustfmt by property(true)
var runRustfmtOnSave by property(false)

override fun copy(): RustfmtProjectSettings {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class RustfmtProjectSettingsServiceTest : RsProjectSettingsServiceTestBase() {
</map>
</option>
<option name="runRustfmtOnSave" value="true" />
<option name="useRustfmt" value="true" />
</RustfmtProjectSettings>
""")
assertEquals("--unstable-features", service.additionalArguments)
Expand Down

0 comments on commit 4d19376

Please sign in to comment.