diff options
Diffstat (limited to 'rust/examples/template/src')
| -rw-r--r-- | rust/examples/template/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/examples/template/src/main.rs b/rust/examples/template/src/main.rs index 7947c0f7..9125aeaa 100644 --- a/rust/examples/template/src/main.rs +++ b/rust/examples/template/src/main.rs @@ -32,7 +32,7 @@ fn main() { Some((_, tokens)) => { tokens .iter() - .for_each(|token| print!("{}", token.text().to_str().unwrap())); + .for_each(|token| print!("{}", token.text().as_str())); println!("") } _ => (), |
