From 0c2e9d2c637808f8aafdd51a0e170905548ff10c Mon Sep 17 00:00:00 2001 From: Alex Skorulis Date: Mon, 12 Aug 2024 14:28:26 +1000 Subject: [PATCH] Cleanup build warnings --- Package.swift | 3 ++- Sources/KnitCodeGen/KnitDirectives.swift | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index f3c04d4..1555949 100644 --- a/Package.swift +++ b/Package.swift @@ -25,7 +25,8 @@ let package = Package( dependencies: [ .product(name: "Swinject", package: "Swinject"), .product(name: "SwinjectAutoregistration", package: "SwinjectAutoregistration"), - ] + ], + exclude: ["ServiceCollection/Container+ServiceCollection.erb"] ), .executableTarget( name: "KnitCommand", diff --git a/Sources/KnitCodeGen/KnitDirectives.swift b/Sources/KnitCodeGen/KnitDirectives.swift index 222fd2a..db042fd 100644 --- a/Sources/KnitCodeGen/KnitDirectives.swift +++ b/Sources/KnitCodeGen/KnitDirectives.swift @@ -124,7 +124,7 @@ extension KnitDirectives { switch self { case let .unexpectedToken(token): return "Unexpected knit comment rule \(token)" - case let .duplicateSPI(name): + case .duplicateSPI: return "Duplicate @_spi annotations are not supported" } }