summaryrefslogtreecommitdiff
path: root/src/pty.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-09-23 04:17:01 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-09-23 04:17:01 +0000
commit1537b639c0611c8715b2f3d7564d8f9c13aad2ba (patch)
treeefd7d1a498b8e9344452ba20d309751f441750e4 /src/pty.rs
parentd302e8d278bcd5b10ab7a30a467b5d8e21139ff2 (diff)
parenta7fea44fe38b61a65ebc2d840c4c6c9e1bd8431d (diff)
downloadnix-1537b639c0611c8715b2f3d7564d8f9c13aad2ba.zip
Merge #930
930: Add wrapper for linux kernel module loading r=Susurrus a=bachp - init_module and finit_module to load kernel modules - delete_module to unload kernel modules Co-authored-by: Pascal Bach <pascal.bach@nextrem.ch>
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(())
/// # }
/// ```