From 0a03f062c9a822b1fec70461cd72f904a4eea1df Mon Sep 17 00:00:00 2001 From: carolinacass <67160898+carolinacass@users.noreply.github.com> Date: Thu, 3 Nov 2022 11:57:57 +0000 Subject: [PATCH] Use #fileID/#filePath instead of #file (#28) Motivation: #fileID introduced in Swift 5.3, so no longer need to use #file anywhere Modifications: Changed #file to #filePath or #fileID depending on the situation --- Tests/StructuredFieldValuesTests/Fixtures.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/StructuredFieldValuesTests/Fixtures.swift b/Tests/StructuredFieldValuesTests/Fixtures.swift index aed1ff8..864c308 100644 --- a/Tests/StructuredFieldValuesTests/Fixtures.swift +++ b/Tests/StructuredFieldValuesTests/Fixtures.swift @@ -15,7 +15,7 @@ import Foundation enum FixturesLoader { private static var fixturesDirectory: URL { - let myURL = URL(fileURLWithPath: #file, isDirectory: false) + let myURL = URL(fileURLWithPath: #filePath, isDirectory: false) return URL(string: "../TestFixtures/", relativeTo: myURL)!.absoluteURL }