summaryrefslogtreecommitdiff
path: root/examples/question.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/question.rs')
-rw-r--r--examples/question.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/question.rs b/examples/question.rs
index d9c0e91..f5a692a 100644
--- a/examples/question.rs
+++ b/examples/question.rs
@@ -1,11 +1,9 @@
// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
// SPDX-License-Identifier: MIT
-use std::io::Result;
-
use dialog::DialogBox;
-fn main() -> Result<()> {
+fn main() -> dialog::Result<()> {
let choice = dialog::Question::new("Do you want to continue?").show()?;
println!("The user chose: {:?}", choice);
Ok(())