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

Commit

Permalink
Fix check_init_assert from @EPashkin!
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 28, 2018
1 parent 0b8047a commit a9926f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_init_asserts
Expand Up @@ -5,7 +5,7 @@ BEGIN { $e = 0 }
while (/^(\N*)\V*fn\s+(\w+)\s*(<[^(]+>)?\s*(\([^{;]+)\{\N*\n^(\N*)$/gms) {
($modifiers, $name, $signature, $first_line) = ($1, $2, $4, $5);
unless ($modifiers =~ /^\s*(\/\/|(pub )?unsafe)/ ||
$signature =~ /^\((&(\x27\w+ )?)?(mut )?self\b/ ||
$signature =~ /^\(\s*(&(\x27\w+ )?)?(mut )?self\b/ ||
$signature =~ /^\(\)/ ||
$first_line =~ /^\s*(
assert_initialized_main_thread |
Expand Down

0 comments on commit a9926f0

Please sign in to comment.