Skip to content

Commit d3646c7

Browse files
autofix-ci[bot]lefou
authored andcommitted
[autofix.ci] apply automated fixes
1 parent e1bc941 commit d3646c7

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

core/api/src/mill/api/MappedRoots.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,14 @@ trait MappedRoots {
5050
rootMapping.withValue(newMapping)(thunk)
5151
}
5252

53-
5453
def encodeKnownRootsInPath(p: os.Path): String = {
5554
MappedRoots.get.collectFirst {
5655
case rep if p.startsWith(rep.path) =>
5756
s"$$${rep.key}${
58-
if (p != rep.path) {
59-
s"/${p.subRelativeTo(rep.path).toString()}"
60-
} else ""
61-
}"
57+
if (p != rep.path) {
58+
s"/${p.subRelativeTo(rep.path).toString()}"
59+
} else ""
60+
}"
6261
}.getOrElse(p.toString)
6362
}
6463

libs/javalib/src/mill/javalib/TestModule.scala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ import mill.javalib.bsp.BspModule
99
import mill.util.Jvm
1010
import mill.api.JsonFormatters.given
1111
import mill.constants.EnvVars
12-
import mill.javalib.testrunner.{DiscoverTestsMain, Framework, TestArgs, TestResult, TestRunner, TestRunnerUtils}
12+
import mill.javalib.testrunner.{
13+
DiscoverTestsMain,
14+
Framework,
15+
TestArgs,
16+
TestResult,
17+
TestRunner,
18+
TestRunnerUtils
19+
}
1320

1421
import java.nio.file.Path
1522

runner/daemon/src/mill/daemon/MillBuildBootstrap.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
package mill.daemon
22

3-
import mill.api.daemon.internal.{BuildFileApi, CompileProblemReporter, EvaluatorApi, PathRefApi, RootModuleApi}
3+
import mill.api.daemon.internal.{
4+
BuildFileApi,
5+
CompileProblemReporter,
6+
EvaluatorApi,
7+
PathRefApi,
8+
RootModuleApi
9+
}
410
import mill.api.{BuildCtx, Logger, MappedRoots, PathRef, Result, SelectMode, SystemStreams, Val}
511
import mill.constants.CodeGenConstants.*
612
import mill.constants.OutFiles.{millBuild, millRunnerState}

runner/daemon/src/mill/daemon/MillDaemonMain.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package mill.daemon
22

3-
import mill.api.{MappedRoots, PathRef, SystemStreams}
3+
import mill.api.{MappedRoots, SystemStreams}
44
import mill.client.ClientUtil
55
import mill.client.lock.{Lock, Locks}
66
import mill.constants.OutFolderMode

0 commit comments

Comments
 (0)