From f6234fe994e39e2d34eb2949aee4bc3540d41d89 Mon Sep 17 00:00:00 2001 From: gpwclark Date: Wed, 3 Apr 2024 13:50:53 -0400 Subject: [PATCH] clippy --- bridge_macros/src/lib.rs | 2 ++ shell/src/platform/unix.rs | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bridge_macros/src/lib.rs b/bridge_macros/src/lib.rs index e80b80ca14..81de1d8f6a 100644 --- a/bridge_macros/src/lib.rs +++ b/bridge_macros/src/lib.rs @@ -49,6 +49,8 @@ enum SupportedGenericReturnTypes { } enum RustType { + // TypeBareFn is a syn type that is useful to leave attached for debugging purposes. + #[allow(dead_code)] BareFn(TypeBareFn, Span), Path(TypePath, Span), Tuple(TypeTuple, Span), diff --git a/shell/src/platform/unix.rs b/shell/src/platform/unix.rs index ad480dfc47..2cc87c364b 100644 --- a/shell/src/platform/unix.rs +++ b/shell/src/platform/unix.rs @@ -1,5 +1,4 @@ use std::collections::HashSet; -use std::convert::TryInto; use std::ffi::{c_char, CString, OsStr, OsString}; use std::fmt::{Display, Formatter}; use std::fs::File; @@ -235,7 +234,7 @@ impl Platform for Sys { Err(e) => { panic!("the CLOEXEC pipe failed: {:?}", e) } - Ok(..) => { + Ok(_n) => { // pipe I/O up to PIPE_BUF bytes should be atomic panic!("short read on the CLOEXEC pipe") }