Skip to content

Commit

Permalink
Specify type parameter for Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Nov 23, 2023
1 parent 8e9f6f5 commit 3ea731b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/timezone.scala
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ object Tzdb:
case After(month: MonthName, day: Weekday, date: Int)
case Before(month: MonthName, day: Weekday, date: Int)

def parseFile(name: Text)(using Log, Raises[TzdbError]): List[Tzdb.Entry] =
def parseFile(name: Text)(using Log[Text], Raises[TzdbError]): List[Tzdb.Entry] =
val lines: LazyList[Text] =
val stream = safely(getClass.getResourceAsStream(s"/aviation/tzdb/$name").nn).or:
abort(TzdbError(TzdbError.Reason.ZoneFileMissing(name), 0))
Expand All @@ -82,7 +82,7 @@ object Tzdb:

parse(name, lines)

def parse(name: Text, lines: LazyList[Text])(using Log, Raises[TzdbError]): List[Tzdb.Entry] =
def parse(name: Text, lines: LazyList[Text])(using Log[Text], Raises[TzdbError]): List[Tzdb.Entry] =

def parseDuration(lineNo: Int, str: Text) = str.cut(t":").to(List) match
case As[Int](h) :: Nil => Duration(h, 0, 0)
Expand Down

0 comments on commit 3ea731b

Please sign in to comment.