Skip to content

Commit a2e21be

Browse files
committed
Use typedefs from diesel::dsl for join methods on QueryDsl
1 parent 03f7909 commit a2e21be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

diesel/src/query_dsl/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ pub trait QueryDsl: Sized {
416416
/// assert_eq!(Ok(expected_data), data);
417417
/// # }
418418
/// ```
419-
fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Output
419+
fn inner_join<Rhs>(self, rhs: Rhs) -> InnerJoin<Self, Rhs>
420420
where
421421
Self: JoinWithImplicitOnClause<Rhs, joins::Inner>,
422422
{
@@ -429,7 +429,7 @@ pub trait QueryDsl: Sized {
429429
/// instead. See [`inner_join`] for usage examples.
430430
///
431431
/// [`inner_join`]: #method.inner_join
432-
fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Output
432+
fn left_outer_join<Rhs>(self, rhs: Rhs) -> LeftJoin<Self, Rhs>
433433
where
434434
Self: JoinWithImplicitOnClause<Rhs, joins::LeftOuter>,
435435
{
@@ -439,7 +439,7 @@ pub trait QueryDsl: Sized {
439439
/// Alias for [`left_outer_join`].
440440
///
441441
/// [`left_outer_join`]: #method.left_outer_join
442-
fn left_join<Rhs>(self, rhs: Rhs) -> Self::Output
442+
fn left_join<Rhs>(self, rhs: Rhs) -> LeftJoin<Self, Rhs>
443443
where
444444
Self: JoinWithImplicitOnClause<Rhs, joins::LeftOuter>,
445445
{

0 commit comments

Comments
 (0)