Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/shame_wgpu/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! shame wgpu integration
//!
//! bind-group and pipeline glue code
#![allow(mismatched_lifetime_syntaxes)]
pub use shame::*;
pub mod bind_group;
pub mod binding;
Expand Down
2 changes: 1 addition & 1 deletion shame/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//#![warn(clippy::cast_lossless)]
#![deny(missing_docs)]
#![allow(clippy::match_like_matches_macro, clippy::diverging_sub_expression)]
#![allow(unused)]
#![allow(unused, mismatched_lifetime_syntaxes)]

mod backend;
mod common;
Expand Down
6 changes: 4 additions & 2 deletions shame_derive/src/derive_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub fn impl_for_struct(
Ok(t) => t,
Err(actual_len) => {
let any = push_wrong_amount_of_args_error(actual_len, EXPECTED_LEN, #re::call_info!());
[any; EXPECTED_LEN]
std::array::from_fn(|_| any)
}
};

Expand Down Expand Up @@ -533,7 +533,9 @@ pub fn impl_for_struct(
Ok(t) => t,
Err(actual_len) => {
let any = push_wrong_amount_of_args_error(actual_len, EXPECTED_LEN, #re::call_info!());
[any; EXPECTED_LEN]
// rust 1.90.0 breaking change workaround.
// `[any; EXPECTED_LEN]` no longer compiles
std::array::from_fn(|_| any)
}
};
Self {
Expand Down
Loading