Skip to content

Commit d701b12

Browse files
committed
Add missing semicolon from with_gil() calls
1 parent 63da099 commit d701b12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/npyffi/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl PyArrayAPI {
4545
Python::with_gil(|py| {
4646
let api = get_numpy_api(py, MOD_NAME, CAPSULE_NAME);
4747
self.api.set(api);
48-
})
48+
});
4949
}
5050
unsafe { self.api.get().offset(offset) }
5151
}

src/npyffi/ufunc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl PyUFuncAPI {
3232
Python::with_gil(|py| {
3333
let api = get_numpy_api(py, MOD_NAME, CAPSULE_NAME);
3434
self.api.set(api);
35-
})
35+
});
3636
}
3737
unsafe { self.api.get().offset(offset) }
3838
}

0 commit comments

Comments
 (0)