Skip to content

Commit 23b4d8d

Browse files
authored
fix: Fix a compilation error in atspi-common Event::new (#537)
1 parent d04a8b7 commit 23b4d8d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ jobs:
7272
- name: cargo clippy
7373
run: cargo clippy --all-targets -- -D warnings
7474

75+
- name: cargo clippy -p accesskit_atspi_common
76+
if: matrix.os == 'ubuntu-latest'
77+
run: cargo clippy -p accesskit_atspi_common --all-features -- -D warnings
78+
7579
find-msrv:
7680
runs-on: ubuntu-latest
7781
outputs:

platforms/atspi-common/src/simplified.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ impl Event {
618618
data: None,
619619
},
620620
ObjectEvent::StateChanged(state, value) => Self {
621-
kind: format!("object:state-changed:{}", String::from(state)),
621+
kind: format!("object:state-changed:{}", state.to_static_str()),
622622
source,
623623
detail1: value as i32,
624624
detail2: 0,

0 commit comments

Comments
 (0)