Adjust tnetstring code to Rust's new for-loop