Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nashaofu committed Mar 30, 2024
1 parent 47266fd commit 53e924d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
override: true
components: rustfmt, clippy

- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2

- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down
8 changes: 3 additions & 5 deletions src/macos/impl_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,9 @@ impl ImplMonitor {
let mut impl_monitors: Vec<ImplMonitor> = Vec::with_capacity(display_ids.len());

for display_id in display_ids {
/**
* 运行过程中,如果遇到显示器插拔,可能会导致调用报错
* 对于报错的情况,就把报错的情况给排除掉
* https://github.com/nashaofu/xcap/issues/118
*/
// 运行过程中,如果遇到显示器插拔,可能会导致调用报错
// 对于报错的情况,就把报错的情况给排除掉
// https://github.com/nashaofu/xcap/issues/118
if let Ok(impl_monitor) = ImplMonitor::new(display_id) {
impl_monitors.push(impl_monitor);
} else {
Expand Down

0 comments on commit 53e924d

Please sign in to comment.