Commit 882d047
authored
Fix experimental access to extern crates
I can't compile the current code because of the following error:
```
error[E0658]: access to extern crates through prelude is experimental (see issue #44660)
--> rust-numpy/src/array.rs:183:59
|
183 | pub unsafe fn from_borrowed_ptr(py: Python, ptr: *mut pyo3::ffi::PyObject) -> &Self {
| ^^^^
|
= help: add #![feature(extern_prelude)] to the crate attributes to enable
```
Using ffi instead of pyo3::ffi is enough for fixing that.
(question: how does it works on Travis?)1 parent f603610 commit 882d047
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
0 commit comments