Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/local_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
13 changes: 10 additions & 3 deletions tools/fmt_clippy_doc.sh
Original file line number Diff line number Diff line change
@@ -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
Loading