Skip to content

Commit 842f95d

Browse files
dingobyeaciidgh
authored andcommitted
Fix redundant access-level modifiers to make swiftpm
adapted to swiftlang/swift#18623.
1 parent 858f6b0 commit 842f95d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Sources/Basic/CollectionAlgorithms.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extension BidirectionalCollection where Iterator.Element : Comparable {
2929
}
3030
}
3131

32-
public extension Sequence where Iterator.Element: Hashable {
32+
extension Sequence where Iterator.Element: Hashable {
3333

3434
/// Finds duplicates in given sequence of Hashables.
3535
/// - Returns: duplicated elements in the invoking sequence.

Sources/Basic/StringConversions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private func inShellWhitelist(_ codeUnit: UInt8) -> Bool {
3535
}
3636
}
3737

38-
public extension String {
38+
extension String {
3939

4040
/// Creates a shell escaped string. If the string does not need escaping, returns the original string.
4141
/// Otherwise escapes using single quotes. For example:

Sources/Commands/Destination.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public struct Destination {
160160
#endif
161161
}
162162

163-
public extension Destination {
163+
extension Destination {
164164

165165
/// Load a Destination description from a JSON representation from disk.
166166
public init(fromFile path: AbsolutePath, fileSystem: FileSystem = localFileSystem) throws {

Sources/Workspace/ToolsVersionWriter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public func writeToolsVersion(at path: AbsolutePath, version: ToolsVersion, fs:
3939
try fs.writeFileContents(file, bytes: stream.bytes)
4040
}
4141

42-
public extension ToolsVersion {
42+
extension ToolsVersion {
4343

4444
/// Returns the tools version with zeroed patch number.
4545
public var zeroedPatch: ToolsVersion {

0 commit comments

Comments
 (0)