diff options
author | Pascal Bach <pascal.bach@nextrem.ch> | 2018-08-06 00:09:41 +0200 |
---|---|---|
committer | Pascal Bach <pascal.bach@nextrem.ch> | 2018-09-05 21:59:45 +0200 |
commit | 57603c62922980d1d8e624700b8aa24d59bebc76 (patch) | |
tree | 51943dc1d48b9a4a7d923533848cd042a8134c8d /src/pty.rs | |
parent | da089f874a3234e8a8837f60f4376dc30ca1ef5e (diff) | |
download | nix-57603c62922980d1d8e624700b8aa24d59bebc76.zip |
Replace allow unused directive with _ prefix
Diffstat (limited to 'src/pty.rs')
-rw-r--r-- | src/pty.rs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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(()) /// # } /// ``` |