summaryrefslogtreecommitdiff
path: root/rust/examples/template/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/examples/template/src')
-rw-r--r--rust/examples/template/src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/rust/examples/template/src/main.rs b/rust/examples/template/src/main.rs
index 5b21efb3..4a1bab2c 100644
--- a/rust/examples/template/src/main.rs
+++ b/rust/examples/template/src/main.rs
@@ -31,9 +31,7 @@ fn main() {
.get_data(),
addr,
) {
- tokens
- .iter()
- .for_each(|token| print!("{}", token.text().as_str()));
+ tokens.iter().for_each(|token| print!("{}", token.text()));
println!();
}
}