From: Nutomic Date: Mon, 26 Jun 2023 09:18:29 +0000 (+0200) Subject: Allow wildcard imports in schema.rs (#3293) X-Git-Url: http://these/git/%22https:/image.com/readmes/%7B%60%24%7BarchiveUrl%7D/static/%24%7Bargs.pageFn.jump%20n%7D?a=commitdiff_plain;h=ddfa112e0b48d8facdefb1f09fb5f1db6c2c6677;p=lemmy.git Allow wildcard imports in schema.rs (#3293) Dont mess with auto-generated code, this avoids problems with clippy after running diesel commands --- diff --git a/crates/db_schema/src/lib.rs b/crates/db_schema/src/lib.rs index 4ab26981..04ec4e7d 100644 --- a/crates/db_schema/src/lib.rs +++ b/crates/db_schema/src/lib.rs @@ -26,6 +26,7 @@ pub mod impls; pub mod newtypes; #[cfg(feature = "full")] #[rustfmt::skip] +#[allow(clippy::wildcard_imports)] pub mod schema; pub mod source; #[cfg(feature = "full")] diff --git a/crates/db_schema/src/schema.rs b/crates/db_schema/src/schema.rs index aef6fbe5..abd3ca22 100644 --- a/crates/db_schema/src/schema.rs +++ b/crates/db_schema/src/schema.rs @@ -65,7 +65,7 @@ diesel::table! { } diesel::table! { - use diesel::sql_types::{Bool, Int4, Nullable, Text, Timestamp, Varchar}; + use diesel::sql_types::*; use diesel_ltree::sql_types::Ltree; comment (id) { @@ -317,7 +317,7 @@ diesel::table! { } diesel::table! { - use diesel::sql_types::{Bool, Int4, Nullable, Text, Timestamp, Varchar}; + use diesel::sql_types::*; use super::sql_types::ListingTypeEnum; use super::sql_types::RegistrationModeEnum; @@ -371,7 +371,7 @@ diesel::table! { } diesel::table! { - use diesel::sql_types::{Bool, Int4, Nullable, Text, Timestamp, Varchar}; + use diesel::sql_types::*; use super::sql_types::SortTypeEnum; use super::sql_types::ListingTypeEnum;