From 5ba9c3b55fc742c2bbf59b179b97b02ee3fbc4b1 Mon Sep 17 00:00:00 2001 From: Jules Ivanic Date: Thu, 28 Sep 2023 19:44:47 +0400 Subject: [PATCH] More Scalafix (#2887) --- .../src/main/scala/io/getquill/CassandraZioContext.scala | 1 - .../src/main/scala/io/getquill/cassandrazio/Quill.scala | 1 - .../src/main/scala/io/getquill/codegen/util/StringUtil.scala | 2 +- quill-engine/src/main/scala/io/getquill/norm/Normalize.scala | 3 +-- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/quill-cassandra-zio/src/main/scala/io/getquill/CassandraZioContext.scala b/quill-cassandra-zio/src/main/scala/io/getquill/CassandraZioContext.scala index 7d3dd1e9e1..fcccaf057c 100644 --- a/quill-cassandra-zio/src/main/scala/io/getquill/CassandraZioContext.scala +++ b/quill-cassandra-zio/src/main/scala/io/getquill/CassandraZioContext.scala @@ -7,7 +7,6 @@ import io.getquill.context.{Context, ExecutionInfo} import io.getquill.context.cassandra.{CassandraRowContext, CqlIdiom} import io.getquill.context.qzio.ZioContext import io.getquill.util.Messages.fail -import io.getquill.util.ContextLogger import zio.stream.ZStream import zio.{Chunk, ChunkBuilder, ZEnvironment, ZIO} diff --git a/quill-cassandra-zio/src/main/scala/io/getquill/cassandrazio/Quill.scala b/quill-cassandra-zio/src/main/scala/io/getquill/cassandrazio/Quill.scala index 6a32c7a1dd..a9f523cf96 100644 --- a/quill-cassandra-zio/src/main/scala/io/getquill/cassandrazio/Quill.scala +++ b/quill-cassandra-zio/src/main/scala/io/getquill/cassandrazio/Quill.scala @@ -4,7 +4,6 @@ import com.datastax.oss.driver.api.core.cql.{BoundStatement, Row} import io.getquill.context.cassandra.{CassandraRowContext, CqlIdiom} import io.getquill.context.qzio.ZioContext import io.getquill.context.{Context, ExecutionInfo} -import io.getquill.util.ContextLogger import io.getquill.{CassandraZioContext, NamingStrategy} import zio.stream.ZStream import zio.{Tag, ZEnvironment, ZIO, ZLayer} diff --git a/quill-codegen/src/main/scala/io/getquill/codegen/util/StringUtil.scala b/quill-codegen/src/main/scala/io/getquill/codegen/util/StringUtil.scala index 4b86088a39..aa17ca91b6 100644 --- a/quill-codegen/src/main/scala/io/getquill/codegen/util/StringUtil.scala +++ b/quill-codegen/src/main/scala/io/getquill/codegen/util/StringUtil.scala @@ -12,7 +12,7 @@ object StringUtil { implicit final class StringExtensions(private val str: String) extends AnyVal { def snakeToUpperCamel: String = str.split("_").map(_.toLowerCase).map(_.capitalize).mkString - def snakeToLowerCamel = str.split("_").map(_.toLowerCase).map(_.capitalize).mkString.uncapitalize + def snakeToLowerCamel: String = str.split("_").map(_.toLowerCase).map(_.capitalize).mkString.uncapitalize def lowerCamelToSnake: String = str.split("(?=[A-Z])").mkString("_").toLowerCase def uncapitalize = new String( diff --git a/quill-engine/src/main/scala/io/getquill/norm/Normalize.scala b/quill-engine/src/main/scala/io/getquill/norm/Normalize.scala index 30737f380f..f5863b99af 100644 --- a/quill-engine/src/main/scala/io/getquill/norm/Normalize.scala +++ b/quill-engine/src/main/scala/io/getquill/norm/Normalize.scala @@ -6,8 +6,7 @@ import io.getquill.ast.StatelessTransformer import io.getquill.norm.capture.{AvoidAliasConflictApply, DealiasApply} import io.getquill.ast.Action import io.getquill.util.Interpolator -import io.getquill.util.Messages.{TraceType, title, trace} -import io.getquill.util.Messages.TraceType.Normalizations +import io.getquill.util.Messages.{TraceType, title} import scala.annotation.tailrec