Skip to content

Commit

Permalink
chore: Migrate print-ban from test to clippy
Browse files Browse the repository at this point in the history
This should be more resilient to false positives like in rust-lang#12245 where a
string contains `println`.
  • Loading branch information
epage committed Jun 9, 2023
1 parent e07efd8 commit b6fdcae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 107 deletions.
1 change: 1 addition & 0 deletions clippy.toml
@@ -1,3 +1,4 @@
allow-print-in-tests = true
disallowed-methods = [
{ path = "std::env::var", reason = "Use `Config::get_env` instead. See rust-lang/cargo#11588" },
{ path = "std::env::var_os", reason = "Use `Config::get_env_os` instead. See rust-lang/cargo#11588" },
Expand Down
2 changes: 2 additions & 0 deletions src/cargo/lib.rs
Expand Up @@ -6,6 +6,8 @@
#![allow(clippy::all)]
#![warn(clippy::disallowed_methods)]
#![warn(clippy::self_named_module_files)]
#![warn(clippy::print_stdout)]
#![warn(clippy::print_stderr)]
#![allow(rustdoc::private_intra_doc_links)]

//! # Cargo as a library
Expand Down
107 changes: 0 additions & 107 deletions tests/internal.rs

This file was deleted.

0 comments on commit b6fdcae

Please sign in to comment.