Skip to content

Commit

Permalink
chore: remove unused_assignments from allow list
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Dec 16, 2023
1 parent 2c8c8ff commit db53a4d
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 26 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ missing_docs = "warn"
[workspace.lints.clippy]
all = "deny"
pedantic = "deny"
needless_pass_by_value = "warn"
module_name_repetitions = { level = "allow", priority = 1 }
too_many_lines = { level = "allow", priority = 1 }
type_complexity = { level = "allow", priority = 1 }
5 changes: 1 addition & 4 deletions viz-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
#![doc(html_favicon_url = "https://viz.rs/logo.svg")]
#![doc(test(
no_crate_inject,
attr(
deny(warnings, rust_2018_idioms),
allow(dead_code, unused_assignments, unused_variables)
)
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

Expand Down
5 changes: 1 addition & 4 deletions viz-handlers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
#![doc(html_favicon_url = "https://viz.rs/logo.svg")]
#![doc(test(
no_crate_inject,
attr(
deny(warnings, rust_2018_idioms),
allow(dead_code, unused_assignments, unused_variables)
)
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

Expand Down
2 changes: 1 addition & 1 deletion viz-handlers/src/prometheus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct Prometheus {
}

impl Prometheus {
/// Creates a new Prometheus.
/// Creates a new [`Prometheus`].
#[must_use]
pub fn new(registry: Registry) -> Self {
Self { registry }
Expand Down
5 changes: 1 addition & 4 deletions viz-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
#![doc(html_favicon_url = "https://viz.rs/logo.svg")]
#![doc(test(
no_crate_inject,
attr(
deny(warnings, rust_2018_idioms),
allow(dead_code, unused_assignments, unused_variables)
)
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

Expand Down
16 changes: 8 additions & 8 deletions viz-router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
#![doc(html_favicon_url = "https://viz.rs/logo.svg")]
#![doc(test(
no_crate_inject,
attr(
deny(warnings, rust_2018_idioms),
allow(dead_code, unused_assignments, unused_variables)
)
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![allow(clippy::needless_pass_by_value)]
Expand All @@ -16,12 +13,15 @@
pub(crate) mod macros;

mod resources;
pub use resources::Resources;

mod route;
pub use route::*;

mod router;
pub use router::Router;

mod tree;
pub use tree::Tree;

pub use path_tree::{Path, PathTree};
pub use resources::Resources;
pub use route::*;
pub use router::Router;
pub use tree::Tree;
2 changes: 1 addition & 1 deletion viz-router/src/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl FromIterator<(Method, BoxHandler)> for Route {
pub fn on<H, O>(method: Method, handler: H) -> Route
where
H: Handler<Request, Output = Result<O>> + Clone,
O: IntoResponse + Send + Sync + 'static,
O: IntoResponse + Send + 'static,
{
Route::new().on(method, handler)
}
Expand Down
5 changes: 1 addition & 4 deletions viz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,7 @@
#![doc(html_favicon_url = "https://viz.rs/logo.svg")]
#![doc(test(
no_crate_inject,
attr(
deny(warnings, rust_2018_idioms),
allow(dead_code, unused_assignments, unused_variables)
)
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

Expand Down

0 comments on commit db53a4d

Please sign in to comment.