Remove scope

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2018-11-06 19:51:23 +01:00
parent 21d411f57b
commit feea57679d

View file

@ -137,13 +137,11 @@ impl<'a> Runtime<'a> {
Store::new(storepath, &config)
};
store_result.map(|store| {
Runtime {
cli_matches: matches,
configuration: config,
rtp: rtp,
store: store,
}
store_result.map(|store| Runtime {
cli_matches: matches,
configuration: config,
rtp: rtp,
store: store,
})
.context(err_msg("Cannot instantiate runtime"))
.map_err(Error::from)