From e9f8554f4d04ec95f509c01d45fa8a6a2625df2d Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Wed, 15 Mar 2023 22:29:30 +0000 Subject: [PATCH] PkgConfigTests: use `some FileSystem` instead of existentials This is a small optimization that avoids the use of boxing for existentials. --- Tests/PackageLoadingTests/PkgConfigTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/PackageLoadingTests/PkgConfigTests.swift b/Tests/PackageLoadingTests/PkgConfigTests.swift index a3e369c1a9d..270702a81c8 100644 --- a/Tests/PackageLoadingTests/PkgConfigTests.swift +++ b/Tests/PackageLoadingTests/PkgConfigTests.swift @@ -30,7 +30,7 @@ extension SystemLibraryTarget { class PkgConfigTests: XCTestCase { let inputsDir = AbsolutePath(path: #file).parentDirectory.appending(components: "Inputs") let observability = ObservabilitySystem.makeForTesting() - let fs = localFileSystem + let fs: some FileSystem = localFileSystem func testBasics() throws { // No pkgConfig name.