update code for Rust print syntax changes