Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Aug 1, 2023
1 parent e3c8736 commit 509a00f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ fn get_definitions(src_file: &str) -> HashMap<String, Option<String>> {

let first = token.first().unwrap();
let last = token.last().unwrap();
if first.get_kind() == Punctuation && last.get_kind() == Punctuation && first.get_spelling() == "(" && last.get_spelling() == ")" {
if first.get_kind() == Punctuation
&& last.get_kind() == Punctuation
&& first.get_spelling() == "("
&& last.get_spelling() == ")"
{
token.remove(0);
token.remove(token.len() - 1);
}
Expand Down

0 comments on commit 509a00f

Please sign in to comment.