Skip to content

Commit 8e13eb6

Browse files
authored
chore: Make Settings a case class (#490)
Motivation: Making it a case class then I can do `Settings.default.copy(...)`
1 parent 7859783 commit 8e13eb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ object sjsonnet extends VersionFileModule {
317317
"--initialize-at-build-time",
318318
"--initialize-at-run-time=os.package$",
319319
"--install-exit-handlers",
320-
"-H:+ReportExceptionStackTraces",
320+
"-H:+ReportExceptionStackTraces"
321321
)
322322
}
323323
}

sjsonnet/src/sjsonnet/Settings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package sjsonnet
44
* Settings for the interpreter. This is a subset of Config which is used in the inner layers of the
55
* interpreters and shared between all platforms.
66
*/
7-
class Settings(
7+
case class Settings(
88
val preserveOrder: Boolean = false,
99
val strict: Boolean = false,
1010
val throwErrorForInvalidSets: Boolean = false,

0 commit comments

Comments
 (0)