From 07e3459fb0eb78c4406ef212b0a3ffc1d3dade9c Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Fri, 12 Jan 2024 14:12:38 +0100 Subject: [PATCH] Address clippy lints on 1.67.0 --- fish-rust/build.rs | 2 ++ fish-rust/src/bin/fish.rs | 4 ++++ fish-rust/src/bin/fish_indent.rs | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/fish-rust/build.rs b/fish-rust/build.rs index f0dfc6b76..885fb94f6 100644 --- a/fish-rust/build.rs +++ b/fish-rust/build.rs @@ -1,3 +1,5 @@ +#![allow(clippy::uninlined_format_args)] + use rsconf::{LinkType, Target}; use std::env; use std::error::Error; diff --git a/fish-rust/src/bin/fish.rs b/fish-rust/src/bin/fish.rs index 73d574d17..9a4d837bb 100644 --- a/fish-rust/src/bin/fish.rs +++ b/fish-rust/src/bin/fish.rs @@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +// Delete this once we require Rust 1.74. +#![allow(unstable_name_collisions)] +#![allow(clippy::uninlined_format_args)] + use fish::{ ast::Ast, builtins::shared::{ diff --git a/fish-rust/src/bin/fish_indent.rs b/fish-rust/src/bin/fish_indent.rs index bd2298993..711dca1d0 100755 --- a/fish-rust/src/bin/fish_indent.rs +++ b/fish-rust/src/bin/fish_indent.rs @@ -1,5 +1,9 @@ //! The fish_indent program. +// Delete this once we require Rust 1.74. +#![allow(unstable_name_collisions)] +#![allow(clippy::uninlined_format_args)] + use std::ffi::{CString, OsStr}; use std::io::{stdin, Read, Write}; use std::os::unix::ffi::OsStrExt;