diff --git a/crates/tor-keymgr/src/mgr.rs b/crates/tor-keymgr/src/mgr.rs index 31ec90b88..076b96422 100644 --- a/crates/tor-keymgr/src/mgr.rs +++ b/crates/tor-keymgr/src/mgr.rs @@ -7,18 +7,21 @@ use crate::{EncodableKey, KeySpecifier, Keystore, Result, ToEncodableKey}; use tor_error::internal; +/// A boxed [`Keystore`]. +type BoxedKeystore = Box; + /// A key manager with several [`Keystore`]s. /// /// Note: [`KeyMgr`] is a low-level utility and does not implement caching (the key stores are /// accessed for every read/write). pub struct KeyMgr { /// The underlying persistent stores. - key_stores: Vec>, + key_stores: Vec, } impl KeyMgr { /// Create a new [`KeyMgr`]. - pub fn new(key_stores: Vec>) -> Self { + pub fn new(key_stores: Vec) -> Self { Self { key_stores } }