ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[autofix.ci] apply automated fixes

authored by

autofix-ci[bot] and committed by
GitHub
ebeea4d1 a8f07e90

+15 -9
+14 -2
wire/lib/src/commands/interactive.rs
··· 320 320 let _ = posix_write(&self.cancel_stdin_pipe_w, THREAD_QUIT_SIGNAL); 321 321 322 322 if let Some(true) = success { 323 - let logs = self.stdout_collection.lock().unwrap().iter().rev().join("\n"); 323 + let logs = self 324 + .stdout_collection 325 + .lock() 326 + .unwrap() 327 + .iter() 328 + .rev() 329 + .join("\n"); 324 330 325 331 return Ok((exit_status, logs)); 326 332 } 327 333 328 334 debug!("child did not succeed"); 329 335 330 - let logs = self.stderr_collection.lock().unwrap().iter().rev().join("\n"); 336 + let logs = self 337 + .stderr_collection 338 + .lock() 339 + .unwrap() 340 + .iter() 341 + .rev() 342 + .join("\n"); 331 343 332 344 Err(CommandError::CommandFailed { 333 345 command_ran: self.original_command,
+1 -7
wire/lib/src/commands/noninteractive.rs
··· 122 122 let _ = self.joinset.join_all().await; 123 123 124 124 if !status.success() { 125 - let logs = self 126 - .error_collection 127 - .lock() 128 - .await 129 - .iter() 130 - .rev() 131 - .join("\n"); 125 + let logs = self.error_collection.lock().await.iter().rev().join("\n"); 132 126 133 127 return Err(CommandError::CommandFailed { 134 128 command_ran: self.original_command,