Skip to content

Commit 4f518f0

Browse files
chore: add infinite_loop clippy style and readability lint (#981)
> Checks for infinite loops in a function where the return type is not ! and lint accordingly. > Making the return type ! serves as documentation that the function does not return. If the function is not intended to loop infinitely, then this lint may detect a bug.
1 parent 0141178 commit 4f518f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ semicolon_outside_block = "warn" # With semicolon-outside-block-ignore-multiline
121121
clone_on_ref_ptr = "warn"
122122
cloned_instead_of_copied = "warn"
123123
pub_without_shorthand = "warn"
124+
infinite_loop = "warn"
124125
empty_enum_variants_with_brackets = "warn"
125126
deref_by_slicing = "warn"
126127
multiple_inherent_impl = "warn"

0 commit comments

Comments
 (0)