Skip to content

Commit

Permalink
Remove unused NoCombinationClause type
Browse files Browse the repository at this point in the history
New compiler warnings seem to highlight that this wasn't used
  • Loading branch information
Ten0 committed Jul 25, 2024
1 parent 5444b38 commit c7ab84f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions diesel/src/query_builder/combination_clause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ use crate::query_builder::insert_statement::InsertFromSelect;
use crate::query_builder::{AsQuery, AstPass, Query, QueryFragment, QueryId, SelectQuery};
use crate::{CombineDsl, Insertable, QueryResult, RunQueryDsl, Table};

#[derive(Debug, Clone, Copy, QueryId)]
pub(crate) struct NoCombinationClause;

impl<DB> QueryFragment<DB> for NoCombinationClause
where
DB: Backend + DieselReserveSpecialization,
{
fn walk_ast<'b>(&'b self, _: AstPass<'_, 'b, DB>) -> QueryResult<()> {
Ok(())
}
}

#[derive(Debug, Copy, Clone, QueryId)]
#[must_use = "Queries are only executed when calling `load`, `get_result` or similar."]
/// Combine queries using a combinator like `UNION`, `INTERSECT` or `EXPECT`
Expand Down

0 comments on commit c7ab84f

Please sign in to comment.