lint: allow disallow_methods

This commit is contained in:
Weihang Lo 2023-09-12 11:09:07 +08:00
parent 1539b3dfc1
commit 870f9ea7b3
No known key found for this signature in database
GPG key ID: D7DBF189825E82E7
10 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,5 @@
#![allow(clippy::disallowed_methods)]
use cargo::Config;
use std::fs;
use std::path::{Path, PathBuf};

View file

@ -4,6 +4,8 @@
//! Use the `-f` flag to allow it to overwrite existing captures.
//! The workspace will be saved in a `.tgz` file in the `../workspaces` directory.
#![allow(clippy::disallowed_methods)]
use flate2::{Compression, GzBuilder};
use std::fs;
use std::path::{Path, PathBuf};

View file

@ -1,3 +1,5 @@
#![allow(clippy::disallowed_methods)]
fn main() {
println!(
"cargo:rustc-env=NATIVE_ARCH={}",

View file

@ -2,6 +2,8 @@
//!
//! See <https://rust-lang.github.io/cargo/contrib/> for a guide on writing tests.
#![allow(clippy::disallowed_methods)]
use std::env;
use std::ffi::OsStr;
use std::fmt::Write;

View file

@ -1,5 +1,7 @@
//! Miscellaneous support code used by Cargo.
#![allow(clippy::disallowed_methods)]
pub use self::read2::read2;
pub use du::du;
pub use process_builder::ProcessBuilder;

View file

@ -18,6 +18,8 @@
//!
//! [discussion]: https://github.com/rust-lang/rust/pull/46799#issuecomment-361156935
#![allow(clippy::disallowed_methods)]
pub mod env;
#[cfg(target_os = "windows")]

View file

@ -3,6 +3,8 @@
//! Use the MDMAN_BLESS environment variable to automatically update the
//! expected output.
#![allow(clippy::disallowed_methods)]
use mdman::{Format, ManMap};
use pretty_assertions::assert_eq;
use std::path::PathBuf;

View file

@ -1,5 +1,7 @@
//! Cargo registry 1password credential process.
#![allow(clippy::disallowed_methods)]
use cargo_credential::{
Action, CacheControl, Credential, CredentialResponse, Error, RegistryInfo, Secret,
};

View file

@ -18,6 +18,8 @@
//! `CARGO_RUN_BUILD_STD_TESTS` env var to be set to actually run these tests.
//! Otherwise the tests are skipped.
#![allow(clippy::disallowed_methods)]
use cargo_test_support::*;
use std::env;
use std::path::Path;

View file

@ -1,3 +1,5 @@
#![allow(clippy::disallowed_methods)]
#[macro_use]
extern crate cargo_test_macro;