Lint
This commit is contained in:
parent
64bdf403d4
commit
e060ce5a68
35 changed files with 142 additions and 236 deletions
|
|
@ -31,13 +31,13 @@ impl<'a, C: CommandRunner> TlsKey<'a, C> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, C: CommandRunner> fmt::Display for TlsKey<'a, C> {
|
||||
impl<C: CommandRunner> fmt::Display for TlsKey<'_, C> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "TlsKey {}", self.domain)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, C: CommandRunner> Symbol for TlsKey<'a, C> {
|
||||
impl<C: CommandRunner> Symbol for TlsKey<'_, C> {
|
||||
fn target_reached(&self) -> Result<bool, Box<dyn Error>> {
|
||||
if !self.get_path().exists() {
|
||||
return Ok(false);
|
||||
|
|
@ -54,7 +54,7 @@ impl<'a, C: CommandRunner> Symbol for TlsKey<'a, C> {
|
|||
"-text".as_ref(),
|
||||
],
|
||||
)?;
|
||||
Ok(output.starts_with(&format!("Private-Key: ({} bit)\n", self.get_bytes()).as_bytes()))
|
||||
Ok(output.starts_with(format!("Private-Key: ({} bit)\n", self.get_bytes()).as_bytes()))
|
||||
}
|
||||
|
||||
fn execute(&self) -> Result<(), Box<dyn Error>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue