diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-08 04:13:23 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-08 05:13:45 +0100 |
commit | 4ffee6bacc3579c57687f4029d2fc73213592c39 (patch) | |
tree | 1daf3804dd42d70013a39e6ba62548547726fb38 /examples/input.rs | |
parent | fce7d2b9bf30e09b615dbd77b4dd7db94d623bfb (diff) | |
download | dialog-rs-4ffee6bacc3579c57687f4029d2fc73213592c39.tar.gz dialog-rs-4ffee6bacc3579c57687f4029d2fc73213592c39.tar.bz2 |
Refactor io::Error into custom Error enum
Diffstat (limited to 'examples/input.rs')
-rw-r--r-- | examples/input.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/input.rs b/examples/input.rs index bb36fb6..d852a5e 100644 --- a/examples/input.rs +++ b/examples/input.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 input1 = dialog::Input::new("Please enter something").show()?; let input2 = dialog::Input::new("Please enter something") .title("Input form") |