tribuchet: building on mac02 Running phase: unpackPhase unpacking source archive /nix/store/vi2j21h17qq0pwrmvg547r5dvc4931hj-source source root is source Running phase: patchPhase Executing configureCargoCommonVars decompressing cargo artifacts from /nix/store/2yqmac7fqkqfcbz9z7slwxfr4slmxf9g-herdr-eternal-deps-0.1.0/target.tar.zst to target Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase will append /private/var/tb/6/scratch/b823bfa17efbbead/build/source/.cargo-home/config.toml with contents of /nix/store/2i86zr6kxi6yk408fs7yivx220qg7016-vendor-cargo-deps/config.toml default configurePhase, nothing to do Running phase: buildPhase +++ command cargo --version cargo 1.97.0 (c980f4866 2026-06-30) +++ command cargo clippy --release --locked --all-targets -- -D warnings Checking herdr-eternal-proto v0.1.0 (/private/var/tb/6/scratch/b823bfa17efbbead/build/source/proto) Checking herdr-eternal-server v0.1.0 (/private/var/tb/6/scratch/b823bfa17efbbead/build/source/server) Checking herdr-eternal-ssh v0.1.0 (/private/var/tb/6/scratch/b823bfa17efbbead/build/source/client) 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 warning: build failed, waiting for other jobs to finish... error: this `if` statement can be collapsed --> server/src/auth.rs:69:9 | 69 | / if let Some(static_token) = &self.static_token { 70 | | if constant_time_eq(static_token.as_bytes(), presented.as_bytes()) { 71 | | return Ok(()); 72 | | } 73 | | } | |_________^ | = 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 | 69 ~ if let Some(static_token) = &self.static_token 70 ~ && constant_time_eq(static_token.as_bytes(), presented.as_bytes()) { 71 | return Ok(()); 72 ~ } | error: this `if` statement can be collapsed --> server/src/auth.rs:157:9 | 157 | / if let Some(client_id) = &claims.client_id { 158 | | if client_id != &self.config.client_id { 159 | | return Err(AuthError::WrongClient(client_id.clone())); 160 | | } 161 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if help: collapse nested if block | 157 ~ if let Some(client_id) = &claims.client_id 158 ~ && client_id != &self.config.client_id { 159 | return Err(AuthError::WrongClient(client_id.clone())); 160 ~ } | error: this `if` statement can be collapsed --> server/src/lib.rs:854:17 | 854 | / if exit_code.is_some() { 855 | | if let Some(child) = child.as_mut() { 856 | | child.wait().await.ok(); 857 | | } 858 | | } | |_________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if help: collapse nested if block | 854 ~ if exit_code.is_some() 855 ~ && let Some(child) = child.as_mut() { 856 | child.wait().await.ok(); 857 ~ } | error: this `if` statement can be collapsed --> server/src/lib.rs:865:29 | 865 | / ... if let Some(pipe) = stdin.as_mut() { 866 | | ... if pipe.write_all(&data).await.is_err() || pipe.flush().await.is_err() { 867 | | ... stdin = None; 868 | | ... } 869 | | ... } | |_______________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if help: collapse nested if block | 865 ~ if let Some(pipe) = stdin.as_mut() 866 ~ && (pipe.write_all(&data).await.is_err() || pipe.flush().await.is_err()) { 867 | stdin = None; 868 ~ } | error: this `if` statement can be collapsed --> server/src/lib.rs:888:25 | 888 | / if let Some(pipe) = stdin.take() { 889 | | if let Ok(fd) = pipe.into_nonblocking_fd() { 890 | | fds.push(("stdin", fd)); 891 | | } 892 | | } | |_________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if help: collapse nested if block | 888 ~ if let Some(pipe) = stdin.take() 889 ~ && let Ok(fd) = pipe.into_nonblocking_fd() { 890 | fds.push(("stdin", fd)); 891 ~ } | error: this `if` statement can be collapsed --> server/src/lib.rs:934:9 | 934 | / if let Some(code) = exit_code { 935 | | if !stdout_open && !stderr_open { 936 | | seq += 1; 937 | | log.push(proto::ChannelMessage::Exit { seq, code }); ... | 940 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if help: collapse nested if block | 934 ~ if let Some(code) = exit_code 935 ~ && !stdout_open && !stderr_open { 936 | seq += 1; 937 | log.push(proto::ChannelMessage::Exit { seq, code }); 938 | return; 939 ~ } | error: could not compile `herdr-eternal-server` (lib) due to 6 previous errors