Skip to content

Commit

Permalink
Suppress unused items in prelude modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Oct 27, 2023
1 parent cba8641 commit ba7ebef
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions deepwell/src/endpoints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
//! around service calls, or possibly perform modest data conversion for HTTP.
mod prelude {
#![allow(unused_imports)]
pub use crate::api::ServerState;
pub use crate::services::{
AliasService, BlobService, CategoryService, DomainService, Error as ServiceError,
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/alias/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/authentication/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/blob/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
//! service instead, for instance the `FileService`.
mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
pub use crate::hash::{blob_hash_to_hex, sha512_hash, BlobHash};
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/category/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/domain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/email/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/file_revision/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
pub use crate::hash::BlobHash;
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/filter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
//! joining.
mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::matcher::{FilterMatcher, FilterSummary};
pub use super::structs::*;
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/import/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/interaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
//! * `user` / `block` / `user` — User has blocked another user
mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::*;
pub use crate::models::interaction::Model as InteractionModel;
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/job/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
//! can mean that if this DEEPWELL node fails, the queued jobs will not be run.
mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/link/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
//! clear enough to be acceptable when repeated over a few slightly distinct cases.
mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/message/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/message_report/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/mfa/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
//! services or by route implementations found in the `methods` module.
mod prelude {
#![allow(unused_imports)]
pub use super::context::ServiceContext;
pub use super::error::*;
pub use crate::config::Config;
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/page/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/page_query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/page_revision/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
pub use super::tasks::PageRevisionTasks;
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/parent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
pub use ftml::{
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/score/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
pub use super::Scorer;
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/site/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/special_page/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
//! which display custom "this page does not exist" content.
mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/user/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/user_bot_owner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/view/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::options::PageOptions;
pub use super::structs::*;
Expand Down
1 change: 1 addition & 0 deletions deepwell/src/services/vote/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

mod prelude {
#![allow(unused_imports)]
pub use super::super::prelude::*;
pub use super::structs::*;
}
Expand Down

0 comments on commit ba7ebef

Please sign in to comment.