mirror of
https://github.com/rust-lang/cargo
synced 2024-10-02 14:04:23 +00:00
lint: allow disallow_methods
This commit is contained in:
parent
1539b3dfc1
commit
870f9ea7b3
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::disallowed_methods)]
|
||||
|
||||
use cargo::Config;
|
||||
use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::disallowed_methods)]
|
||||
|
||||
fn main() {
|
||||
println!(
|
||||
"cargo:rustc-env=NATIVE_ARCH={}",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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")]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
//! Cargo registry 1password credential process.
|
||||
|
||||
#![allow(clippy::disallowed_methods)]
|
||||
|
||||
use cargo_credential::{
|
||||
Action, CacheControl, Credential, CredentialResponse, Error, RegistryInfo, Secret,
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::disallowed_methods)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate cargo_test_macro;
|
||||
|
||||
|
|
Loading…
Reference in a new issue