Skip to content

Commit 97f5791

Browse files
committed
Remove retroactive FilePath conformance
1 parent e2dd0a7 commit 97f5791

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

Sources/wasmkit-gdb-tool/Entrypoint.swift

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,6 @@ import NIOPosix
2020
import SystemPackage
2121
import WasmKitGDBHandler
2222

23-
#if hasFeature(RetroactiveAttribute)
24-
extension Logger.Level: @retroactive ExpressibleByArgument {}
25-
extension FilePath: @retroactive ExpressibleByArgument {
26-
public init?(argument: String) {
27-
self.init(argument)
28-
}
29-
}
30-
#else
31-
extension Logger.Level: ExpressibleByArgument {}
32-
extension FilePath: ExpressibleByArgument {
33-
public init?(argument: String) {
34-
self.init(argument)
35-
}
36-
}
37-
#endif
38-
3923
@main
4024
struct Entrypoint: AsyncParsableCommand {
4125
@Option(help: "TCP port that a debugger can connect to")
@@ -52,7 +36,7 @@ struct Entrypoint: AsyncParsableCommand {
5236
)
5337
var logLevel = Logger.Level.info
5438

55-
@Argument
39+
@Argument(transform: { FilePath($0) })
5640
var wasmModulePath: FilePath
5741

5842
func run() async throws {

0 commit comments

Comments
 (0)