Skip to content

Commit 5c89afd

Browse files
committed
plugin, containertool: Remove unnecessarily broad Foundation imports
1 parent 89f49be commit 5c89afd

File tree

6 files changed

+4
-6
lines changed

6 files changed

+4
-6
lines changed

Plugins/ContainerImageBuilder/Pipe+lines.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Foundation
15+
import class Foundation.Pipe
1616

1717
extension Pipe {
1818
var lines: AsyncThrowingStream<String, Error> {

Sources/Tar/tar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Foundation
15+
import struct Foundation.Data
1616

1717
// This file defines a basic tar writer which produces POSIX tar files.
1818
// This avoids the need to depend on a system-provided tar binary.

Sources/containertool/Extensions/RegistryClient+Layers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Foundation
15+
import struct Foundation.Data
1616
import ContainerRegistry
1717

1818
extension RegistryClient {

Tests/ContainerRegistryTests/SmokeTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Foundation
15+
import class Foundation.ProcessInfo
1616
import ContainerRegistry
1717
import Testing
1818

Tests/TarTests/TarUnitTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Foundation
1615
import Testing
1716

1817
@testable import Tar

Tests/containertoolTests/ZlibTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
@testable import containertool
1616
import Crypto
17-
import Foundation
1817
import Testing
1918

2019
// Check that compressing the same data on macOS and Linux produces the same output.

0 commit comments

Comments
 (0)