Updated rust print function

Updating print function as io::println is an outdated command