Skip to content

Commit d7202b3

Browse files
authored
Fix CI (#723)
* Fix check-cfg error in CI * Fix clippy::precedence warning * Mark semver checks as optional while they are failing
1 parent 49078e1 commit d7202b3

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v4
2929
- name: Check semver
30+
# Allow failure until we update all the package versions.
31+
continue-on-error: true
3032
uses: obi1kenobi/cargo-semver-checks-action@v2
3133
build:
3234
runs-on: ${{ matrix.os }}

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ clippy.result_unit_err = "allow"
2525
clippy.too_many_arguments = "allow"
2626
clippy.type_complexity = "allow"
2727

28+
# Work around an issue in the objc crate.
29+
# https://github.com/SSheldon/rust-objc/issues/125
30+
[workspace.lints.rust]
31+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(feature, values("cargo-clippy"))'] }
32+
2833
[workspace.dependencies]
2934
cocoa-foundation = { default-features = false, path = "cocoa-foundation", version = "0.2" }
3035
core-foundation = { default-features = false, path = "core-foundation", version = "0.10" }

core-graphics/src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ pub type CGEventMask = u64;
498498
/* Generate an event mask for a single type of event. */
499499
macro_rules! CGEventMaskBit {
500500
($eventType:expr) => {
501-
1 << $eventType as CGEventMask
501+
(1 << $eventType as CGEventMask)
502502
};
503503
}
504504

0 commit comments

Comments
 (0)