Skip to content

Commit f9e8d54

Browse files
author
Dean Wampler
committed
Removed an unnecessary use of targetName
1 parent c972397 commit f9e8d54

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/scala/progscala3/dsls/payroll/Money.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// src/main/scala/progscala3/dsls/payroll/Money.scala
22
package progscala3.dsls.payroll
33
import progscala3.contexts.accounting.* // <1>
4-
import scala.annotation.targetName
5-
64
import scala.util.FromDigits.Floating // <2>
75

86
given Floating[Dollars] with // <3>
@@ -12,7 +10,7 @@ given Floating[Percentage] with
1210
def fromDigits(digits: String): Percentage = Percentage(digits.toDouble)
1311

1412
implicit class dsc(sc: StringContext): // <4>
15-
@targetName("dollars") def $(tokens: Any*) =
13+
def $(tokens: Any*) =
1614
val str = StringContextUtil.foldTokens(tokens.toSeq, sc.parts)
1715
Dollars(str.toDouble)
1816

0 commit comments

Comments
 (0)