Update scalafmt to 3.0.8

This commit is contained in:
eikek
2021-12-11 20:30:47 +01:00
parent 61379ffff7
commit c21b2cdd29
29 changed files with 42 additions and 42 deletions

View File

@ -50,7 +50,7 @@ object JobState {
NonEmptyList.of(Waiting, Scheduled, Running, Stuck, Failed, Cancelled, Success)
val queued: Set[JobState] = Set(Waiting, Scheduled, Stuck)
val done: NonEmptyList[JobState] = NonEmptyList.of(Failed, Cancelled, Success)
val notDone: NonEmptyList[JobState] = //all - done
val notDone: NonEmptyList[JobState] = // all - done
NonEmptyList.of(Waiting, Scheduled, Running, Stuck)
val inProgress: Set[JobState] = Set(Scheduled, Running, Stuck)

View File

@ -168,7 +168,7 @@ object MimeType {
left
}
//https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6
// https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6
private def isToken(s: String): Boolean =
s.nonEmpty && s.forall(c => c.isLetterOrDigit || tokenExtraChars.contains(c))
@ -186,7 +186,7 @@ object MimeType {
seq(primary, sub)((p, s) => MimeType(p.toLowerCase, s.toLowerCase, None))
}
//https://datatracker.ietf.org/doc/html/rfc2046#section-4.1.2
// https://datatracker.ietf.org/doc/html/rfc2046#section-4.1.2
private val charset: P[Option[Charset]] = in =>
in.trim.toLowerCase.indexOf("charset=") match {
case -1 => Right((None, in))