aboutsummaryrefslogtreecommitdiff
path: root/src/backends/stdio.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-10-27 10:55:30 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-10-27 11:59:40 +0100
commit0970381271bd07f020a888b027653ca627e8655c (patch)
tree95f5f6f94b7851b98a78a91a851d5e3783bd5ac2 /src/backends/stdio.rs
parentca06c4c4a2846b1c0410af1c7a68c65f5489a0b9 (diff)
downloaddialog-rs-0970381271bd07f020a888b027653ca627e8655c.tar.gz
dialog-rs-0970381271bd07f020a888b027653ca627e8655c.tar.bz2
Implement Default for all backend structs
This fixes the clippy warning new_without_default [0]. [0] https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
Diffstat (limited to 'src/backends/stdio.rs')
-rw-r--r--src/backends/stdio.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backends/stdio.rs b/src/backends/stdio.rs
index 4e4c8ec..9a153df 100644
--- a/src/backends/stdio.rs
+++ b/src/backends/stdio.rs
@@ -9,13 +9,13 @@ use crate::{Choice, Input, Message, Password, Question, Result};
///
/// This backend is intended as a fallback backend to use if no other backend is available. The
/// dialogs are printed to the standard output and user input is read from the standard input.
-#[derive(Debug)]
+#[derive(Debug, Default)]
pub struct Stdio {}
impl Stdio {
/// Creates a new `Stdio` instance.
pub fn new() -> Stdio {
- Stdio {}
+ Default::default()
}
}