File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments