mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Update scalafmt to 3.0.8
This commit is contained in:
@ -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)
|
||||
|
||||
|
@ -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))
|
||||
|
Reference in New Issue
Block a user