@@ -105,6 +105,7 @@ jobs:
105
105
106
106
- name : cargo check
107
107
working-directory : ./${{ matrix.project }}
108
+ continue-on-error : true
108
109
run : cargo check
109
110
110
111
- name : git diff for .rs files
@@ -135,7 +136,7 @@ jobs:
135
136
into_iter_count=0
136
137
137
138
# Iterate over all .rs files in the current directory and subdirectories
138
- find . -type f -name '*.rs' | while read -r file; do
139
+ while read -r file; do
139
140
echo checking $file
140
141
# Count occurrences of iterator methods in the current file
141
142
iter_count_in_file=$(grep -o '\.iter()' "$file" | wc -l)
@@ -146,7 +147,7 @@ jobs:
146
147
((iter_count += iter_count_in_file))
147
148
((iter_mut_count += iter_mut_count_in_file))
148
149
((into_iter_count += into_iter_count_in_file))
149
- done
150
+ done < <(find . -type f -name '*.rs')
150
151
151
152
# Print results
152
153
echo ".iter() occurrences: $iter_count"
@@ -163,7 +164,7 @@ jobs:
163
164
par_iter_mut_count=0
164
165
165
166
# Iterate over all .rs files in the current directory and subdirectories
166
- find . -type f -name '*.rs' | while read -r file; do
167
+ while read -r file; do
167
168
echo checking $file
168
169
# Count occurrences in the current file
169
170
par_iter_count_in_file=$(grep -o '\.par_iter()' "$file" | wc -l)
@@ -174,7 +175,7 @@ jobs:
174
175
((par_iter_count += par_iter_count_in_file))
175
176
((into_par_iter_count += into_par_iter_count_in_file))
176
177
((par_iter_mut_count += par_iter_mut_count_in_file))
177
- done
178
+ done < <(find . -type f -name '*.rs')
178
179
179
180
# Print results
180
181
echo ".par_iter() occurrences: $par_iter_count"
0 commit comments