We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d478a91 commit 86104c2Copy full SHA for 86104c2
src/run_query_dsl/utils.rs
@@ -109,12 +109,10 @@ where
109
110
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
111
match Pin::new(&mut self.future).poll(cx) {
112
- Poll::Ready(Ok(results)) => {
113
- match results.into_iter().next() {
114
- Some(first) => Poll::Ready(Ok(first)),
115
- None => Poll::Ready(Err(diesel::result::Error::NotFound)),
116
- }
117
+ Poll::Ready(Ok(results)) => match results.into_iter().next() {
+ Some(first) => Poll::Ready(Ok(first)),
+ None => Poll::Ready(Err(diesel::result::Error::NotFound)),
+ },
118
Poll::Ready(Err(e)) => Poll::Ready(Err(e)),
119
Poll::Pending => Poll::Pending,
120
}
0 commit comments