refactor(rust): misc fixes & tidying
This commit is contained in:
parent
5825e24d56
commit
abc7910381
23 changed files with 137 additions and 127 deletions
|
|
@ -870,8 +870,7 @@ fn run() -> Result<()> {
|
|||
let open_in_browser = !playground_options.quiet;
|
||||
let grammar_path = playground_options
|
||||
.grammar_path
|
||||
.map(PathBuf::from)
|
||||
.unwrap_or(current_dir);
|
||||
.map_or(current_dir, PathBuf::from);
|
||||
playground::serve(&grammar_path, open_in_browser)?;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue