-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/fix clippy errors #2056
Changes from all commits
2bb46ed
0536427
26089f2
350fa86
9b80ac9
1620f33
86d6170
fc48065
ae017dc
b93c911
98b6f24
1b3cc3e
b04fdf8
6dc6748
8916c28
889d250
138b9dc
e4f4a12
09f845a
20dc881
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ use crate::{ | |
ColumnTrait, EntityTrait, IdenStatic, Iterable, QueryTrait, Select, SelectTwo, SelectTwoMany, | ||
}; | ||
use core::marker::PhantomData; | ||
#[allow(unused_imports)] | ||
pub use sea_query::JoinType; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can confirm this is already exported in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, it is not exported so I have reverted this change. e4f4a12 |
||
use sea_query::{Alias, ColumnRef, Iden, Order, SeaRc, SelectExpr, SelectStatement, SimpleExpr}; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ pub use combine::{SelectA, SelectB}; | |
pub use delete::*; | ||
pub use helper::*; | ||
pub use insert::*; | ||
pub use join::*; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The file contains only impl, so nothing to export There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In that case, do we need to keep |
||
#[cfg(feature = "with-json")] | ||
pub use json::*; | ||
pub use loader::*; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of removing this line, I think we should add
#[allow(clippy::unused_xxx)]
, because the content of the re-export depends on feature flagsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
138b9dc
I will add
#[allow(clippy::unused_xxx)]
later because I could not see clippy error in my local somehow...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added
#[allow(unused_imports)]
20dc881