Skip to content

Commit

Permalink
Allow clippy::ineffective_open_options lint
Browse files Browse the repository at this point in the history
It makes little to no sense for a lint to complain about the presence of
the write(true) call on a std::fs::OpenOptions object, just because
append(true) already implies that. Allow the corresponding lint.
  • Loading branch information
d-e-s-o committed Jul 19, 2024
1 parent ce66853 commit 5168044
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2021-2023 The cargo-http-registry Developers
// Copyright (C) 2021-2024 The cargo-http-registry Developers
// SPDX-License-Identifier: GPL-3.0-or-later

//! A crate providing a cargo registry accessible over HTTP.
Expand All @@ -9,6 +9,8 @@
//!
//! [here]: https://doc.rust-lang.org/cargo/reference/registries.html

#![allow(clippy::ineffective_open_options)]

mod index;
mod publish;
mod serve;
Expand Down
4 changes: 3 additions & 1 deletion tests/end-to-end.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (C) 2021-2023 The cargo-http-registry Developers
// Copyright (C) 2021-2024 The cargo-http-registry Developers
// SPDX-License-Identifier: GPL-3.0-or-later

#![allow(clippy::ineffective_open_options)]

use std::fs::create_dir;
use std::fs::OpenOptions;
use std::io::Write as _;
Expand Down

0 comments on commit 5168044

Please sign in to comment.