Skip to content

Commit

Permalink
[fix] Update deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Jul 9, 2021
1 parent 633d11e commit 89dc0c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ object Configuration {
* Creates a Configuration built from a custom builder
* @param builder Builder => Unit
*/
def apply(builder: Builder): Configuration = builder.build
def apply(builder: Builder): Configuration = builder.build()

/** Configuration builder */
class Builder {
Expand Down Expand Up @@ -232,7 +232,7 @@ object Configuration {
}

/** Ordered deferred setter */
private def set[A](i: Int, e: ArrayBuffer[ConfigElem[A]])(f: A => Unit) {
private def set[A](i: Int, e: ArrayBuffer[ConfigElem[A]])(f: A => Unit): Unit = {
e += new ConfigElem[A] {
val index = i
def set(c: A) = f(c)
Expand Down

0 comments on commit 89dc0c8

Please sign in to comment.