From 193dea95daedde471e6f1fbcbeaf1932c6fbd50c Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Sat, 6 Apr 2024 16:32:00 -0300 Subject: replace BStr with str --- rust/examples/basic_script/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rust/examples/basic_script/src/main.rs') diff --git a/rust/examples/basic_script/src/main.rs b/rust/examples/basic_script/src/main.rs index b979c156..c5c1414a 100644 --- a/rust/examples/basic_script/src/main.rs +++ b/rust/examples/basic_script/src/main.rs @@ -26,9 +26,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!(); } } -- cgit v1.3.1