summaryrefslogtreecommitdiff
path: root/src/sshkeys.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sshkeys.rs')
-rw-r--r--src/sshkeys.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sshkeys.rs b/src/sshkeys.rs
index 813a26d..1425cb3 100644
--- a/src/sshkeys.rs
+++ b/src/sshkeys.rs
@@ -85,10 +85,7 @@ pub struct KeyPair {
impl KeyPair {
/// Create pair from string representation.
pub fn from_str(public: String, private: String) -> Self {
- Self {
- private: private,
- public: public,
- }
+ Self { private, public }
}
/// Generate a new key pair of the desired kind.