diff --git a/crates/web/src/app.rs b/crates/web/src/app.rs index 8f0115d..c85dc03 100644 --- a/crates/web/src/app.rs +++ b/crates/web/src/app.rs @@ -60,7 +60,9 @@ fn SubscribeForm(on_subscribed: EventHandler<()>) -> Element { status.set(None); match subscribe_feed(feed_url).await { Ok(count) => { - status.set(Some(Ok(format!("Subscribed — pulled in {count} article(s).")))); + status.set(Some(Ok(format!( + "Subscribed — pulled in {count} article(s)." + )))); url.set(String::new()); on_subscribed.call(()); } diff --git a/crates/web/src/components/button/component.rs b/crates/web/src/components/button/component.rs index bbf3b9c..5d4a423 100644 --- a/crates/web/src/components/button/component.rs +++ b/crates/web/src/components/button/component.rs @@ -5,6 +5,11 @@ use dioxus_primitives::merge_attributes; #[css_module("/src/components/button/style.css")] struct Styles; +// Variants beyond the ones this app currently uses are part of the +// component library's public API, not unused code — CI runs clippy with +// `-D warnings`, which would otherwise turn this dead_code lint into a +// build failure. +#[allow(dead_code)] #[derive(Copy, Clone, PartialEq, Default)] #[non_exhaustive] pub enum ButtonVariant { @@ -30,6 +35,7 @@ impl ButtonVariant { } } +#[allow(dead_code)] #[derive(Copy, Clone, PartialEq, Default)] #[non_exhaustive] pub enum ButtonSize { diff --git a/crates/web/src/components/button/mod.rs b/crates/web/src/components/button/mod.rs index 9a8ae55..2590c01 100644 --- a/crates/web/src/components/button/mod.rs +++ b/crates/web/src/components/button/mod.rs @@ -1,2 +1,2 @@ mod component; -pub use component::*; \ No newline at end of file +pub use component::*; diff --git a/crates/web/src/components/input/mod.rs b/crates/web/src/components/input/mod.rs index 9a8ae55..2590c01 100644 --- a/crates/web/src/components/input/mod.rs +++ b/crates/web/src/components/input/mod.rs @@ -1,2 +1,2 @@ mod component; -pub use component::*; \ No newline at end of file +pub use component::*;