Skip to content

Use Xephyr in automated tests #123

Use Xephyr in automated tests

Use Xephyr in automated tests #123

GitHub Actions / clippy failed Dec 5, 2024 in 0s

clippy

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.85.0-nightly (acabb5248 2024-12-04)
  • cargo 1.85.0-nightly (05f54fdc3 2024-12-03)
  • clippy 0.1.85 (acabb52482 2024-12-04)

Annotations

Check failure on line 2979 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this loop never actually loops

error: this loop never actually loops
    --> src/main.rs:2933:18
     |
2933 |           let ok = loop {
     |  __________________^
2934 | |             unsafe {
2935 | |                 let xcon = match Connection::connect(Some(":1.0")) {
2936 | |                     Ok((xcon, _)) => xcon,
...    |
2978 | |             break true;
2979 | |         };
     | |_________^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
     = note: `#[deny(clippy::never_loop)]` on by default

Check failure on line 2923 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

spawned process is never `wait()`ed on

error: spawned process is never `wait()`ed on
    --> src/main.rs:2923:23
     |
2923 |         let mut cmd = Command::new("Xvfb").arg(":1").spawn().unwrap();
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = note: consider calling `.wait()`
     = note: not doing so might leave behind zombie processes
     = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zombie_processes
     = note: `-D clippy::zombie-processes` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(clippy::zombie_processes)]`