Remove some unneeded '.clone()' invocations.
Remove some unneeded '.into_owned()' invocations.
Remove some unneeded '.as_slice()' invocations.
Get rid of unneeded mut.
Kill a warning about ignored result of flush().
Update to rust 0.12.0 and Cargo.