]> Untitled Git - lemmy.git/commitdiff
Allow wildcard imports in schema.rs (#3293)
authorNutomic <me@nutomic.com>
Mon, 26 Jun 2023 09:18:29 +0000 (11:18 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Jun 2023 09:18:29 +0000 (11:18 +0200)
Dont mess with auto-generated code, this avoids problems with
clippy after running diesel commands

crates/db_schema/src/lib.rs
crates/db_schema/src/schema.rs

index 4ab26981bc18d3b8a72a8f85b222506641955698..04ec4e7dab04a40a9009d0ff1d0d2147a2d69bd3 100644 (file)
@@ -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")]
index aef6fbe5dff3725450e2e1925a9f17fc3e0cdbc7..abd3ca22abd6e68847da30aa8062832f1bc729db 100644 (file)
@@ -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;