diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index df05dbe4..42f2f396 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -70,7 +70,7 @@ jobs: toolchain: ${{ env.RUST_TOOLCHAIN }} - name: Run cargo check run: | - cargo check --all --tests + cargo check --workspace --all-targets --all-features # [impl->req~up-language-ci-linter~1] fmt: @@ -85,7 +85,7 @@ jobs: components: rustfmt - name: Run cargo fmt run: | - cargo fmt --all -- --check + cargo fmt --all --check # [impl->req~up-language-ci-linter~1] clippy: @@ -101,7 +101,7 @@ jobs: - name: Run cargo clippy run: | cargo clippy --version - cargo clippy --tests --examples + cargo clippy --all-targets --all-features --no-deps -- -W warnings -D warnings # [impl->req~up-language-ci-api-docs~1] docu: diff --git a/src/local_transport.rs b/src/local_transport.rs index 385ae4a2..fcea8cd1 100644 --- a/src/local_transport.rs +++ b/src/local_transport.rs @@ -36,7 +36,7 @@ impl RegisteredListener { } if let Some(pattern) = &self.sink_filter { - sink.map_or(false, |candidate_sink| pattern.matches(candidate_sink)) + sink.is_some_and(|candidate_sink| pattern.matches(candidate_sink)) } else { sink.is_none() } diff --git a/tools/fmt_clippy_doc.sh b/tools/fmt_clippy_doc.sh index 4e512ce2..c0f13559 100755 --- a/tools/fmt_clippy_doc.sh +++ b/tools/fmt_clippy_doc.sh @@ -1,5 +1,12 @@ #!/bin/sh -cargo fmt -- --check -cargo clippy --all-targets -- -W warnings -D warnings -cargo doc -p up-rust --no-deps +echo "Running cargo fmt --check" +cargo fmt --all --check + +echo "" +echo "Running cargo clippy" +cargo clippy --all-targets --all-features --no-deps -- -W warnings -D warnings + +echo "" +echo "Running cargo doc" +cargo doc --no-deps --all-features