Skip to content

Commit 0c48adb

Browse files
Merge pull request #316 from guidomb/linux
Change NSString cast to avoid linux build failure.
2 parents eafa10b + cc406a4 commit 0c48adb

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)