Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Fix doc comment warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fmckeogh committed Apr 3, 2024
1 parent a48b6e5 commit 80df080
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion borealis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ pub fn run<I: AsRef<Path>, O: AsRef<Path>>(input: I, output: O, standalone: bool

let syntax_tree = syn::parse_file(&tokens.to_string()).unwrap();
let formatted = prettyplease::unparse(&syntax_tree);
let fixed_comments = formatted.replace("///", "//");

File::create(output)
.unwrap()
.write_all(formatted.as_bytes())
.write_all(fixed_comments.as_bytes())
.unwrap();
}

Expand Down

0 comments on commit 80df080

Please sign in to comment.