Skip to content

Commit

Permalink
fix: run scalafix now that the explicit types rule is working
Browse files Browse the repository at this point in the history
  • Loading branch information
ckipp01 committed Jan 9, 2024
1 parent 1b23e6b commit dd992dd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion plugin/src-mill0.10/io/kipp/mill/ci/release/Eval.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import mill.eval.Evaluator

private[release] object Eval {

def evalOrThrow(ev: Evaluator) = Evaluator.evalOrThrow(ev)
def evalOrThrow(ev: Evaluator): Evaluator.EvalOrThrow =
Evaluator.evalOrThrow(ev)

}
2 changes: 1 addition & 1 deletion plugin/src-mill0.11/io/kipp/mill/ci/release/Eval.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import mill.eval.Evaluator

private[release] object Eval {

def evalOrThrow(ev: Evaluator) = ev.evalOrThrow()
def evalOrThrow(ev: Evaluator): Evaluator.EvalOrThrow = ev.evalOrThrow()

}
3 changes: 2 additions & 1 deletion plugin/src/io/kipp/mill/ci/release/CiReleaseModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.kipp.mill.ci.release
import de.tobiasroeser.mill.vcs.version.VcsVersion
import mill._
import mill.api.Result
import mill.define.Command
import mill.define.ExternalModule
import mill.define.Task
import mill.eval.Evaluator
Expand Down Expand Up @@ -58,7 +59,7 @@ object ReleaseModule extends ExternalModule {
* pass in anything. It also sets up your gpg stuff and grabs the necessary
* env variables to publish to sonatype for you.
*/
def publishAll(ev: Evaluator) = T.command {
def publishAll(ev: Evaluator): Command[Unit] = T.command {
val log = T.log
setupGpg()()
val env = envTask()
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/io/kipp/mill/ci/release/Env.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private[release] final case class Env(

/** Sonatype creds in the format that Mill uses
*/
val sonatypeCreds = s"${sonatypeUser}:${sonatypePassword}"
val sonatypeCreds: String = s"${sonatypeUser}:${sonatypePassword}"
}

object Env {
Expand Down

0 comments on commit dd992dd

Please sign in to comment.