mirror of https://github.com/sbt/sbt.git
Merge pull request #8330 from xuwei-k/redundant-val
remove redundant `val` modifier
This commit is contained in:
commit
a8f8aa41fa
|
|
@ -133,9 +133,9 @@ private[sbt] object MainLoop:
|
||||||
// }
|
// }
|
||||||
|
|
||||||
enum RunNext:
|
enum RunNext:
|
||||||
case ClearGlobalLog(val state: State)
|
case ClearGlobalLog(state: State)
|
||||||
case KeepGlobalLog(val state: State)
|
case KeepGlobalLog(state: State)
|
||||||
case Return(val result: xsbti.MainResult)
|
case Return(result: xsbti.MainResult)
|
||||||
|
|
||||||
def run(state: State): RunNext =
|
def run(state: State): RunNext =
|
||||||
val exchange = StandardMain.exchange
|
val exchange = StandardMain.exchange
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
|
||||||
class SingletonCacheSpec extends AnyFlatSpec {
|
class SingletonCacheSpec extends AnyFlatSpec {
|
||||||
|
|
||||||
case class ComplexType(val x: Int, y: String, z: List[Int])
|
case class ComplexType(x: Int, y: String, z: List[Int])
|
||||||
object ComplexType {
|
object ComplexType {
|
||||||
given format: JsonFormat[ComplexType] =
|
given format: JsonFormat[ComplexType] =
|
||||||
new JsonFormat[ComplexType] {
|
new JsonFormat[ComplexType] {
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ case class SettingsExample() extends Init {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Usage Example * */
|
/** Usage Example * */
|
||||||
case class SettingsUsage(val settingsExample: SettingsExample) {
|
case class SettingsUsage(settingsExample: SettingsExample) {
|
||||||
import settingsExample.*
|
import settingsExample.*
|
||||||
|
|
||||||
// Define some keys
|
// Define some keys
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue