aboutsummaryrefslogtreecommitdiff
path: root/examples/destructure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/destructure.rs')
-rw-r--r--examples/destructure.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/destructure.rs b/examples/destructure.rs
index 89336bfd..dc5d8ef8 100644
--- a/examples/destructure.rs
+++ b/examples/destructure.rs
@@ -43,7 +43,7 @@ mod app {
let b = cx.shared.b;
let c = cx.shared.c;
- hprintln!("foo: a = {}, b = {}, c = {}", a, b, c).unwrap();
+ hprintln!("foo: a = {}, b = {}, c = {}", a, b, c);
}
// De-structure-ing syntax
@@ -51,6 +51,6 @@ mod app {
async fn bar(cx: bar::Context) {
let bar::SharedResources { a, b, c, .. } = cx.shared;
- hprintln!("bar: a = {}, b = {}, c = {}", a, b, c).unwrap();
+ hprintln!("bar: a = {}, b = {}, c = {}", a, b, c);
}
}