Skip to content

Commit cc406a4

Browse files
author
Guido Marucci Blas
committed
Change NSString cast to avoid linux build failure.
1 parent eafa10b commit cc406a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/MimeTypes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ extension NSString {
136136

137137
extension String {
138138
public func mimeType() -> String {
139-
return (self as NSString).mimeType()
139+
return (NSString(string: self)).mimeType()
140140
}
141141
}
142142

0 commit comments

Comments
 (0)