mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
fac49ee97c
`std::mem::{size,align}_of{,_val}` was added to `std::prelude` in Rust 1.80; see [`rust`#123168](https://github.com/rust-lang/rust/pull/123168/). However, we don't have an MSRV at 1.80 or higher yet. So, let's work around it by importing these items fully. Since neither `clippy` nor `rustc` lint against shadowed `prelude` items yet (see also a [proposed `clippy` lint] for such), that lets us remove the explicit `std::mem::*` imports later at our leisure. [proposed `clippy` lint]: https://github.com/rust-lang/rust-clippy/issues/8439 |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml | ||
LICENSE.APACHE | ||
LICENSE.MIT |