From 4ffee6bacc3579c57687f4029d2fc73213592c39 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 8 Jan 2019 04:13:23 +0000 Subject: Refactor io::Error into custom Error enum --- examples/question.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/question.rs') 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 // 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(()) -- cgit v1.2.1