Skip to content

Commit 8498bd9

Browse files
committed
Merge #592
592: remove test warnings r=Susurrus
2 parents d810c10 + 31abe00 commit 8498bd9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/sys/ioctl/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
//! from [rust-spidev](https://github.com/posborne/rust-spidev).
3636
//!
3737
//! ```
38-
//! #[macro_use] extern crate nix;
39-
//!
4038
//! #[allow(non_camel_case_types)]
4139
//! pub struct spi_ioc_transfer {
4240
//! pub tx_buf: u64,

src/unistd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl ForkResult {
5959
/// println!("Continuing execution in parent process, new child has pid: {}", child);
6060
/// }
6161
/// Ok(ForkResult::Child) => println!("I'm a new child process"),
62-
/// Err(e) => println!("Fork failed"),
62+
/// Err(_) => println!("Fork failed"),
6363
/// }
6464
/// ```
6565
///
@@ -272,7 +272,7 @@ pub fn fchdir(dirfd: RawFd) -> Result<()> {
272272
/// - the path already exists
273273
/// - the path name is too long (longer than `PATH_MAX`, usually 4096 on linux, 1024 on OS X)
274274
///
275-
/// For a full list consult
275+
/// For a full list consult
276276
/// [man mkdir(2)](http://man7.org/linux/man-pages/man2/mkdir.2.html#ERRORS)
277277
///
278278
/// # Example
@@ -798,7 +798,7 @@ pub fn sleep(seconds: libc::c_uint) -> c_uint {
798798
/// ```rust
799799
/// use nix::unistd;
800800
///
801-
/// let fd = match unistd::mkstemp("/tmp/tempfile_XXXXXX") {
801+
/// let _ = match unistd::mkstemp("/tmp/tempfile_XXXXXX") {
802802
/// Ok((fd, path)) => {
803803
/// unistd::unlink(path.as_path()).unwrap(); // flag file to be deleted at app termination
804804
/// fd

0 commit comments

Comments
 (0)