Avoid calling IntoIter on array in msrv

This commit is contained in:
mejrs 2021-10-03 02:09:53 +02:00
parent 31589f09e3
commit 22b9519f89
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ impl Dummy {
fn __delattr__(&mut self, name: ::std::string::String) {}
fn __dir__<'py>(&self, py: ::pyo3::Python<'py>) -> &'py ::pyo3::types::PyList {
::pyo3::types::PyList::new(py, [0; 0])
::pyo3::types::PyList::new(py, vec![0])
}
//////////////////////