diff --git a/examples/functional/src/main.rs b/examples/functional/src/main.rs index 2ed8b37c58..d535a61b45 100644 --- a/examples/functional/src/main.rs +++ b/examples/functional/src/main.rs @@ -42,5 +42,5 @@ fn main() { // to drive all futures. Eventually fut_values will be driven to completion. let values: Vec = executor::block_on(fut_values); - println!("Values={:?}", values); + println!("Values={values:?}"); } diff --git a/examples/imperative/src/main.rs b/examples/imperative/src/main.rs index 44f4153cd9..1c952537bf 100644 --- a/examples/imperative/src/main.rs +++ b/examples/imperative/src/main.rs @@ -44,5 +44,5 @@ fn main() { // to drive all futures. Eventually fut_values will be driven to completion. let values: Vec = executor::block_on(fut_values); - println!("Values={:?}", values); + println!("Values={values:?}"); }