diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index 35bc2d5..f24b7d5 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -22,4 +22,4 @@ jobs: run: 'cargo +nightly fmt --all -- --check' - name: 'Clippy' - run: 'cargo clippy -- -D warnings' \ No newline at end of file + run: 'cargo clippy --all-targets --all-features -- -D warnings' \ No newline at end of file diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index ce6a5ee..29ad147 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -25,7 +25,7 @@ jobs: run: 'cargo +nightly fmt --all -- --check' - name: 'Clippy' - run: 'cargo clippy --all-features -- -D warnings' + run: 'cargo clippy --all-features --all-targets -- -D warnings' check-examples-matrix: strategy: @@ -47,7 +47,7 @@ jobs: run: 'cd examples/${{ matrix.example }} && cargo +nightly fmt --all -- --check' - name: 'Clippy' - run: 'cd examples/${{ matrix.example }} && cargo clippy -- -D warnings' + run: 'cd examples/${{ matrix.example }} && cargo clippy --all-targets --all-features -- -D warnings' deploy-documentation: name: Deploy documentation diff --git a/examples/basic/src/main.rs b/examples/basic/src/main.rs index c1ab065..6bc6809 100644 --- a/examples/basic/src/main.rs +++ b/examples/basic/src/main.rs @@ -97,7 +97,7 @@ fn inner(props: &InnerProps) -> Html { #[function_component(App)] pub fn app() -> Html { - let component_creator = NotificationFactory::default(); + let component_creator = NotificationFactory; let position = use_state(|| NotificationsPosition::TopRight); let position_setter = position.setter(); diff --git a/examples/custom/src/main.rs b/examples/custom/src/main.rs index 77fff10..6bcf015 100644 --- a/examples/custom/src/main.rs +++ b/examples/custom/src/main.rs @@ -34,7 +34,7 @@ fn inner() -> Html { #[function_component(App)] pub fn app() -> Html { - let component_creator = CustomNotificationFactory::default(); + let component_creator = CustomNotificationFactory; html! {