mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
refactor(hal): remove unneeded trivial_casts suppr.
This commit is contained in:
@@ -47,7 +47,6 @@ impl super::Adapter {
|
||||
&self.raw
|
||||
}
|
||||
|
||||
#[allow(trivial_casts)]
|
||||
pub(super) fn expose(
|
||||
adapter: d3d12::DxgiAdapter,
|
||||
library: &Arc<d3d12::D3D12Lib>,
|
||||
@@ -554,7 +553,6 @@ impl crate::Adapter for super::Adapter {
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(trivial_casts)]
|
||||
unsafe fn texture_format_capabilities(
|
||||
&self,
|
||||
format: wgt::TextureFormat,
|
||||
|
||||
@@ -75,7 +75,6 @@ impl crate::Instance for super::Instance {
|
||||
};
|
||||
|
||||
let mut supports_allow_tearing = false;
|
||||
#[allow(trivial_casts)]
|
||||
if let Some(factory5) = factory.as_factory5() {
|
||||
let mut allow_tearing: minwindef::BOOL = minwindef::FALSE;
|
||||
let hr = unsafe {
|
||||
|
||||
@@ -1241,7 +1241,6 @@ impl crate::Surface for Surface {
|
||||
None => {
|
||||
let mut wl_window = None;
|
||||
let (mut temp_xlib_handle, mut temp_xcb_handle);
|
||||
#[allow(trivial_casts)]
|
||||
let native_window_ptr = match (self.wsi.kind, self.raw_window_handle) {
|
||||
(WindowKind::Unknown | WindowKind::X11, Rwh::Xlib(handle)) => {
|
||||
temp_xlib_handle = handle.window;
|
||||
|
||||
@@ -1099,7 +1099,6 @@ impl PhysicalDeviceProperties {
|
||||
}
|
||||
|
||||
impl super::InstanceShared {
|
||||
#[allow(trivial_casts)] // false positives
|
||||
fn inspect(
|
||||
&self,
|
||||
phd: vk::PhysicalDevice,
|
||||
|
||||
Reference in New Issue
Block a user