tantivy: Disable a clippy warning about new not returning self.

The new() method using pyo3 does not return self, pyo3 handles some
python magic for us instead.

Disable the clippy warning about not returning self in new since it does
not apply to us.
master
Damir Jelić 2019-08-08 13:55:40 +02:00
parent 3f09fd38c8
commit de7e660313
4 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#![allow(clippy::new_ret_no_self)]
use pyo3::prelude::*; use pyo3::prelude::*;
use pyo3::types::PyDateTime; use pyo3::types::PyDateTime;
use pyo3::types::{PyDateAccess, PyTimeAccess}; use pyo3::types::{PyDateAccess, PyTimeAccess};

View File

@ -1,3 +1,5 @@
#![allow(clippy::new_ret_no_self)]
use pyo3::exceptions; use pyo3::exceptions;
use pyo3::prelude::*; use pyo3::prelude::*;

View File

@ -1,3 +1,5 @@
#![allow(clippy::new_ret_no_self)]
use pyo3::exceptions; use pyo3::exceptions;
use pyo3::prelude::*; use pyo3::prelude::*;

View File

@ -1,3 +1,5 @@
#![allow(clippy::new_ret_no_self)]
use pyo3::exceptions; use pyo3::exceptions;
use pyo3::prelude::*; use pyo3::prelude::*;