Remove scope
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
21d411f57b
commit
feea57679d
1 changed files with 5 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue