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 {
137
137
self . init ( repeating: dummyPointer. move ( ) , count: scalarCount)
138
138
dummyPointer. deallocate ( )
139
139
withUnsafeMutableBufferPointer { buffPtr in
140
- buffPtr. baseAddress!. assign ( from: ptr, count: scalarCount)
140
+ buffPtr. baseAddress!. update ( from: ptr, count: scalarCount)
141
141
}
142
142
}
143
143
}
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ class PythonFunctionTests: XCTestCase {
204
204
205
205
// Example of function with no named parameters, which can be stated
206
206
// ergonomically using an underscore. The ignored input is a [PythonObject].
207
- let testFunction = PythonFunction { _ in
207
+ let _ = PythonFunction { _ in
208
208
throw HelloWorldException ( " EXAMPLE ERROR MESSAGE " , 2 )
209
209
} . pythonObject
210
210
You can’t perform that action at this time.
0 commit comments