Skip to content

Commit 0b2bc3f

Browse files
committed
Avoid unnecessary toString
1 parent 05b7fc1 commit 0b2bc3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ object Trees {
342342
val point = span.point
343343
if (rawMods.is(Synthetic) || name.toTermName == nme.ERROR) Span(point)
344344
else {
345-
val realName = name.stripModuleClassSuffix.lastPart.toString
345+
val realName = name.stripModuleClassSuffix.lastPart
346346
Span(point, point + realName.length, point)
347347
}
348348
}

0 commit comments

Comments
 (0)