summaryrefslogtreecommitdiff
path: root/src/pty.rs
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2018-08-06 00:09:41 +0200
committerPascal Bach <pascal.bach@nextrem.ch>2018-09-05 21:59:45 +0200
commit57603c62922980d1d8e624700b8aa24d59bebc76 (patch)
tree51943dc1d48b9a4a7d923533848cd042a8134c8d /src/pty.rs
parentda089f874a3234e8a8837f60f4376dc30ca1ef5e (diff)
downloadnix-57603c62922980d1d8e624700b8aa24d59bebc76.zip
Replace allow unused directive with _ prefix
Diffstat (limited to 'src/pty.rs')
-rw-r--r--src/pty.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pty.rs b/src/pty.rs
index ec250aa7..b7171885 100644
--- a/src/pty.rs
+++ b/src/pty.rs
@@ -108,8 +108,7 @@ pub fn grantpt(fd: &PtyMaster) -> Result<()> {
/// let slave_name = unsafe { ptsname(&master_fd) }?;
///
/// // Try to open the slave
-/// # #[allow(unused_variables)]
-/// let slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, Mode::empty())?;
+/// let _slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, Mode::empty())?;
/// # Ok(())
/// # }
/// ```