mirror of
https://github.com/apple/swift-http-structured-headers
synced 2026-11-30 05:18:47 +00:00
Drop Swift 5.10 (#71)
### Motivation: Swift 5.10 is no longer supported, we should bump the swift-tools version. ### Modifications: * Update Swift tools version to 6.0 ### Result: Code reflects our support window.
This commit is contained in:
1 parent
b8731d8e0b
commit
a9f3c352f4
2 files changed
+24
-12
No files matched your search
@@ -560,7 +560,7 @@ extension StructuredFieldValueParser {
|
||||
let unicodeSequence = byteArray.withUnsafeBytes {
|
||||
$0.withMemoryRebound(to: CChar.self) {
|
||||
// This force-unwrap is safe, as the buffer must successfully bind to CChar.
|
||||
String(validatingUTF8: $0.baseAddress!)
|
||||
String(validatingCString: $0.baseAddress!)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user