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,16 @@ 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
+
as_pointer_underscore = "warn"# Checks for the usage of as *const _ or as *mut _ conversion using inferred type.
137
136
as_underscore = "warn"# Checks for the usage of as _ conversion using inferred type.
138
137
big_endian_bytes = "warn"# Checks for the usage of the to_be_bytes method and/or the function from_be_bytes.
139
138
cfg_not_test = "warn"# Checks for usage of cfg that excludes code from test builds. (i.e., #[cfg(not(test))])
140
139
dbg_macro = "warn"# Checks for usage of the dbg! macro.
141
140
decimal_literal_representation = "warn"# Warns if there is a better representation for a numeric literal.
141
+
doc_include_without_cfg = "warn"# Checks if included files in doc comments are included only for cfg(doc).
142
142
error_impl_error = "warn"# Checks for types named Error that implement Error.
143
143
empty_enum_variants_with_brackets = "warn"# Finds enum variants without fields that are declared with empty brackets.
144
144
exit = "warn"# Detects calls to the exit() function which terminates the program.
@@ -162,17 +162,21 @@ large_include_file = "warn" # Checks for the inclusion of large f
162
162
little_endian_bytes = "warn"# Checks for the usage of the to_le_bytes method and/or the function from_le_bytes.
163
163
lossy_float_literal = "warn"# Checks for whole number float literals that cannot be represented as the underlying type without loss.
164
164
map_err_ignore = "warn"# Checks for instances of map_err(|_| Some::Enum)
165
+
map_with_unused_argument_over_range = "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
166
mem_forget = "warn"# Checks for usage of std::mem::forget(t) where t is Drop or has a field that implements Drop.
166
167
missing_assert_message = "warn"# Checks assertions without a custom panic message.
167
168
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
169
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
170
modulo_arithmetic = "warn"# Checks for modulo arithmetic.
170
171
multiple_inherent_impl = "warn"# Checks for multiple inherent implementations of a struct
171
172
mutex_atomic = "warn"# Checks for usage of Mutex<X> where an atomic will do.
173
+
mutex_integer = "warn"# Checks for usage of Mutex<X> where X is an integral type.
172
174
needless_raw_strings = "warn"# Checks for raw string literals where a string literal can be used instead.
175
+
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
176
panic = "warn"# Checks for usage of panic!.
174
177
partial_pub_fields = "warn"# Checks whether partial fields of a struct are public.
175
178
pathbuf_init_then_push = "warn"# Checks for calls to push immediately after creating a new PathBuf.
179
+
precedence_bits = "warn"# Checks for bit shifting operations combined with bit masking/combining operators and suggest using parentheses.
176
180
print_stdout = "warn"# Checks for printing on stdout. The purpose of this lint is to catch debugging remnants.
177
181
print_stderr = "warn"# Checks for printing on stderr. The purpose of this lint is to catch debugging remnants.
178
182
rc_buffer = "warn"# Checks for Rc<T> and Arc<T> when T is a mutable buffer type such as String or Vec.
@@ -201,6 +205,7 @@ unnecessary_safety_doc = "warn" # Checks for the doc comments of publ
201
205
unnecessary_self_imports = "warn"# Checks for imports ending in ::{self}.
202
206
unreachable = "warn"# Checks for usage of unreachable!.
203
207
unused_result_ok = "warn"# Checks for calls to Result::ok() without using the returned Option.
208
+
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
209
unwrap_used = "warn"# Checks for .unwrap() or .unwrap_err() calls on Results and .unwrap() call on Options.
205
210
use_debug = "warn"# Checks for usage of Debug formatting. The purpose of this lint is to catch debugging remnants.
206
211
verbose_file_reads = "warn"# Checks for usage of File::read_to_end and File::read_to_string.
0 commit comments