feat: updates
This commit is contained in:
@@ -97,7 +97,7 @@ pub fn private_key_ecdh(
|
|||||||
fn run_command_stdout(cmd: Command) -> XResult<String> {
|
fn run_command_stdout(cmd: Command) -> XResult<String> {
|
||||||
let output = run_command(cmd)?;
|
let output = run_command(cmd)?;
|
||||||
let stdout_text = opt_result!(String::from_utf8(output.stdout), "Parse stdout failed:{}");
|
let stdout_text = opt_result!(String::from_utf8(output.stdout), "Parse stdout failed:{}");
|
||||||
Ok(stdout_text)
|
Ok(stdout_text.trim().to_string())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run_command(mut cmd: Command) -> XResult<Output> {
|
fn run_command(mut cmd: Command) -> XResult<Output> {
|
||||||
|
|||||||
Reference in New Issue
Block a user