Skip to content

Commit 989b4cf

Browse files
committed
Fix warnings.
1 parent a0ea9dd commit 989b4cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PythonKit/NumpyConversion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ where Element : NumpyScalarCompatible {
137137
self.init(repeating: dummyPointer.move(), count: scalarCount)
138138
dummyPointer.deallocate()
139139
withUnsafeMutableBufferPointer { buffPtr in
140-
buffPtr.baseAddress!.assign(from: ptr, count: scalarCount)
140+
buffPtr.baseAddress!.update(from: ptr, count: scalarCount)
141141
}
142142
}
143143
}

Tests/PythonKitTests/PythonFunctionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class PythonFunctionTests: XCTestCase {
204204

205205
// Example of function with no named parameters, which can be stated
206206
// ergonomically using an underscore. The ignored input is a [PythonObject].
207-
let testFunction = PythonFunction { _ in
207+
let _ = PythonFunction { _ in
208208
throw HelloWorldException("EXAMPLE ERROR MESSAGE", 2)
209209
}.pythonObject
210210

0 commit comments

Comments
 (0)