Minify match

This commit is contained in:
Matthias Beyer 2017-06-03 14:43:46 +02:00
parent d3d6e830d7
commit 0f47c4afc7

View file

@ -394,11 +394,9 @@ impl<'a> Runtime<'a> {
self.cli() self.cli()
.value_of("editor") .value_of("editor")
.map(String::from) .map(String::from)
.or({ .or(match self.configuration {
match self.configuration { Some(ref c) => c.editor().cloned(),
Some(ref c) => c.editor().cloned(), _ => None,
_ => None,
}
}) })
.or(env::var("EDITOR").ok()) .or(env::var("EDITOR").ok())
.map(Command::new) .map(Command::new)