Skip to content

Commit 38117c9

Browse files
committed
chore: resolve and suppress new warnings
1 parent 8673305 commit 38117c9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ unwrap_used = { level = "allow", priority = 1 }
166166
use_debug = { level = "allow", priority = 1 }
167167
used_underscore_items = { level = "allow", priority = 1 }
168168
wildcard_enum_match_arm = { level = "allow", priority = 1 }
169+
needless_for_each = { level = "allow", priority = 1 }
169170
# style-lints:
170171
doc_lazy_continuation = { level = "allow", priority = 1 }
171172
doc_overindented_list_items = { level = "allow", priority = 1 }

src/math/prime_check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pub fn prime_check(num: usize) -> bool {
2-
if (num > 1) & (num < 4) {
2+
if (num > 1) && (num < 4) {
33
return true;
44
} else if (num < 2) || (num.is_multiple_of(2)) {
55
return false;

0 commit comments

Comments
 (0)