Skip to content
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

Allow clippy::pedantic for star import #3816

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions diesel_cli/src/print_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ impl<'a> Display for TableDefinition<'a> {
{
if already_imported_custom_types.insert(&ct.rust_name) {
if !has_written_import {
writeln!(out, "#[allow(clippy::pedantic)]")?;
writeln!(out, "use diesel::sql_types::*;")?;
}
writeln!(out, "use super::sql_types::{};", ct.rust_name)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub mod sql_types {
}

diesel::table! {
#[allow(clippy::pedantic)]
use diesel::sql_types::*;
use super::sql_types::MyType;
use super::sql_types::MyType2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub mod sql_types {
}

diesel::table! {
#[allow(clippy::pedantic)]
use diesel::sql_types::*;
use super::sql_types::MyType;
use super::sql_types::MyType2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub mod sql_types {
}

diesel::table! {
#[allow(clippy::pedantic)]
use diesel::sql_types::*;
use super::sql_types::MyType;
use super::sql_types::MyType2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub mod sql_types {
}

diesel::table! {
#[allow(clippy::pedantic)]
use diesel::sql_types::*;
use super::sql_types::MyType;
use super::sql_types::MyType2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub mod sql_types {
}

diesel::table! {
#[allow(clippy::pedantic)]
use diesel::sql_types::*;
use super::sql_types::MyType;
use super::sql_types::MyType2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub mod custom_schema {
}

diesel::table! {
#[allow(clippy::pedantic)]
use diesel::sql_types::*;
use super::sql_types::MyEnum;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub mod sql_types {
}

diesel::table! {
#[allow(clippy::pedantic)]
use diesel::sql_types::*;
use super::sql_types::UserJob;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub mod sql_types {
}

diesel::table! {
#[allow(clippy::pedantic)]
use diesel::sql_types::*;
use super::sql_types::Users1UserStateEnum;
use super::sql_types::Users1EnabledFeaturesSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub mod sql_types {
}

diesel::table! {
#[allow(clippy::pedantic)]
use diesel::sql_types::*;
use super::sql_types::SomeEnum;
use super::sql_types::SomeEnum2;
Expand Down
1 change: 1 addition & 0 deletions examples/postgres/custom_types/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub mod sql_types {
}

diesel::table! {
#[allow(clippy::pedantic)]
use diesel::sql_types::*;
use super::sql_types::Language;

Expand Down
Loading