Skip to content

Commit

Permalink
Add Clippy exceptions
Browse files Browse the repository at this point in the history
This is primarily to pass CI.

The exception added on `find` is because it is a candidate for
replacement with a non-recursive version.
  • Loading branch information
allan2 committed Mar 15, 2024
1 parent 405689a commit 76548c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dotenv/src/find.rs
Expand Up @@ -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<PathBuf> {
let candidate = directory.join(filename);

Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 76548c8

Please sign in to comment.