Skip to content

Commit

Permalink
Formatting using lsp-mode/emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
tgtakaoka committed Dec 11, 2021
1 parent 4b8aa11 commit b3995f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct Opt {
#[structopt(short = "w", long = "west")]
west: bool,
/// Pin number output with 1 space
#[structopt(long = "pin",)]
#[structopt(long = "pin")]
pin: bool,
/// Pin number output with 2 spaces
#[structopt(long = "pin2")]
Expand Down
14 changes: 6 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ fn main() {
eprintln!("{}", err);
exit(1);
}
Ok(args) => {
match fs::read_to_string(&args.input) {
Ok(content) => content,
Err(_err) => {
eprintln!("can't open {:?}", &args.input);
exit(2);
}
Ok(args) => match fs::read_to_string(&args.input) {
Ok(content) => content,
Err(_err) => {
eprintln!("can't open {:?}", &args.input);
exit(2);
}
}
},
};
let args = args_result.unwrap();

Expand Down

0 comments on commit b3995f9

Please sign in to comment.