From 336fd8b10ac31310daec6d1ce952f03b99f92a8d Mon Sep 17 00:00:00 2001 From: Martin Hansen Date: Sun, 23 Jul 2023 11:21:38 +0200 Subject: [PATCH] chore: use common syntax for Quotes.reflect.* Apparently, `import quotes.reflect.*` is the common way to do this. --- src/main/derived/macros.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/derived/macros.scala b/src/main/derived/macros.scala index ba2a1aa..cde7f3b 100644 --- a/src/main/derived/macros.scala +++ b/src/main/derived/macros.scala @@ -5,8 +5,8 @@ import scala.quoted.* /** * Implementation of [[isShrinkAnyMacro]]. */ -private def isShrinkAny[T](using Type[T])(using q: Quotes): Expr[Boolean] = - import q.reflect.* +private def isShrinkAny[T](using Type[T])(using Quotes): Expr[Boolean] = + import quotes.reflect.* Implicits.search(TypeRepr.of[org.scalacheck.Shrink[T]]) match case is: ImplicitSearchSuccess => Expr(is.tree.asExpr.matches('{ org.scalacheck.Shrink.shrinkAny[T] }))