diff --git a/src/api/auth.rs b/src/api/auth.rs index e41e78f..a663bf3 100644 --- a/src/api/auth.rs +++ b/src/api/auth.rs @@ -1,4 +1,4 @@ -#![allow(clippy::unused_unit, deprecated, unused_imports)] +#![allow(clippy::unused_unit, deprecated)] use dioxus::prelude::*; #[cfg(feature = "server")] diff --git a/src/api/comments/helpers.rs b/src/api/comments/helpers.rs index c98f213..78e8fe0 100644 --- a/src/api/comments/helpers.rs +++ b/src/api/comments/helpers.rs @@ -1,4 +1,4 @@ -#![allow(clippy::unused_unit, deprecated, unused_imports)] +#![allow(clippy::unused_unit, deprecated)] #[cfg(feature = "server")] use crate::models::comment::{AdminComment, CommentStatus, PublicComment}; diff --git a/src/api/comments/markdown.rs b/src/api/comments/markdown.rs index d7be19b..5a571e2 100644 --- a/src/api/comments/markdown.rs +++ b/src/api/comments/markdown.rs @@ -1,4 +1,4 @@ -#![allow(clippy::unused_unit, deprecated, unused_imports)] +#![allow(clippy::unused_unit, deprecated)] #[cfg(feature = "server")] fn html_escape(s: &str) -> String { diff --git a/src/api/comments/mod.rs b/src/api/comments/mod.rs index d3f5805..06942c4 100644 --- a/src/api/comments/mod.rs +++ b/src/api/comments/mod.rs @@ -1,9 +1,4 @@ -#![allow( - clippy::unused_unit, - deprecated, - unused_imports, - clippy::too_many_arguments -)] +#![allow(clippy::unused_unit, deprecated)] mod check; mod create; @@ -16,10 +11,14 @@ mod update; pub use check::check_pending_status; pub use create::create_comment; +#[allow(unused_imports)] pub use list::{get_all_comments, get_pending_comments, get_pending_count}; -pub use read::{get_comment_count, get_comments}; +#[allow(unused_imports)] +pub use read::get_comment_count; +pub use read::get_comments; pub use types::*; pub use update::{approve_comment, batch_update_comment_status, spam_comment, trash_comment}; #[cfg(feature = "server")] +#[allow(unused_imports)] pub use markdown::render_comment_markdown; diff --git a/src/api/markdown.rs b/src/api/markdown.rs index 5f7ca34..41f1d2b 100644 --- a/src/api/markdown.rs +++ b/src/api/markdown.rs @@ -1,4 +1,4 @@ -#![allow(clippy::unused_unit, deprecated, unused_imports)] +#![allow(clippy::unused_unit, deprecated)] #[cfg(feature = "server")] pub fn clean_html(input: &str) -> String { diff --git a/src/api/posts/create.rs b/src/api/posts/create.rs index 1446be3..8e26d81 100644 --- a/src/api/posts/create.rs +++ b/src/api/posts/create.rs @@ -1,3 +1,5 @@ +#![allow(clippy::too_many_arguments)] + use dioxus::prelude::*; #[cfg(feature = "server")] diff --git a/src/api/posts/mod.rs b/src/api/posts/mod.rs index 63c1255..e0e3c94 100644 --- a/src/api/posts/mod.rs +++ b/src/api/posts/mod.rs @@ -1,9 +1,4 @@ -#![allow( - clippy::unused_unit, - deprecated, - unused_imports, - clippy::too_many_arguments -)] +#![allow(clippy::unused_unit, deprecated)] mod create; mod delete; @@ -17,18 +12,26 @@ mod tags; mod types; mod update; +#[allow(unused_imports)] pub use create::create_post; pub use delete::delete_post; -pub use list::{get_posts_by_tag, list_posts, list_published_posts}; +#[allow(unused_imports)] +pub use list::list_posts; +pub use list::{get_posts_by_tag, list_published_posts}; +#[allow(unused_imports)] pub use read::{get_post_by_id, get_post_by_slug}; pub use rebuild::rebuild_content_html; pub use search::search_posts; +#[allow(unused_imports)] pub use stats::get_post_stats; pub use tags::list_tags; pub use types::*; +#[allow(unused_imports)] pub use update::update_post; #[cfg(feature = "server")] +#[allow(unused_imports)] pub use crate::api::markdown::render_markdown_enhanced; #[cfg(feature = "server")] +#[allow(unused_imports)] pub use crate::api::slug::{ensure_unique_slug, is_valid_slug, slugify}; diff --git a/src/api/posts/update.rs b/src/api/posts/update.rs index 1f9a1a8..b0bd05c 100644 --- a/src/api/posts/update.rs +++ b/src/api/posts/update.rs @@ -1,3 +1,5 @@ +#![allow(clippy::too_many_arguments)] + use dioxus::prelude::*; #[cfg(feature = "server")] diff --git a/src/api/sanitizer.rs b/src/api/sanitizer.rs index c9d4f97..9ee730d 100644 --- a/src/api/sanitizer.rs +++ b/src/api/sanitizer.rs @@ -1,4 +1,4 @@ -#![allow(clippy::unused_unit, deprecated, unused_imports)] +#![allow(clippy::unused_unit, deprecated)] #[cfg(feature = "server")] use std::collections::HashSet; diff --git a/src/api/slug.rs b/src/api/slug.rs index 2aa1659..1ff825c 100644 --- a/src/api/slug.rs +++ b/src/api/slug.rs @@ -1,4 +1,4 @@ -#![allow(clippy::unused_unit, deprecated, unused_imports)] +#![allow(clippy::unused_unit, deprecated)] use dioxus::prelude::*; diff --git a/src/api/upload.rs b/src/api/upload.rs index 97eefe3..a2d9995 100644 --- a/src/api/upload.rs +++ b/src/api/upload.rs @@ -1,5 +1,3 @@ -#![allow(clippy::unused_unit)] - #[cfg(feature = "server")] use axum::{ extract::Multipart,