summaryrefslogtreecommitdiff
path: root/test/test_mount.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-09-19 08:29:31 -0600
committerGitHub <noreply@github.com>2021-09-19 08:29:31 -0600
commit515e99bcffcf324d03128649f3ee0ca14d67b5b1 (patch)
tree654a84d639d1feca971396f958f7589fc1fb81bf /test/test_mount.rs
parentf0d6d0406d8e763619aecac062d1d2b56ca6e7b2 (diff)
parenta09b1c8ac643d448db479a108ac6726307075453 (diff)
downloadnix-515e99bcffcf324d03128649f3ee0ca14d67b5b1.zip
Merge pull request #1529 from asomers/clippy-9-2021
Clippy cleanup
Diffstat (limited to 'test/test_mount.rs')
-rw-r--r--test/test_mount.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_mount.rs b/test/test_mount.rs
index c1b6c8a3..44287f97 100644
--- a/test/test_mount.rs
+++ b/test/test_mount.rs
@@ -21,14 +21,13 @@ mod test_mount {
use nix::sys::stat::{self, Mode};
use nix::unistd::getuid;
- use tempfile;
-
- static SCRIPT_CONTENTS: &'static [u8] = b"#!/bin/sh
+ static SCRIPT_CONTENTS: &[u8] = b"#!/bin/sh
exit 23";
const EXPECTED_STATUS: i32 = 23;
const NONE: Option<&'static [u8]> = None;
+ #[allow(clippy::bind_instead_of_map)] // False positive
pub fn test_mount_tmpfs_without_flags_allows_rwx() {
let tempdir = tempfile::tempdir().unwrap();