From 76548c84ab459691ac37e77998ec3e1da9ab17b7 Mon Sep 17 00:00:00 2001 From: Allan Zhang Date: Fri, 15 Mar 2024 02:39:20 -0400 Subject: [PATCH] Add Clippy exceptions This is primarily to pass CI. The exception added on `find` is because it is a candidate for replacement with a non-recursive version. --- dotenv/src/find.rs | 1 + dotenv/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dotenv/src/find.rs b/dotenv/src/find.rs index 6cf0374..d6a60aa 100644 --- a/dotenv/src/find.rs +++ b/dotenv/src/find.rs @@ -34,6 +34,7 @@ impl<'a> Finder<'a> { } /// Searches for `filename` in `directory` and parent directories until found or root is reached. +#[allow(clippy::option_if_let_else)] pub fn find(directory: &Path, filename: &Path) -> Result { let candidate = directory.join(filename); diff --git a/dotenv/src/lib.rs b/dotenv/src/lib.rs index 386226f..f12629f 100644 --- a/dotenv/src/lib.rs +++ b/dotenv/src/lib.rs @@ -1,5 +1,5 @@ #![warn(clippy::all, clippy::pedantic, clippy::nursery, clippy::cargo)] -#![allow(clippy::missing_errors_doc)] +#![allow(clippy::missing_errors_doc, clippy::too_many_lines)] //! [`dotenv`]: https://crates.io/crates/dotenv //! A well-maintained fork of the [`dotenv`] crate