diff options
author | Stuart Stock <stuart@int08h.com> | 2019-08-11 18:09:26 -0500 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2019-08-11 18:09:26 -0500 |
commit | 266f1adc99f780edab22096ed13f624bfdcb6674 (patch) | |
tree | 8185063cc9653105067c1e9caaf2495c289054bc /src/key | |
parent | a0165c01946efbedd2f274bad02a33ab52c01e32 (diff) | |
download | roughenough-266f1adc99f780edab22096ed13f624bfdcb6674.zip |
Address clippy lints
* More consistent use of `dyn`
* Add default implementations
* Misc clippy changes
Diffstat (limited to 'src/key')
-rw-r--r-- | src/key/online.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/key/online.rs b/src/key/online.rs index 0c0c80f..a78ac91 100644 --- a/src/key/online.rs +++ b/src/key/online.rs @@ -31,6 +31,12 @@ pub struct OnlineKey { signer: Signer, } +impl Default for OnlineKey { + fn default() -> Self { + Self::new() + } +} + impl OnlineKey { pub fn new() -> Self { OnlineKey { |