refactor: tighten module-level allow attributes
This commit is contained in:
parent
294d60afab
commit
942ac853fe
@ -1,4 +1,4 @@
|
|||||||
#![allow(clippy::unused_unit, deprecated, unused_imports)]
|
#![allow(clippy::unused_unit, deprecated)]
|
||||||
|
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#![allow(clippy::unused_unit, deprecated, unused_imports)]
|
#![allow(clippy::unused_unit, deprecated)]
|
||||||
|
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
use crate::models::comment::{AdminComment, CommentStatus, PublicComment};
|
use crate::models::comment::{AdminComment, CommentStatus, PublicComment};
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#![allow(clippy::unused_unit, deprecated, unused_imports)]
|
#![allow(clippy::unused_unit, deprecated)]
|
||||||
|
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
fn html_escape(s: &str) -> String {
|
fn html_escape(s: &str) -> String {
|
||||||
|
|||||||
@ -1,9 +1,4 @@
|
|||||||
#![allow(
|
#![allow(clippy::unused_unit, deprecated)]
|
||||||
clippy::unused_unit,
|
|
||||||
deprecated,
|
|
||||||
unused_imports,
|
|
||||||
clippy::too_many_arguments
|
|
||||||
)]
|
|
||||||
|
|
||||||
mod check;
|
mod check;
|
||||||
mod create;
|
mod create;
|
||||||
@ -16,10 +11,14 @@ mod update;
|
|||||||
|
|
||||||
pub use check::check_pending_status;
|
pub use check::check_pending_status;
|
||||||
pub use create::create_comment;
|
pub use create::create_comment;
|
||||||
|
#[allow(unused_imports)]
|
||||||
pub use list::{get_all_comments, get_pending_comments, get_pending_count};
|
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 types::*;
|
||||||
pub use update::{approve_comment, batch_update_comment_status, spam_comment, trash_comment};
|
pub use update::{approve_comment, batch_update_comment_status, spam_comment, trash_comment};
|
||||||
|
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
|
#[allow(unused_imports)]
|
||||||
pub use markdown::render_comment_markdown;
|
pub use markdown::render_comment_markdown;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#![allow(clippy::unused_unit, deprecated, unused_imports)]
|
#![allow(clippy::unused_unit, deprecated)]
|
||||||
|
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
pub fn clean_html(input: &str) -> String {
|
pub fn clean_html(input: &str) -> String {
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
|
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
|
|||||||
@ -1,9 +1,4 @@
|
|||||||
#![allow(
|
#![allow(clippy::unused_unit, deprecated)]
|
||||||
clippy::unused_unit,
|
|
||||||
deprecated,
|
|
||||||
unused_imports,
|
|
||||||
clippy::too_many_arguments
|
|
||||||
)]
|
|
||||||
|
|
||||||
mod create;
|
mod create;
|
||||||
mod delete;
|
mod delete;
|
||||||
@ -17,18 +12,26 @@ mod tags;
|
|||||||
mod types;
|
mod types;
|
||||||
mod update;
|
mod update;
|
||||||
|
|
||||||
|
#[allow(unused_imports)]
|
||||||
pub use create::create_post;
|
pub use create::create_post;
|
||||||
pub use delete::delete_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 read::{get_post_by_id, get_post_by_slug};
|
||||||
pub use rebuild::rebuild_content_html;
|
pub use rebuild::rebuild_content_html;
|
||||||
pub use search::search_posts;
|
pub use search::search_posts;
|
||||||
|
#[allow(unused_imports)]
|
||||||
pub use stats::get_post_stats;
|
pub use stats::get_post_stats;
|
||||||
pub use tags::list_tags;
|
pub use tags::list_tags;
|
||||||
pub use types::*;
|
pub use types::*;
|
||||||
|
#[allow(unused_imports)]
|
||||||
pub use update::update_post;
|
pub use update::update_post;
|
||||||
|
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
|
#[allow(unused_imports)]
|
||||||
pub use crate::api::markdown::render_markdown_enhanced;
|
pub use crate::api::markdown::render_markdown_enhanced;
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
|
#[allow(unused_imports)]
|
||||||
pub use crate::api::slug::{ensure_unique_slug, is_valid_slug, slugify};
|
pub use crate::api::slug::{ensure_unique_slug, is_valid_slug, slugify};
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
|
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#![allow(clippy::unused_unit, deprecated, unused_imports)]
|
#![allow(clippy::unused_unit, deprecated)]
|
||||||
|
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#![allow(clippy::unused_unit, deprecated, unused_imports)]
|
#![allow(clippy::unused_unit, deprecated)]
|
||||||
|
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
#![allow(clippy::unused_unit)]
|
|
||||||
|
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
use axum::{
|
use axum::{
|
||||||
extract::Multipart,
|
extract::Multipart,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user