Fix clippy warnings

This commit is contained in:
Martin Algesten
2021-03-24 20:05:51 +01:00
parent ea53c7cedd
commit b42e9afd71
6 changed files with 26 additions and 27 deletions

View File

@@ -288,6 +288,8 @@ pub enum ErrorKind {
}
impl ErrorKind {
#[allow(clippy::wrong_self_convention)]
#[allow(clippy::new_ret_no_self)]
pub(crate) fn new(self) -> Error {
Error::new(self, None)
}