Skip to content

Commit

Permalink
Fix scala3
Browse files Browse the repository at this point in the history
  • Loading branch information
afsalthaj committed Mar 8, 2023
1 parent fd62629 commit 5519412
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -23,13 +23,13 @@ final case class DeriveConfig[A](desc: Config[A], metadata: Option[DeriveConfig.
def describe(description: String): DeriveConfig[A] =
DeriveConfig(desc.??(description))

def map[B](f: T => B): DeriveConfig[B] =
def map[B](f: A => B): DeriveConfig[B] =
DeriveConfig(desc.map(f))

def mapAttempt[B](f: T => B): DeriveConfig[B] =
def mapAttempt[B](f: A => B): DeriveConfig[B] =
DeriveConfig(desc.mapAttempt(f))

def mapOrFail[B](f: T => Either[Config.Error, B]): DeriveConfig[B] =
def mapOrFail[B](f: A => Either[Config.Error, B]): DeriveConfig[B] =
DeriveConfig(desc.mapOrFail(f))
}

Expand Down

0 comments on commit 5519412

Please sign in to comment.