Skip to content

Commit 45ce0ce

Browse files
committed
2024
1 parent 54d78b9 commit 45ce0ce

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

Cargo.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ members = [
88
"xtask",
99
]
1010
exclude = ["services/benchers", "services/cargo-bencher"]
11-
resolver = "2"
11+
resolver = "3"
1212

1313
[workspace.package]
1414
homepage = "https://bencher.dev"
1515
version = "0.5.1"
1616
authors = ["Everett Pompeii <[email protected]>"]
17-
edition = "2021"
17+
edition = "2024"
1818
license-file = "LICENSE.md"
1919

2020
[workspace.dependencies]
@@ -111,7 +111,6 @@ single_use_lifetimes = "warn"
111111
trivial_casts = "warn"
112112
trivial_numeric_casts = "warn"
113113
unsafe_code = "warn"
114-
unsafe_op_in_unsafe_fn = "warn"
115114
unused_crate_dependencies = "warn"
116115
unused_import_braces = "warn"
117116
unused_lifetimes = "warn"
@@ -130,15 +129,16 @@ multiple_crate_versions = "allow" # Checks to see if multiple versions o
130129
pedantic = { level = "warn", priority = -1 }
131130
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.
132131
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.
134132
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.
135133
# restriction
136134
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.
137136
as_underscore = "warn" # Checks for the usage of as _ conversion using inferred type.
138137
big_endian_bytes = "warn" # Checks for the usage of the to_be_bytes method and/or the function from_be_bytes.
139138
cfg_not_test = "warn" # Checks for usage of cfg that excludes code from test builds. (i.e., #[cfg(not(test))])
140139
dbg_macro = "warn" # Checks for usage of the dbg! macro.
141140
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).
142142
error_impl_error = "warn" # Checks for types named Error that implement Error.
143143
empty_enum_variants_with_brackets = "warn" # Finds enum variants without fields that are declared with empty brackets.
144144
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
162162
little_endian_bytes = "warn" # Checks for the usage of the to_le_bytes method and/or the function from_le_bytes.
163163
lossy_float_literal = "warn" # Checks for whole number float literals that cannot be represented as the underlying type without loss.
164164
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.
165166
mem_forget = "warn" # Checks for usage of std::mem::forget(t) where t is Drop or has a field that implements Drop.
166167
missing_assert_message = "warn" # Checks assertions without a custom panic message.
167168
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.
168169
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.
169170
modulo_arithmetic = "warn" # Checks for modulo arithmetic.
170171
multiple_inherent_impl = "warn" # Checks for multiple inherent implementations of a struct
171172
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.
172174
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.
173176
panic = "warn" # Checks for usage of panic!.
174177
partial_pub_fields = "warn" # Checks whether partial fields of a struct are public.
175178
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.
176180
print_stdout = "warn" # Checks for printing on stdout. The purpose of this lint is to catch debugging remnants.
177181
print_stderr = "warn" # Checks for printing on stderr. The purpose of this lint is to catch debugging remnants.
178182
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
201205
unnecessary_self_imports = "warn" # Checks for imports ending in ::{self}.
202206
unreachable = "warn" # Checks for usage of unreachable!.
203207
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.
204209
unwrap_used = "warn" # Checks for .unwrap() or .unwrap_err() calls on Results and .unwrap() call on Options.
205210
use_debug = "warn" # Checks for usage of Debug formatting. The purpose of this lint is to catch debugging remnants.
206211
verbose_file_reads = "warn" # Checks for usage of File::read_to_end and File::read_to_string.

clippy.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
absolute-paths-allowed-crates = ["diesel"]
44
absolute-paths-max-segments = 3
55

6-
allow-unwrap-in-tests = true
6+
allow-dbg-in-tests = true
77
allow-expect-in-tests = true
8+
allow-indexing-slicing-in-tests = true
9+
allow-print-in-tests = true
10+
allow-unwrap-in-tests = true

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file
22
[toolchain]
3-
channel = "1.82.0"
3+
channel = "1.86.0"
44
profile = "default"

0 commit comments

Comments
 (0)