Skip to content

Commit 86104c2

Browse files
committed
Run cargo fmt to fix styling
1 parent d478a91 commit 86104c2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/run_query_dsl/utils.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,10 @@ where
109109

110110
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
111111
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-
}
112+
Poll::Ready(Ok(results)) => match results.into_iter().next() {
113+
Some(first) => Poll::Ready(Ok(first)),
114+
None => Poll::Ready(Err(diesel::result::Error::NotFound)),
115+
},
118116
Poll::Ready(Err(e)) => Poll::Ready(Err(e)),
119117
Poll::Pending => Poll::Pending,
120118
}

0 commit comments

Comments
 (0)