From a9926f0851fcdadf6acf9ff5b2963841a0433c92 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 28 Oct 2018 11:19:56 +0100 Subject: [PATCH] Fix check_init_assert from @EPashkin! --- check_init_asserts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_init_asserts b/check_init_asserts index 09f3b5b149..96535f52b1 100755 --- a/check_init_asserts +++ b/check_init_asserts @@ -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 |