these 14 derivations will be built: /nix/store/4npj0l1p1145s5vyx0aagsb99qrn2d4b-toml-1.1.4+spec-1.1.0.drv /nix/store/600g6rwn18i177wd7ncb9gj4qcncqr9r-toml_parser-1.1.3+spec-1.1.0.drv /nix/store/r3wgbb3qszfbqrznd1f65xv6069iszfm-anyhow-1.0.104.drv /nix/store/x8dr1l5ca1y0lm53qqmbqb839n2wraiy-toml_writer-1.1.2+spec-1.1.0.drv /nix/store/xgniggdy36gpvc705q0cads5s91fyz6d-toml_edit-0.25.13+spec-1.1.0.drv /nix/store/as9dw2wpy6badr72q4mr3wijnm3lv2m4-cargo-vendor-dir.drv /nix/store/64kjvw3hipqj2cdxakhivrhx8cq0wrpn-crane-utils-0.0.1.drv /nix/store/6g1mylmlx7z3r82gci7qwqqxd5kgrwx9-Cargo.toml.drv /nix/store/f7z2g5aj3hbc6ad1f2wpyqn9crq538xq-Cargo.toml.drv /nix/store/hgwxlsv0xkgvp6rq3kjrxq8fpq3q6a2n-Cargo.toml.drv /nix/store/p5fi180apbrmq5637c5m0g2vbahzvhj0-Cargo.toml.drv /nix/store/3slxclanrqnv9xkp0ynix4910pvyc2gf-source.drv /nix/store/v39aip4gd7hgyrbr232pdmy299zliznx-herdr-eternal-deps-0.1.0.drv /nix/store/50x7zzw2hlc73irca55wz5z2x910s6qw-herdr-eternal-clippy-0.1.0.drv building '/nix/store/r3wgbb3qszfbqrznd1f65xv6069iszfm-anyhow-1.0.104.drv' building '/nix/store/50x7zzw2hlc73irca55wz5z2x910s6qw-herdr-eternal-clippy-0.1.0.drv' herdr-eternal-clippy-0.1.0> Running phase: unpackPhase herdr-eternal-clippy-0.1.0> unpacking source archive /nix/store/2fsy4dsayp8khhhdxl0k6g4s5fqjmyx2-source herdr-eternal-clippy-0.1.0> source root is source herdr-eternal-clippy-0.1.0> Running phase: patchPhase herdr-eternal-clippy-0.1.0> Executing configureCargoCommonVars herdr-eternal-clippy-0.1.0> decompressing cargo artifacts from /nix/store/h8pqar04hf8zz3b4ga6iphbrfx8hvdma-herdr-eternal-deps-0.1.0/target.tar.zst to target herdr-eternal-clippy-0.1.0> Running phase: updateAutotoolsGnuConfigScriptsPhase herdr-eternal-clippy-0.1.0> Running phase: configurePhase herdr-eternal-clippy-0.1.0> will append /build/source/.cargo-home/config.toml with contents of /nix/store/jjpdza1hl297c6fd50grypkh1nbl575j-vendor-cargo-deps/config.toml herdr-eternal-clippy-0.1.0> default configurePhase, nothing to do herdr-eternal-clippy-0.1.0> Running phase: buildPhase herdr-eternal-clippy-0.1.0> +++ command cargo --version herdr-eternal-clippy-0.1.0> cargo 1.97.0 (c980f4866 2026-06-30) herdr-eternal-clippy-0.1.0> +++ command cargo clippy --release --locked --all-targets -- -D warnings herdr-eternal-clippy-0.1.0> Checking herdr-eternal-proto v0.1.0 (/build/source/proto) herdr-eternal-clippy-0.1.0> Checking herdr-eternal-server v0.1.0 (/build/source/server) herdr-eternal-clippy-0.1.0> Checking herdr-eternal-ssh v0.1.0 (/build/source/client) herdr-eternal-clippy-0.1.0> error: this `if` statement can be collapsed herdr-eternal-clippy-0.1.0> --> server/src/auth.rs:69:9 herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 69 | / if let Some(static_token) = &self.static_token { herdr-eternal-clippy-0.1.0> 70 | | if constant_time_eq(static_token.as_bytes(), presented.as_bytes()) { herdr-eternal-clippy-0.1.0> 71 | | return Ok(()); herdr-eternal-clippy-0.1.0> 72 | | } herdr-eternal-clippy-0.1.0> 73 | | } herdr-eternal-clippy-0.1.0> | |_________^ herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if herdr-eternal-clippy-0.1.0> = note: `-D clippy::collapsible-if` implied by `-D warnings` herdr-eternal-clippy-0.1.0> = help: to override `-D warnings` add `#[allow(clippy::collapsible_if)]` herdr-eternal-clippy-0.1.0> help: collapse nested if block herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 69 ~ if let Some(static_token) = &self.static_token herdr-eternal-clippy-0.1.0> 70 ~ && constant_time_eq(static_token.as_bytes(), presented.as_bytes()) { herdr-eternal-clippy-0.1.0> 71 | return Ok(()); herdr-eternal-clippy-0.1.0> 72 ~ } herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> herdr-eternal-clippy-0.1.0> error: this `if` statement can be collapsed herdr-eternal-clippy-0.1.0> --> server/src/auth.rs:157:9 herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 157 | / if let Some(client_id) = &claims.client_id { herdr-eternal-clippy-0.1.0> 158 | | if client_id != &self.config.client_id { herdr-eternal-clippy-0.1.0> 159 | | return Err(AuthError::WrongClient(client_id.clone())); herdr-eternal-clippy-0.1.0> 160 | | } herdr-eternal-clippy-0.1.0> 161 | | } herdr-eternal-clippy-0.1.0> | |_________^ herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if herdr-eternal-clippy-0.1.0> help: collapse nested if block herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 157 ~ if let Some(client_id) = &claims.client_id herdr-eternal-clippy-0.1.0> 158 ~ && client_id != &self.config.client_id { herdr-eternal-clippy-0.1.0> 159 | return Err(AuthError::WrongClient(client_id.clone())); herdr-eternal-clippy-0.1.0> 160 ~ } herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> herdr-eternal-clippy-0.1.0> error: this `if` statement can be collapsed herdr-eternal-clippy-0.1.0> --> server/src/lib.rs:854:17 herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 854 | / if exit_code.is_some() { herdr-eternal-clippy-0.1.0> 855 | | if let Some(child) = child.as_mut() { herdr-eternal-clippy-0.1.0> 856 | | child.wait().await.ok(); herdr-eternal-clippy-0.1.0> 857 | | } herdr-eternal-clippy-0.1.0> 858 | | } herdr-eternal-clippy-0.1.0> | |_________________^ herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if herdr-eternal-clippy-0.1.0> help: collapse nested if block herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 854 ~ if exit_code.is_some() herdr-eternal-clippy-0.1.0> 855 ~ && let Some(child) = child.as_mut() { herdr-eternal-clippy-0.1.0> 856 | child.wait().await.ok(); herdr-eternal-clippy-0.1.0> 857 ~ } herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> herdr-eternal-clippy-0.1.0> error: this `if` statement can be collapsed herdr-eternal-clippy-0.1.0> --> server/src/lib.rs:865:29 herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 865 | / ... if let Some(pipe) = stdin.as_mut() { herdr-eternal-clippy-0.1.0> 866 | | ... if pipe.write_all(&data).await.is_err() || pipe.flush().await.is_err() { herdr-eternal-clippy-0.1.0> 867 | | ... stdin = None; herdr-eternal-clippy-0.1.0> 868 | | ... } herdr-eternal-clippy-0.1.0> 869 | | ... } herdr-eternal-clippy-0.1.0> | |_______________________^ herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if herdr-eternal-clippy-0.1.0> help: collapse nested if block herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 865 ~ if let Some(pipe) = stdin.as_mut() herdr-eternal-clippy-0.1.0> 866 ~ && (pipe.write_all(&data).await.is_err() || pipe.flush().await.is_err()) { herdr-eternal-clippy-0.1.0> 867 | stdin = None; herdr-eternal-clippy-0.1.0> 868 ~ } herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> herdr-eternal-clippy-0.1.0> error: this `if` statement can be collapsed herdr-eternal-clippy-0.1.0> --> server/src/lib.rs:888:25 herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 888 | / if let Some(pipe) = stdin.take() { herdr-eternal-clippy-0.1.0> 889 | | if let Ok(fd) = pipe.into_nonblocking_fd() { herdr-eternal-clippy-0.1.0> 890 | | fds.push(("stdin", fd)); herdr-eternal-clippy-0.1.0> 891 | | } herdr-eternal-clippy-0.1.0> 892 | | } herdr-eternal-clippy-0.1.0> | |_________________________^ herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if herdr-eternal-clippy-0.1.0> help: collapse nested if block herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 888 ~ if let Some(pipe) = stdin.take() herdr-eternal-clippy-0.1.0> 889 ~ && let Ok(fd) = pipe.into_nonblocking_fd() { herdr-eternal-clippy-0.1.0> 890 | fds.push(("stdin", fd)); herdr-eternal-clippy-0.1.0> 891 ~ } herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> herdr-eternal-clippy-0.1.0> error: this `if` statement can be collapsed herdr-eternal-clippy-0.1.0> --> server/src/lib.rs:934:9 herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 934 | / if let Some(code) = exit_code { herdr-eternal-clippy-0.1.0> 935 | | if !stdout_open && !stderr_open { herdr-eternal-clippy-0.1.0> 936 | | seq += 1; herdr-eternal-clippy-0.1.0> 937 | | log.push(proto::ChannelMessage::Exit { seq, code }); herdr-eternal-clippy-0.1.0> ... | herdr-eternal-clippy-0.1.0> 940 | | } herdr-eternal-clippy-0.1.0> | |_________^ herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if herdr-eternal-clippy-0.1.0> help: collapse nested if block herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 934 ~ if let Some(code) = exit_code herdr-eternal-clippy-0.1.0> 935 ~ && !stdout_open && !stderr_open { herdr-eternal-clippy-0.1.0> 936 | seq += 1; herdr-eternal-clippy-0.1.0> 937 | log.push(proto::ChannelMessage::Exit { seq, code }); herdr-eternal-clippy-0.1.0> 938 | return; herdr-eternal-clippy-0.1.0> 939 ~ } herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> herdr-eternal-clippy-0.1.0> error: could not compile `herdr-eternal-server` (lib) due to 6 previous errors herdr-eternal-clippy-0.1.0> warning: build failed, waiting for other jobs to finish... herdr-eternal-clippy-0.1.0> error: this `if` statement can be collapsed herdr-eternal-clippy-0.1.0> --> client/src/lib.rs:250:17 herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 250 | / if agent_channel.is_none() { herdr-eternal-clippy-0.1.0> 251 | | if let (Some(socket), Some(token)) = (&target.agent_socket, &resume_token) { herdr-eternal-clippy-0.1.0> 252 | | agent_channel = Some(AbortOnDrop(tokio::spawn(agent::forward_agent( herdr-eternal-clippy-0.1.0> 253 | | target.clone(), herdr-eternal-clippy-0.1.0> ... | herdr-eternal-clippy-0.1.0> 258 | | } herdr-eternal-clippy-0.1.0> | |_________________^ herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if herdr-eternal-clippy-0.1.0> = note: `-D clippy::collapsible-if` implied by `-D warnings` herdr-eternal-clippy-0.1.0> = help: to override `-D warnings` add `#[allow(clippy::collapsible_if)]` herdr-eternal-clippy-0.1.0> help: collapse nested if block herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> 250 ~ if agent_channel.is_none() herdr-eternal-clippy-0.1.0> 251 ~ && let (Some(socket), Some(token)) = (&target.agent_socket, &resume_token) { herdr-eternal-clippy-0.1.0> 252 | agent_channel = Some(AbortOnDrop(tokio::spawn(agent::forward_agent( herdr-eternal-clippy-0.1.0> ... herdr-eternal-clippy-0.1.0> 256 | )))); herdr-eternal-clippy-0.1.0> 257 ~ } herdr-eternal-clippy-0.1.0> | herdr-eternal-clippy-0.1.0> herdr-eternal-clippy-0.1.0> error: could not compile `herdr-eternal-ssh` (lib) due to 1 previous error error: Cannot build '/nix/store/50x7zzw2hlc73irca55wz5z2x910s6qw-herdr-eternal-clippy-0.1.0.drv'. Reason: builder failed with exit code 101. Output paths: /nix/store/0jrhl10lj84jfmh3kr1f9dvhbjsq604s-herdr-eternal-clippy-0.1.0 Last 25 log lines: > error: this `if` statement can be collapsed > --> client/src/lib.rs:250:17 > | > 250 | / if agent_channel.is_none() { > 251 | | if let (Some(socket), Some(token)) = (&target.agent_socket, &resume_token) { > 252 | | agent_channel = Some(AbortOnDrop(tokio::spawn(agent::forward_agent( > 253 | | target.clone(), > ... | > 258 | | } > | |_________________^ > | > = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if > = note: `-D clippy::collapsible-if` implied by `-D warnings` > = help: to override `-D warnings` add `#[allow(clippy::collapsible_if)]` > help: collapse nested if block > | > 250 ~ if agent_channel.is_none() > 251 ~ && let (Some(socket), Some(token)) = (&target.agent_socket, &resume_token) { > 252 | agent_channel = Some(AbortOnDrop(tokio::spawn(agent::forward_agent( > ... > 256 | )))); > 257 ~ } > | > > error: could not compile `herdr-eternal-ssh` (lib) due to 1 previous error For full logs, run: nix log /nix/store/50x7zzw2hlc73irca55wz5z2x910s6qw-herdr-eternal-clippy-0.1.0.drv