diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-07-24 13:15:29 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-07-24 13:15:29 +0300 |
commit | c6087f4a4f66582f8b07fee5a0900c4dde2cb57b (patch) | |
tree | 8937e159d10b571c42193cc299fb524390a97df5 /src | |
parent | ad6c5af61fc66430a9f46f59c8e1e6737d56481e (diff) | |
download | vmadm-c6087f4a4f66582f8b07fee5a0900c4dde2cb57b.tar.gz |
refactor: apply fixes suggested by clippy
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r-- | src/sshkeys.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sshkeys.rs b/src/sshkeys.rs index b6a5dd9..57063d2 100644 --- a/src/sshkeys.rs +++ b/src/sshkeys.rs @@ -105,7 +105,7 @@ pub struct KeyPair { impl KeyPair { /// Create pair from string representation. pub fn from_str(public: String, private: String) -> Self { - Self { private, public } + Self { public, private } } /// Generate a new key pair of the desired kind. @@ -203,7 +203,7 @@ impl CaKey { return Err(KeyError::CertError(stderr)); } - Ok(read_string(&cert)?) + read_string(&cert) } } |