Skip to content

Commit

Permalink
Scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Jan 5, 2025
1 parent 2a20c60 commit 16761e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/scala-3/com/typesafe/sbt/packager/PluginCompat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@ object PluginCompat {
conv.toPath(ref).toFile()
private[packager] def toArtifactPath(f: File)(using conv: FileConverter): ArtifactPath =
conv.toVirtualFile(f.toPath())
private[packager] def toNioPaths(cp: Seq[Attributed[HashedVirtualFileRef]])(using conv: FileConverter): Vector[NioPath] =
private[packager] def toNioPaths(cp: Seq[Attributed[HashedVirtualFileRef]])(using
conv: FileConverter
): Vector[NioPath] =
cp.map(toNioPath).toVector
private[packager] def toFiles(cp: Seq[Attributed[HashedVirtualFileRef]])(using conv: FileConverter): Vector[File] =
toNioPaths(cp).map(_.toFile())
private[packager] def toFileRefsMapping(mappings: Seq[(File, String)])(using conv: FileConverter): Seq[(FileRef, String)] =
private[packager] def toFileRefsMapping(mappings: Seq[(File, String)])(using
conv: FileConverter
): Seq[(FileRef, String)] =
mappings.map { case (f, name) => toFileRef(f) -> name }
private[packager] def toFileRef(x: File)(using conv: FileConverter): FileRef =
conv.toVirtualFile(x.toPath())
Expand Down

0 comments on commit 16761e6

Please sign in to comment.