Skip to content

Commit d2f7f7c

Browse files
authored
Basics: make supportedExtensions in UniversalArchiver constant (#6388)
This was marked as a mutable property by mistake when implementing `Archiver` protocol conformance. This property is assigned an initial value in `UniversalArchiver/init` and isn't supposed to be ever changed for a given archiver.
1 parent 084d46f commit d2f7f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Basics/Archiver/UniversalArchiver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import protocol TSCBasic.FileSystem
1616
/// An `Archiver` that handles multiple formats by delegating to other existing archivers each dedicated to its own
1717
/// format.
1818
public struct UniversalArchiver: Archiver {
19-
public var supportedExtensions: Set<String>
19+
public let supportedExtensions: Set<String>
2020

2121
/// Errors specific to the implementation of ``UniversalArchiver``.
2222
enum Error: Swift.Error {

0 commit comments

Comments
 (0)