Skip to content

Commit

Permalink
Tune up lints for 1.83 Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Nov 28, 2024
1 parent 66b56e1 commit a7f307a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
clippy::derive_partial_eq_without_eq,
clippy::else_if_without_else,
clippy::empty_drop,
clippy::empty_line_after_outer_attr,
clippy::empty_structs_with_brackets,
clippy::equatable_if_let,
clippy::empty_enum_variants_with_brackets,
Expand All @@ -78,13 +77,11 @@
clippy::fallible_impl_from,
clippy::filetype_is_file,
clippy::float_cmp_const,
clippy::fn_to_numeric_cast,
clippy::fn_to_numeric_cast_any,
clippy::format_push_string,
clippy::get_unwrap,
clippy::if_then_some_else_none,
clippy::imprecise_flops,
clippy::index_refutable_slice,
clippy::infinite_loop,
clippy::iter_on_empty_collections,
clippy::iter_on_single_items,
Expand All @@ -94,7 +91,6 @@
clippy::large_stack_frames,
clippy::let_underscore_untyped,
clippy::lossy_float_literal,
clippy::manual_c_str_literals,
clippy::map_err_ignore,
clippy::mem_forget,
clippy::missing_assert_message,
Expand All @@ -108,6 +104,7 @@
clippy::needless_collect,
clippy::needless_pass_by_ref_mut,
clippy::needless_raw_strings,
clippy::non_zero_suggestions,
clippy::nonstandard_macro_braces,
clippy::option_if_let_else,
clippy::or_fun_call,
Expand All @@ -118,7 +115,6 @@
clippy::print_stderr,
clippy::print_stdout,
clippy::pub_without_shorthand,
clippy::ref_as_ptr,
clippy::rc_buffer,
clippy::rc_mutex,
clippy::read_zero_byte_vec,
Expand Down Expand Up @@ -159,6 +155,7 @@
clippy::unneeded_field_pattern,
clippy::unused_peekable,
clippy::unused_result_ok,
clippy::unused_trait_names,
clippy::unwrap_in_result,
clippy::unwrap_used,
clippy::use_debug,
Expand Down
2 changes: 1 addition & 1 deletion src/recorder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ impl<S, L> Builder<S, L> {
/// );
/// # Ok::<_, prometheus::Error>(())
/// ```
// TODO: Try remove on Rust 1.83 upgrade.
// TODO: Try remove on Rust 1.84 upgrade.
#[expect( // anonymous lifetimes in `impl Trait` are unstable
single_use_lifetimes,
reason = "anonymous lifetimes in `impl Trait` are unstable"
Expand Down

0 comments on commit a7f307a

Please sign in to comment.