File tree Expand file tree Collapse file tree
mockingbird/src/main/scala/ru/tinkoff/tcb/protocol Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ object schema {
3535 implicit val finiteDurationSchema : Schema [FiniteDuration ] =
3636 Schema .schemaForString
3737 .validate(Validator .pattern(pattern))
38- .map(s => Try (Duration (s).pipe { case Duration (len, unit) => FiniteDuration (len, unit) }) .toOption)(_.toString())
38+ .map(s => Try (Duration (s)).collect { case Duration (len, unit) => FiniteDuration (len, unit) }.toOption)(_.toString())
3939
4040 implicit def mapSchema [K , V ](implicit underlying : Schema [V ]): Schema [Map [K , V ]] =
4141 Schema (SchemaType .SOpenProduct (Nil , underlying)(_ => Map ()))
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ object Settings {
4949 prelude(), // standart imports + zio
5050 // warning settings
5151 " -Wconf:any:v" , // shows warning categories for nowarn (https://www.scala-lang.org/2021/01/12/configuring-and-suppressing-warnings.html)
52+ " -Wconf:msg=match may not be exhaustive:e" ,
5253 " -Wunused:imports" ,
5354 " -Wunused:privates" ,
5455 " -Wvalue-discard"
You can’t perform that action at this time.
0 commit comments