aboutsummaryrefslogtreecommitdiffstats
path: root/src/blocking/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/blocking/input.rs')
-rw-r--r--src/blocking/input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blocking/input.rs b/src/blocking/input.rs
index ff69eda..18e349a 100644
--- a/src/blocking/input.rs
+++ b/src/blocking/input.rs
@@ -15,8 +15,8 @@ pub struct Input {
#[allow(clippy::new_without_default)]
impl Input {
- pub fn new() -> (Self, crate::RawGuard) {
- (Self::new_without_raw(), crate::RawGuard::new())
+ pub fn new() -> Result<(Self, crate::RawGuard)> {
+ Ok((Self::new_without_raw(), crate::RawGuard::new()?))
}
pub fn new_without_raw() -> Self {