Run rustfmt

This commit is contained in:
Ryan Leckey 2020-03-11 03:34:51 -07:00
parent 76431141e5
commit 0a7415f542
2 changed files with 8 additions and 8 deletions

View file

@ -94,7 +94,7 @@ where
pub fn map<F, O>(self, mapper: F) -> Map<'q, DB, impl TryMapRow<DB, Output = O>>
where
O: Unpin,
F: MapRow<DB, Output = O>
F: MapRow<DB, Output = O>,
{
self.try_map(MapRowAdapter(mapper))
}
@ -224,9 +224,9 @@ pub trait MapRow<DB: Database> {
struct MapRowAdapter<F>(F);
impl<DB: Database, O, F> TryMapRow<DB> for MapRowAdapter<F>
where
O: Unpin,
F: MapRow<DB, Output = O>,
where
O: Unpin,
F: MapRow<DB, Output = O>,
{
type Output = O;

View file

@ -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<Self::Database>,
I: ColumnIndex<Self::Database>,
T: Decode<'c, Self::Database>,
where
T: Type<Self::Database>,
I: ColumnIndex<Self::Database>,
T: Decode<'c, Self::Database>,
{
self.try_get::<T, I>(index).unwrap()
}