Skip to content

Commit c6ba94d

Browse files
committed
lib: update clippy lint name in allow
``` error: lint `clippy::thread_local_initializer_can_be_made_const` has been renamed to `clippy::missing_const_for_thread_local` --> src/lib.rs:57:13 | 57 | #[allow(clippy::thread_local_initializer_can_be_made_const)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::missing_const_for_thread_local` | = note: `-D renamed-and-removed-lints` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(renamed_and_removed_lints)] ```
1 parent 22da4e1 commit c6ba94d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ include!(concat!(env!("OUT_DIR"), "/version.rs"));
5454
// Rust code, we model these thread locals as a stack, so we can always
5555
// restore the previous version.
5656
thread_local! {
57-
#[allow(clippy::thread_local_initializer_can_be_made_const)]
57+
#[allow(clippy::missing_const_for_thread_local)]
5858
pub(crate) static USERDATA: RefCell<Vec<Userdata>> = RefCell::new(Vec::new());
5959
}
6060

0 commit comments

Comments
 (0)