fix clippy warnings

This commit is contained in:
appflowy
2021-11-27 19:19:41 +08:00
parent 8d9cde17a9
commit 3abd5b953e
124 changed files with 480 additions and 531 deletions

View File

@ -28,9 +28,7 @@ where
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = self.as_mut().project();
loop {
return Poll::Ready(ready!(this.fut.poll(cx)));
}
Poll::Ready(ready!(this.fut.poll(cx)))
}
}
@ -60,9 +58,7 @@ where
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = self.as_mut().project();
loop {
let result = ready!(this.fut.poll(cx));
return Poll::Ready(result);
}
let result = ready!(this.fut.poll(cx));
Poll::Ready(result)
}
}

View File

@ -1,3 +1,5 @@
#![allow(clippy::module_inception)]
mod kv;
mod schema;

View File

@ -1,3 +1,5 @@
#![allow(clippy::large_enum_variant)]
#![allow(clippy::type_complexity)]
use crate::retry::FixedInterval;
use pin_project::pin_project;
use std::{