Skip to content

Commit

Permalink
refactor: rm unnecessary newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jun 5, 2024
1 parent 2cf9356 commit 442f1c7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ impl NixCmd {
}

/// Run nix with given args, interpreting stdout as JSON, parsing into `T`
pub async fn run_with_args_expecting_json<T>(&self, args: &[&str]) -> Result<T, NixCmdError>
where
T: serde::de::DeserializeOwned,
Expand All @@ -101,7 +100,6 @@ impl NixCmd {
}

/// Run nix with given args, interpreting parsing stdout, via [std::str::FromStr], into `T`
pub async fn run_with_args_expecting_fromstr<T>(&self, args: &[&str]) -> Result<T, NixCmdError>
where
T: std::str::FromStr,
Expand All @@ -114,7 +112,6 @@ impl NixCmd {
}

/// Run nix with given args, returning stdout.
pub async fn run_with_args_returning_stdout(
&self,
args: &[&str],
Expand Down Expand Up @@ -166,7 +163,6 @@ impl NixCmd {
}

/// Convert a Command to user-copyable CLI string
fn to_cli(cmd: &tokio::process::Command) -> String {
use std::ffi::OsStr;
let program = cmd.as_std().get_program().to_string_lossy().to_string();
Expand Down

0 comments on commit 442f1c7

Please sign in to comment.