From b0a6426e2abd290f7b6132f679ea892379f9634b Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Thu, 21 Jul 2022 08:50:46 -0700 Subject: [PATCH] Silence clippy false positives on `objc::msg_send` calls. The `let_unit_value` lint is new in Rust 1.62. https://github.com/rust-lang/rust-clippy/pull/9056 might quiet it next release, though, so this may or may not be worth doing. --- wgpu-hal/src/metal/surface.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wgpu-hal/src/metal/surface.rs b/wgpu-hal/src/metal/surface.rs index bac3bc6871..be10bf7bb6 100644 --- a/wgpu-hal/src/metal/surface.rs +++ b/wgpu-hal/src/metal/surface.rs @@ -1,3 +1,5 @@ +#![allow(clippy::let_unit_value)] // `let () =` being used to constrain result type + use std::{mem, os::raw::c_void, ptr::NonNull, sync::Once, thread}; use core_graphics_types::{