From 7de5487926c5251eec42edc8d2f5ba372ed55a2a Mon Sep 17 00:00:00 2001 From: Jakub Wojnowski <29680262+jwojnowski@users.noreply.github.com> Date: Tue, 2 Apr 2024 01:57:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Change=20de?= =?UTF-8?q?fault=20`toString`=20to=20`renderWithPrefix`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/main/scala/me/wojnowski/humanoid/HumanId.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/me/wojnowski/humanoid/HumanId.scala b/core/src/main/scala/me/wojnowski/humanoid/HumanId.scala index 884318c..13ce759 100644 --- a/core/src/main/scala/me/wojnowski/humanoid/HumanId.scala +++ b/core/src/main/scala/me/wojnowski/humanoid/HumanId.scala @@ -29,7 +29,7 @@ final case class HumanId[P <: String, Id](id: Id)(implicit valueOfPrefix: ValueO def renderNoPrefix: String = IdConverter[Id].renderString(id) - override def toString: String = s"${HumanId.productPrefix}[\"${valueOfPrefix.value}\"]($renderNoPrefix)" + override def toString: String = renderWithPrefix } case object HumanId {