Skip to content

Commit 9fe605c

Browse files
committed
chore: cargo fmt
1 parent c9730f6 commit 9fe605c

File tree

4 files changed

+29
-15
lines changed

4 files changed

+29
-15
lines changed

src/async_connection_wrapper.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,15 @@ mod implementation {
194194
C: crate::AsyncConnection,
195195
B: BlockOn + Send,
196196
{
197-
type Cursor<'conn, 'query> = AsyncCursorWrapper<'conn, C::Stream<'conn, 'query>, B>
198-
where
199-
Self: 'conn;
197+
type Cursor<'conn, 'query>
198+
= AsyncCursorWrapper<'conn, C::Stream<'conn, 'query>, B>
199+
where
200+
Self: 'conn;
200201

201-
type Row<'conn, 'query> = C::Row<'conn, 'query>
202-
where
203-
Self: 'conn;
202+
type Row<'conn, 'query>
203+
= C::Row<'conn, 'query>
204+
where
205+
Self: 'conn;
204206

205207
fn load<'conn, 'query, T>(
206208
&'conn mut self,

src/mysql/row.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ impl RowSealed for MysqlRow {}
3737

3838
impl<'a> diesel::row::Row<'a, Mysql> for MysqlRow {
3939
type InnerPartialRow = Self;
40-
type Field<'b> = MysqlField<'b> where Self: 'b, 'a: 'b;
40+
type Field<'b>
41+
= MysqlField<'b>
42+
where
43+
Self: 'b,
44+
'a: 'b;
4145

4246
fn field_count(&self) -> usize {
4347
self.0.columns_ref().len()

src/pg/row.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ impl RowSealed for PgRow {}
1616

1717
impl<'a> diesel::row::Row<'a, diesel::pg::Pg> for PgRow {
1818
type InnerPartialRow = Self;
19-
type Field<'b> = PgField<'b> where Self: 'b, 'a: 'b;
19+
type Field<'b>
20+
= PgField<'b>
21+
where
22+
Self: 'b,
23+
'a: 'b;
2024

2125
fn field_count(&self) -> usize {
2226
self.row.len()

src/run_query_dsl/mod.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,21 @@ pub mod methods {
9292
DB: QueryMetadata<T::SqlType>,
9393
ST: 'static,
9494
{
95-
type LoadFuture<'conn> = future::MapOk<
95+
type LoadFuture<'conn>
96+
= future::MapOk<
9697
Conn::LoadFuture<'conn, 'query>,
9798
fn(Conn::Stream<'conn, 'query>) -> Self::Stream<'conn>,
98-
> where Conn: 'conn;
99+
>
100+
where
101+
Conn: 'conn;
99102

100-
type Stream<'conn> = stream::Map<
103+
type Stream<'conn>
104+
= stream::Map<
101105
Conn::Stream<'conn, 'query>,
102-
fn(
103-
QueryResult<Conn::Row<'conn, 'query>>,
104-
) -> QueryResult<U>,
105-
>where Conn: 'conn;
106+
fn(QueryResult<Conn::Row<'conn, 'query>>) -> QueryResult<U>,
107+
>
108+
where
109+
Conn: 'conn;
106110

107111
fn internal_load(self, conn: &mut Conn) -> Self::LoadFuture<'_> {
108112
conn.load(self)

0 commit comments

Comments
 (0)