Merge pull request #8330 from xuwei-k/redundant-val

remove redundant `val` modifier
This commit is contained in:
eugene yokota 2025-10-06 00:17:07 -04:00 committed by GitHub
commit a8f8aa41fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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] {

View File

@ -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