Skip to content

Commit

Permalink
use implicit def rather than given for more proactive import :)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpollmeier committed Nov 2, 2023
1 parent 0e53a8c commit dc233bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/src/main/scala/io/joern/odb2/traversal/Language.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ object Language extends Language

trait Language {

given [A]: Conversion[IterableOnce[A], Iterator[A]] =
iterable => iterable.iterator
// given [A]: Conversion[IterableOnce[A], Iterator[A]] =
// iterable => iterable.iterator

implicit def iterableOnceToIterator[A](iterableOnce: IterableOnce[A]): Iterator[A] =
iterableOnce.iterator

extension [A](iterator: Iterator[A]) {

Expand Down

0 comments on commit dc233bd

Please sign in to comment.