Skip to content

Instantly share code, notes, and snippets.

@jszwedko
Created November 22, 2021 18:40
Show Gist options
  • Save jszwedko/59e2fad1a7d4e0c36b96a802a99e25fc to your computer and use it in GitHub Desktop.
Save jszwedko/59e2fad1a7d4e0c36b96a802a99e25fc to your computer and use it in GitHub Desktop.
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "clippy-test"
version = "0.1.0"
[package]
name = "clippy-test"
version = "0.1.0"
edition = "2018"
[lib]
name = "clippy_test"
path = "src/lib.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
// src/lib.rs
#![deny(clippy::print_stdout)]
pub mod foo;
// src/main.rs
fn main() {
clippy_test::foo::foo();
}
// src/foo/mod.rs
// #![deny(clippy::print_stdout)] works
pub fn foo() {
println!("hmm");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment