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 e399c45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ object PluginCompat {
cp.map(_.data.toPath()).toVector
private[packager] def toFiles(cp: Seq[Attributed[File]])(implicit conv: FileConverter): Vector[File] =
cp.map(_.data).toVector
private[packager] def toFileRefsMapping(mappings: Seq[(File, String)])(implicit conv: FileConverter): Seq[(FileRef, String)] =
private[packager] def toFileRefsMapping(mappings: Seq[(File, String)])(implicit
conv: FileConverter
): Seq[(FileRef, String)] =
mappings
private[packager] def toFileRef(x: File)(implicit conv: FileConverter): FileRef =
x
Expand Down
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 e399c45

Please sign in to comment.