diff --git a/src/lib.rs b/src/lib.rs index 397f208..7a5df7b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -97,7 +97,7 @@ pub fn private_key_ecdh( fn run_command_stdout(cmd: Command) -> XResult { let output = run_command(cmd)?; 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 {