Update rustfmt
This commit is contained in:
parent
f4f738c898
commit
64e20b371b
29 changed files with 179 additions and 206 deletions
|
|
@ -40,10 +40,10 @@ impl<'a, C: CommandRunner> Symbol for TlsKey<'a, C> {
|
|||
return Ok(false);
|
||||
}
|
||||
|
||||
let output = try!(self.command_runner.get_output(
|
||||
let output = self.command_runner.get_output(
|
||||
"openssl",
|
||||
&["rsa", "-in", &self.get_path(), "-noout", "-check", "-text"]
|
||||
));
|
||||
&["rsa", "-in", &self.get_path(), "-noout", "-check", "-text"],
|
||||
)?;
|
||||
Ok(output.starts_with(&format!("Private-Key: ({} bit)\n", self.get_bytes()).as_bytes()))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue