removed warnings from build

Fixed a few warnings about white space and dead code
I don't see why this is needed. I don't get any warning if I remove it (using `rustc knapsack_0-1.rs` and `rustc knapsack_0-1.rs --test`).