Skip to content

Commit 69d6eee

Browse files
authored
Merge pull request #155 from scala-steward/update/scalafmt-core-2.4.1
Update scalafmt-core to 2.4.1
2 parents 02508ce + 20d0c1e commit 69d6eee

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "2.3.2"
1+
version = "2.4.1"
22

33
maxColumn = 140
44
assumeStandardLibraryStripMargin = true

cassandra-datastax-driver/src/main/scala/com/avast/sst/datastax/CassandraDatastaxDriverModule.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ object CassandraDatastaxDriverModule {
150150
durationProperty(NETTY_TIMER_TICK_DURATION)(cfg.advanced.netty.timer.tickDuration),
151151
intProperty(NETTY_TIMER_TICKS_PER_WHEEL)(cfg.advanced.netty.timer.ticksPerWheel),
152152
intProperty(COALESCER_MAX_RUNS)(cfg.advanced.coalescer.maxRunsWithNoWork)
153-
).foldRight(DriverConfigLoader.programmaticBuilder()) { (w, b) =>
154-
w(b)
155-
}
153+
).foldRight(DriverConfigLoader.programmaticBuilder()) { (w, b) => w(b) }
156154

157155
val loader = cfg.profiles
158156
.foldRight(builder) { (p, b) =>
@@ -166,9 +164,7 @@ object CassandraDatastaxDriverModule {
166164
durationProperty(REQUEST_TRACE_INTERVAL)(p.advanced.request.trace.interval),
167165
stringProperty(REQUEST_TRACE_CONSISTENCY)(p.advanced.request.trace.consistency.toStringRepr),
168166
booleanProperty(REQUEST_LOG_WARNINGS)(p.advanced.request.logWarnings)
169-
).foldRight(b.startProfile(p.name)) { (w, pb) =>
170-
w(pb)
171-
}
167+
).foldRight(b.startProfile(p.name)) { (w, pb) => w(pb) }
172168
.endProfile()
173169
}
174170
.build()

http4s-client-blaze-pureconfig/src/main/scala/com/avast/sst/http4s/client/pureconfig/ConfigReaders.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ trait ConfigReaders {
1414
implicit protected def hint[T]: ProductHint[T] = ProductHint.default
1515

1616
implicit val http4sClientUserAgentReader: ConfigReader[`User-Agent`] = ConfigReader[String].emap { value =>
17-
`User-Agent`.parse(value).leftMap { parseFailure =>
18-
CannotConvert(value, "User-Agent HTTP header", parseFailure.message)
19-
}
17+
`User-Agent`.parse(value).leftMap { parseFailure => CannotConvert(value, "User-Agent HTTP header", parseFailure.message) }
2018
}
2119

2220
implicit val http4sClientParserModeReader: ConfigReader[ParserMode] = deriveEnumerationReader

http4s-server-micrometer/src/main/scala/com/avast/sst/http4s/server/micrometer/RouteMetrics.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ class RouteMetrics[F[_]: Sync](meterRegistry: MeterRegistry, clock: Clock[F]) {
2727
start <- clock.monotonic(TimeUnit.NANOSECONDS)
2828
response <- F
2929
.delay(activeRequests.increment())
30-
.bracket { _ =>
31-
route.flatTap(response => F.delay(httpStatusCodes.recordHttpStatus(response.status)))
32-
} { _ =>
30+
.bracket { _ => route.flatTap(response => F.delay(httpStatusCodes.recordHttpStatus(response.status))) } { _ =>
3331
for {
3432
time <- computeTime(start)
3533
_ <- F.delay(activeRequests.increment(-1))

0 commit comments

Comments
 (0)