Skip to content

Commit b04e408

Browse files
committed
fixup! RunQueryDsl: match same trait constraints as diesel
1 parent 0993897 commit b04e408

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/run_query_dsl/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub mod methods {
6666
/// to call `load` from generic code.
6767
///
6868
/// [`RunQueryDsl`]: super::RunQueryDsl
69-
pub trait LoadQuery<'query, Conn: AsyncConnection, U> : RunQueryDsl<Conn> {
69+
pub trait LoadQuery<'query, Conn: AsyncConnection, U>: RunQueryDsl<Conn> {
7070
/// The future returned by [`LoadQuery::internal_load`]
7171
type LoadFuture<'conn>: Future<Output = QueryResult<Self::Stream<'conn>>> + Send
7272
where
@@ -641,9 +641,9 @@ pub trait RunQueryDsl<Conn>: Sized {
641641
}
642642
}
643643

644-
// Note: Match the same types that diesel::RunQueryDsl applies to this
644+
// Note: Match the same types that diesel::RunQueryDsl applies to this
645645
// seems safe currently, as the trait imposes no restrictions based on Conn, only on T.
646-
impl <T,Conn> RunQueryDsl<Conn> for T where T: diesel::RunQueryDsl<Conn> {}
646+
impl<T, Conn> RunQueryDsl<Conn> for T where T: diesel::RunQueryDsl<Conn> {}
647647

648648
/// Sugar for types which implement both `AsChangeset` and `Identifiable`
649649
///

0 commit comments

Comments
 (0)