17 lines
581 B
Rust
17 lines
581 B
Rust
#![warn(clippy::large_include_file)]
|
|
|
|
// Good
|
|
const GOOD_INCLUDE_BYTES: &[u8; 581] = include_bytes!("large_include_file.rs");
|
|
const GOOD_INCLUDE_STR: &str = include_str!("large_include_file.rs");
|
|
|
|
#[allow(clippy::large_include_file)]
|
|
const ALLOWED_TOO_BIG_INCLUDE_BYTES: &[u8; 654] = include_bytes!("too_big.txt");
|
|
#[allow(clippy::large_include_file)]
|
|
const ALLOWED_TOO_BIG_INCLUDE_STR: &str = include_str!("too_big.txt");
|
|
|
|
// Bad
|
|
const TOO_BIG_INCLUDE_BYTES: &[u8; 654] = include_bytes!("too_big.txt");
|
|
const TOO_BIG_INCLUDE_STR: &str = include_str!("too_big.txt");
|
|
|
|
fn main() {}
|