Running cargo clippy on the below:
const CAP: usize = 4096;
let file = File::open("my_file.txt")?;
let mut reader = BufReader::with_capacity(CAP, file);
I'm getting:
warning: constant is never used: `CAP`
Is this correct? I don't think so, but prefer to ask.
Thanks