From 22649f36a2b54164b4598a0efe24cfb3aaecd95e Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Fri, 6 Aug 2021 10:51:34 +0800 Subject: [PATCH] cargo fmt --- src/executor/paginator.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/executor/paginator.rs b/src/executor/paginator.rs index 7a7eadb3..d44bbc5e 100644 --- a/src/executor/paginator.rs +++ b/src/executor/paginator.rs @@ -65,8 +65,10 @@ where }; let num_items = match self.db { #[cfg(feature = "sqlx-postgres")] - DatabaseConnection::SqlxPostgresPoolConnection(_) => result.try_get::("", "num_items")? as usize, - _ => result.try_get::("", "num_items")? as usize + DatabaseConnection::SqlxPostgresPoolConnection(_) => { + result.try_get::("", "num_items")? as usize + } + _ => result.try_get::("", "num_items")? as usize, }; Ok(num_items) }