diff options
author | Katharina Fey <kookie@spacekookie.de> | 2018-06-22 21:17:51 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2018-06-22 21:17:51 +0200 |
commit | dc7d3725547c483b0357c7c07a68c0814f046f87 (patch) | |
tree | cad3c8b6e6ef2160e74f21d50a56847bbad24715 /lockchain-http/src/state.rs | |
parent | 08adf3d4fe66991e1c01e012c78c65898367bda9 (diff) |
Bumping all dependencies
Diffstat (limited to 'lockchain-http/src/state.rs')
-rw-r--r-- | lockchain-http/src/state.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lockchain-http/src/state.rs b/lockchain-http/src/state.rs index 72a34af..a1a67d3 100644 --- a/lockchain-http/src/state.rs +++ b/lockchain-http/src/state.rs @@ -57,6 +57,10 @@ where pub fn add_vault(&mut self, name: &str, vault: V) { self.vaults.insert(name.into(), Some(vault)); } + + pub fn get_vault(&mut self, name: &str) -> Option<&mut V> { + self.vaults.get_mut(name) + } } impl<B, V> Default for ApiState<B, V> |