Skip to content

Commit

Permalink
refactor(sea-query): Fix clippy warnings on Rust 1.75
Browse files Browse the repository at this point in the history
  • Loading branch information
siketyan committed Dec 29, 2023
1 parent 99c0747 commit 3590ee6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/extension/postgres/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pub use expr::*;
pub use extension::*;
pub use func::*;
#[allow(unused_imports)]
pub use interval::*;
pub use ltree::*;
pub use types::*;
Expand Down
2 changes: 1 addition & 1 deletion src/query/with.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl CommonTableExpression {
pub fn from_select(select: SelectStatement) -> Self {
let mut cte = Self::default();
cte.try_set_cols_from_selects(&select.selects);
if let Some(from) = select.from.get(0) {
if let Some(from) = select.from.first() {
match from {
TableRef::Table(iden) => cte.set_table_name_from_select(iden),
TableRef::SchemaTable(_, iden) => cte.set_table_name_from_select(iden),
Expand Down
4 changes: 2 additions & 2 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,11 @@ impl Quote {
}

pub fn left(&self) -> char {
char::try_from(self.0).unwrap()
char::from(self.0)
}

pub fn right(&self) -> char {
char::try_from(self.1).unwrap()
char::from(self.1)
}
}

Expand Down

0 comments on commit 3590ee6

Please sign in to comment.