mirror of
https://github.com/launchbadge/sqlx
synced 2024-09-20 22:31:56 +00:00
Run rustfmt
This commit is contained in:
parent
76431141e5
commit
0a7415f542
2 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue