Use 'crate::' to refer to pyo3
Fixes: #1811 Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
f72b2c8f09
commit
d74c3f6cd0
|
@ -30,6 +30,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||
[#1799](https://github.com/PyO3/pyo3/pull/1799)
|
||||
- Add missing `Py_DECREF` to `Python::run_code` and `PyModule::from_code` which fixes a memory leak when
|
||||
calling Python from Rust. [#1806](https://github.com/PyO3/pyo3/pull/1806), [#1810](https://github.com/PyO3/pyo3/pull/1810)
|
||||
- Use crate:: syntax to refer to current crate in pyo3::types::datetime
|
||||
[#1811](https://github.com/PyO3/pyo3/issues/1811)
|
||||
|
||||
## [0.14.2] - 2021-08-09
|
||||
|
||||
|
|
|
@ -465,8 +465,8 @@ mod tests {
|
|||
#[cfg(not(PyPy))]
|
||||
#[test]
|
||||
fn test_new_with_fold() {
|
||||
pyo3::Python::with_gil(|py| {
|
||||
use pyo3::types::{PyDateTime, PyTimeAccess};
|
||||
crate::Python::with_gil(|py| {
|
||||
use crate::types::{PyDateTime, PyTimeAccess};
|
||||
|
||||
let a = PyDateTime::new_with_fold(py, 2021, 1, 23, 20, 32, 40, 341516, None, false);
|
||||
let b = PyDateTime::new_with_fold(py, 2021, 1, 23, 20, 32, 40, 341516, None, true);
|
||||
|
|
Loading…
Reference in New Issue