Skip to content

Commit 4bda7be

Browse files
Apply suggestions from code review
1 parent 88de8a3 commit 4bda7be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/contextual/derivation-macro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ from the signature. The body of the `derived` method is shown below:
4444
given derived[T: Type](using qctx: QuoteContext) as Expr[Eq[T]] = {
4545
import qctx.reflect._
4646

47-
val ev: Expr[Mirror.Of[T]] = Expr.summon(using Type.of[Mirror.Of[T]]).get
47+
val ev: Expr[Mirror.Of[T]] = Expr.summon[Mirror.Of[T]].get
4848

4949
ev match {
5050
case '{ $m: Mirror.ProductOf[T] { type MirroredElemTypes = elementTypes }} =>
@@ -179,7 +179,7 @@ object Eq {
179179
given derived[T: Type](using qctx: QuoteContext) as Expr[Eq[T]] = {
180180
import qctx.reflect._
181181

182-
val ev: Expr[Mirror.Of[T]] = Expr.summon(using Type.of[Mirror.Of[T]]).get
182+
val ev: Expr[Mirror.Of[T]] = Expr.summon[Mirror.Of[T]].get
183183

184184
ev match {
185185
case '{ $m: Mirror.ProductOf[T] { type MirroredElemTypes = elementTypes }} =>

0 commit comments

Comments
 (0)