Skip to content

Commit

Permalink
Make clippy in rust 1.77 pass
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Mar 22, 2024
1 parent e6007e2 commit b229e25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ unused_lifetimes = "forbid"
[lints.clippy]
await_holding_lock = "deny"
branches_sharing_code = "deny"
cargo = "deny"
cargo_common_metadata = "deny"
cast_lossless = "deny"
char_lit_as_u8 = "deny"
checked_conversions = "deny"
Expand Down Expand Up @@ -134,6 +134,7 @@ match_wild_err_arm = "deny"
# mem_forget = "deny"
mismatched_target_os = "deny"
missing_enforced_import_renames = "deny"
multiple_crate_versions = "allow"
mod_module_files = "deny"
mut_mut = "deny"
mutex_integer = "deny"
Expand Down
24 changes: 0 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,6 @@ CLIPPY_TARGETS = --all-targets \
--target x86_64-linux-android \
--target x86_64-pc-windows-msvc \
--target x86_64-unknown-linux-gnu
CLIPPY_PARAMS = -- \
-W clippy::cargo \
-W clippy::cast_lossless \
-W clippy::dbg_macro \
-W clippy::expect_used \
-W clippy::manual_filter_map \
-W clippy::if_not_else \
-W clippy::items_after_statements \
-W clippy::large_stack_arrays \
-W clippy::linkedlist \
-W clippy::match_same_arms \
-W clippy::option_if_let_else \
-W clippy::redundant_closure_for_method_calls \
-W clippy::needless_continue \
-W clippy::needless_pass_by_value \
-W clippy::semicolon_if_nothing_returned \
-W clippy::similar_names \
-W clippy::single_match_else \
-W clippy::trivially_copy_pass_by_ref \
-W clippy::unreadable-literal \
-W clippy::unseparated-literal-suffix \
-W clippy::unnested_or_patterns \
-A clippy::wildcard_dependencies \
-D warnings

ifneq ($(OS),Windows_NT)
UNAME_S := $(shell uname -s)
Expand Down
2 changes: 1 addition & 1 deletion src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub enum CustomWinitEvent {
pub(crate) type EventTypeUsed = Event<CustomWinitEvent>;

thread_local! {
pub static EVENT_LOOP_PROXY: Mutex<Option<EventLoopProxy<CustomWinitEvent>>> = Mutex::new(None);
pub static EVENT_LOOP_PROXY: Mutex<Option<EventLoopProxy<CustomWinitEvent>>> = const { Mutex::new(None) };
}

#[wasm_bindgen]
Expand Down

0 comments on commit b229e25

Please sign in to comment.