diff options
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.rs b/src/input.rs index 8bd3b60..bc16568 100644 --- a/src/input.rs +++ b/src/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 { |