We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c01efb commit 474e3d5Copy full SHA for 474e3d5
Sources/TelegrammerMultipart/Utilities.swift
@@ -63,7 +63,7 @@ extension CharacterSet {
63
64
extension DataProtocol {
65
func copyBytes() -> [UInt8] {
66
- var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: self.count)
+ let buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: self.count)
67
self.copyBytes(to: buffer)
68
defer { buffer.deallocate() }
69
return .init(buffer)
Tests/TelegrammerTests/JobQueueTests/JobQueueTests.swift
@@ -102,7 +102,7 @@ class JobQueueTests: XCTestCase {
102
103
var performed = false
104
105
- _ = queue.worker.next()
+ queue.worker.next()
106
.submit { () -> Void in
107
performed = true
108
}
0 commit comments