Replaced `#[deny(dead_code)]` with `#[warn(dead_code)]`

Closes #312