You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -130,15 +129,17 @@ multiple_crate_versions = "allow" # Checks to see if multiple versions o
130
129
pedantic = { level = "warn", priority = -1 }
131
130
missing_errors_doc = "allow"# Checks the doc comments of publicly visible functions that return a Result type and warns if there is no # Errors section.
132
131
missing_panics_doc = "allow"# Checks the doc comments of publicly visible functions that may panic and warns if there is no # Panics section.
133
-
module_name_repetitions = "allow"# Detects type names that are prefixed or suffixed by the containing module’s name.
134
132
must_use_candidate = "allow"# Checks for public functions that have no #[must_use] attribute, but return something not already marked must-use, have no mutable arg and mutate no statics.
135
133
# restriction
136
134
absolute_paths = "warn"# Checks for usage of items through absolute paths, like std::env::current_dir.
135
+
allow_attributes = "warn"# Checks for usage of the #[allow] attribute and suggests replacing it with the #[expect]
136
+
as_pointer_underscore = "warn"# Checks for the usage of as *const _ or as *mut _ conversion using inferred type.
137
137
as_underscore = "warn"# Checks for the usage of as _ conversion using inferred type.
138
138
big_endian_bytes = "warn"# Checks for the usage of the to_be_bytes method and/or the function from_be_bytes.
139
139
cfg_not_test = "warn"# Checks for usage of cfg that excludes code from test builds. (i.e., #[cfg(not(test))])
140
140
dbg_macro = "warn"# Checks for usage of the dbg! macro.
141
141
decimal_literal_representation = "warn"# Warns if there is a better representation for a numeric literal.
142
+
doc_include_without_cfg = "warn"# Checks if included files in doc comments are included only for cfg(doc).
142
143
error_impl_error = "warn"# Checks for types named Error that implement Error.
143
144
empty_enum_variants_with_brackets = "warn"# Finds enum variants without fields that are declared with empty brackets.
144
145
exit = "warn"# Detects calls to the exit() function which terminates the program.
@@ -162,17 +163,21 @@ large_include_file = "warn" # Checks for the inclusion of large f
162
163
little_endian_bytes = "warn"# Checks for the usage of the to_le_bytes method and/or the function from_le_bytes.
163
164
lossy_float_literal = "warn"# Checks for whole number float literals that cannot be represented as the underlying type without loss.
164
165
map_err_ignore = "warn"# Checks for instances of map_err(|_| Some::Enum)
166
+
map_with_unused_argument_over_ranges = "warn"# Checks for Iterator::map over ranges without using the parameter which could be more clearly expressed using std::iter::repeat(...).take(...) or std::iter::repeat_n.
165
167
mem_forget = "warn"# Checks for usage of std::mem::forget(t) where t is Drop or has a field that implements Drop.
166
168
missing_assert_message = "warn"# Checks assertions without a custom panic message.
167
169
missing_asserts_for_indexing = "warn"# Checks for repeated slice indexing without asserting beforehand that the length is greater than the largest index used to index into the slice.
168
170
mixed_read_write_in_expression = "warn"# Checks for a read and a write to the same variable where whether the read occurs before or after the write depends on the evaluation order of sub-expressions.
169
171
modulo_arithmetic = "warn"# Checks for modulo arithmetic.
170
172
multiple_inherent_impl = "warn"# Checks for multiple inherent implementations of a struct
171
173
mutex_atomic = "warn"# Checks for usage of Mutex<X> where an atomic will do.
174
+
mutex_integer = "warn"# Checks for usage of Mutex<X> where X is an integral type.
172
175
needless_raw_strings = "warn"# Checks for raw string literals where a string literal can be used instead.
176
+
non_zero_suggestions = "warn"# Checks for conversions from NonZero types to regular integer types, and suggests using NonZero types for the target as well.
173
177
panic = "warn"# Checks for usage of panic!.
174
178
partial_pub_fields = "warn"# Checks whether partial fields of a struct are public.
175
179
pathbuf_init_then_push = "warn"# Checks for calls to push immediately after creating a new PathBuf.
180
+
precedence_bits = "warn"# Checks for bit shifting operations combined with bit masking/combining operators and suggest using parentheses.
176
181
print_stdout = "warn"# Checks for printing on stdout. The purpose of this lint is to catch debugging remnants.
177
182
print_stderr = "warn"# Checks for printing on stderr. The purpose of this lint is to catch debugging remnants.
178
183
rc_buffer = "warn"# Checks for Rc<T> and Arc<T> when T is a mutable buffer type such as String or Vec.
@@ -201,6 +206,7 @@ unnecessary_safety_doc = "warn" # Checks for the doc comments of publ
201
206
unnecessary_self_imports = "warn"# Checks for imports ending in ::{self}.
202
207
unreachable = "warn"# Checks for usage of unreachable!.
203
208
unused_result_ok = "warn"# Checks for calls to Result::ok() without using the returned Option.
209
+
unused_trait_names = "warn"# Checks for `use Trait` where the Trait is only used for its methods and not referenced by a path directly.
204
210
unwrap_used = "warn"# Checks for .unwrap() or .unwrap_err() calls on Results and .unwrap() call on Options.
205
211
use_debug = "warn"# Checks for usage of Debug formatting. The purpose of this lint is to catch debugging remnants.
206
212
verbose_file_reads = "warn"# Checks for usage of File::read_to_end and File::read_to_string.
0 commit comments