From e35c93d8be2d3704b2f541c1e7fdfc4205817fdb Mon Sep 17 00:00:00 2001 From: Rongcui Dong Date: Wed, 20 Jul 2022 22:54:18 -0400 Subject: [PATCH] cargo fmt --- sqlx-core/src/sqlite/connection/explain.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sqlx-core/src/sqlite/connection/explain.rs b/sqlx-core/src/sqlite/connection/explain.rs index 6831875985..419b52f6d7 100644 --- a/sqlx-core/src/sqlite/connection/explain.rs +++ b/sqlx-core/src/sqlite/connection/explain.rs @@ -607,7 +607,12 @@ pub(super) fn explain( //assume that AGG_FINAL will be called let p4 = from_utf8(p4).map_err(Error::protocol)?; - if p4.starts_with("count(") || p4.starts_with("row_number(") || p4.starts_with("rank(") || p4.starts_with("dense_rank(") || p4.starts_with("ntile("){ + if p4.starts_with("count(") + || p4.starts_with("row_number(") + || p4.starts_with("rank(") + || p4.starts_with("dense_rank(") + || p4.starts_with("ntile(") + { // count(_) -> INTEGER state.r.insert( p3, @@ -625,7 +630,12 @@ pub(super) fn explain( OP_AGG_FINAL => { let p4 = from_utf8(p4).map_err(Error::protocol)?; - if p4.starts_with("count(") || p4.starts_with("row_number(") || p4.starts_with("rank(") || p4.starts_with("dense_rank(") || p4.starts_with("ntile(") { + if p4.starts_with("count(") + || p4.starts_with("row_number(") + || p4.starts_with("rank(") + || p4.starts_with("dense_rank(") + || p4.starts_with("ntile(") + { // count(_) -> INTEGER state.r.insert( p1,