From 0a7415f542bad775e3d713bbef941b99c37cc1b5 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Wed, 11 Mar 2020 03:34:51 -0700 Subject: [PATCH] Run rustfmt --- sqlx-core/src/query.rs | 8 ++++---- sqlx-core/src/row.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sqlx-core/src/query.rs b/sqlx-core/src/query.rs index 42bc3ad4..788eb539 100644 --- a/sqlx-core/src/query.rs +++ b/sqlx-core/src/query.rs @@ -94,7 +94,7 @@ where pub fn map(self, mapper: F) -> Map<'q, DB, impl TryMapRow> where O: Unpin, - F: MapRow + F: MapRow, { self.try_map(MapRowAdapter(mapper)) } @@ -224,9 +224,9 @@ pub trait MapRow { struct MapRowAdapter(F); impl TryMapRow for MapRowAdapter - where - O: Unpin, - F: MapRow, +where + O: Unpin, + F: MapRow, { type Output = O; diff --git a/sqlx-core/src/row.rs b/sqlx-core/src/row.rs index 93625ac3..651d2711 100644 --- a/sqlx-core/src/row.rs +++ b/sqlx-core/src/row.rs @@ -25,10 +25,10 @@ pub trait Row<'c>: Unpin + Send { fn len(&self) -> usize; fn get<'r, T, I>(&'r self, index: I) -> T - where - T: Type, - I: ColumnIndex, - T: Decode<'c, Self::Database>, + where + T: Type, + I: ColumnIndex, + T: Decode<'c, Self::Database>, { self.try_get::(index).unwrap() }