summaryrefslogtreecommitdiffstats
path: root/store/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'store/src/lib.rs')
-rw-r--r--store/src/lib.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/store/src/lib.rs b/store/src/lib.rs
index 1156a5ad..dc7cb9a5 100644
--- a/store/src/lib.rs
+++ b/store/src/lib.rs
@@ -123,11 +123,7 @@ impl Store {
let core = Core::new()?;
let handle = core.handle();
- let mut rpc_system
- = match descriptor.connect(&handle) {
- Ok(r) => r,
- Err(e) => return Err(e.into()),
- };
+ let mut rpc_system = descriptor.connect(&handle)?;
let client: node::Client = rpc_system.bootstrap(Side::Server);
handle.spawn(rpc_system.map_err(|_e| ()));