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::new(storepath, &config)
}; };
store_result.map(|store| { store_result.map(|store| Runtime {
Runtime { cli_matches: matches,
cli_matches: matches, configuration: config,
configuration: config, rtp: rtp,
rtp: rtp, store: store,
store: store,
}
}) })
.context(err_msg("Cannot instantiate runtime")) .context(err_msg("Cannot instantiate runtime"))
.map_err(Error::from) .map_err(Error::from)