Skip to content

Commit

Permalink
Tune lints for 1.81 Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Sep 6, 2024
1 parent 0f46efa commit 7072878
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
#![forbid(non_ascii_idents, unsafe_code)]
#![warn(
clippy::absolute_paths,
clippy::allow_attributes,
clippy::allow_attributes_without_reason,
clippy::as_conversions,
clippy::as_ptr_cast_mut,
clippy::assertions_on_result_states,
clippy::branches_sharing_code,
clippy::cfg_not_test,
clippy::clear_with_drain,
clippy::clone_on_ref_ptr,
clippy::collection_is_never_read,
Expand All @@ -32,6 +35,7 @@
clippy::exit,
clippy::expect_used,
clippy::fallible_impl_from,
clippy::field_scoped_visibility_modifiers,
clippy::filetype_is_file,
clippy::float_cmp_const,
clippy::fn_to_numeric_cast,
Expand Down Expand Up @@ -84,6 +88,7 @@
clippy::rest_pat_in_fully_bound_structs,
clippy::same_name_method,
clippy::semicolon_inside_block,
clippy::set_contains_or_insert,
clippy::shadow_unrelated,
clippy::significant_drop_in_scrutinee,
clippy::significant_drop_tightening,
Expand Down
2 changes: 1 addition & 1 deletion src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Trace {
/// Creates and returns new [`Trace`] from the given [`Frame`]s.
#[inline]
#[must_use]
pub fn new(frames: Vec<Frame>) -> Self {
pub const fn new(frames: Vec<Frame>) -> Self {
Self(frames)
}
}
Expand Down

0 comments on commit 7072878

Please sign in to comment.