Skip to content

Commit

Permalink
#24: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 5, 2022
1 parent ffe9ec7 commit e74609c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bin/reo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ pub fn main() {
match matches.subcommand() {
Some(("dataize", subs)) => {
let object = subs.get_one::<String>("object").unwrap();
let home = matches.value_of("dir").unwrap_or_else(
|| if matches.contains_id("eoc") {
let home = matches.value_of("dir").unwrap_or_else(|| {
if matches.contains_id("eoc") {
debug!("Running in eoc-compatible mode");
".eoc/gmi"
} else {
"."
}
);
});
debug!("Home requested as '{}'", home);
let full_home = fs::canonicalize(home)
.context(format!("Can't access '{}'", home))
Expand Down

0 comments on commit e74609c

Please sign in to comment.