aboutsummaryrefslogtreecommitdiffstats
path: root/examples/raw_guard/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-06 01:13:42 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-06 01:13:42 -0500
commite9a976fba8da44c298756e189180d7fe061fe7ba (patch)
tree9bafb74da07a6a49ddcb7849d63de60e83f76d4d /examples/raw_guard/mod.rs
parent896b15e349a2cf28eb7a9a0add8f5957603e7a75 (diff)
downloadpty-process-e9a976fba8da44c298756e189180d7fe061fe7ba.tar.gz
pty-process-e9a976fba8da44c298756e189180d7fe061fe7ba.zip
make plain `cargo test` work
Diffstat (limited to 'examples/raw_guard/mod.rs')
-rw-r--r--examples/raw_guard/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/raw_guard/mod.rs b/examples/raw_guard/mod.rs
index 2930a08..cb6a7d6 100644
--- a/examples/raw_guard/mod.rs
+++ b/examples/raw_guard/mod.rs
@@ -5,6 +5,7 @@ pub struct RawGuard {
}
impl RawGuard {
+ #[allow(dead_code)]
pub fn new() -> Self {
let stdin = std::io::stdin().as_raw_fd();
let termios = nix::sys::termios::tcgetattr(stdin).unwrap();