Skip to content

Commit

Permalink
RewriteScala3Settings: minor refactor, add default
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Dec 8, 2021
1 parent cfd6d04 commit 1cfc6cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object RewriteScala3Settings {
implicit val encoder: ConfEncoder[RewriteScala3Settings] =
generic.deriveEncoder[RewriteScala3Settings]

private val default = new RewriteScala3Settings
val default = new RewriteScala3Settings

implicit val decodec: ConfDecoderEx[RewriteScala3Settings] = Presets
.mapDecoder(generic.deriveDecoderEx(default).noTypos, "rewrite.scala3") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.scalafmt.rewrite._

case class RewriteSettings(
rules: Seq[Rewrite] = Nil,
scala3: RewriteScala3Settings = new RewriteScala3Settings,
scala3: RewriteScala3Settings = RewriteScala3Settings.default,
redundantBraces: RedundantBracesSettings = RedundantBracesSettings(),
sortModifiers: SortSettings = SortSettings.default,
imports: Imports.Settings = Imports.Settings(),
Expand Down

0 comments on commit 1cfc6cf

Please sign in to comment.