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() }