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 6019c225..fd577a6c 100644
--- a/examples/destructure.rs
+++ b/examples/destructure.rs
@@ -42,7 +42,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
@@ -50,6 +50,6 @@ mod app {
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);
}
}