diff options
author | Alan Somers <asomers@gmail.com> | 2021-05-30 12:27:39 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2021-05-30 20:12:41 -0600 |
commit | 7b7d9540056f6378820caf955a0335268184d6b7 (patch) | |
tree | f27fa7b8dbb4d089c0f7bda9569bfab8ead1b4dc /src/sys/select.rs | |
parent | a55dd4537286c8fbd96e3e21e18c56a38f8124b9 (diff) | |
download | nix-7b7d9540056f6378820caf955a0335268184d6b7.zip |
misc Clippy cleanup
* Fix race conditions in the tests. Two tests were grabbing a mutex but
immediately dropping it. Thank you, Clippy.
* Remove vestigial Windows support. Remove some code added to support
Windows in 2015. Nix is no longer intended to ever run on Windows.
* Various other minor Clippy lints.
Diffstat (limited to 'src/sys/select.rs')
-rw-r--r-- | src/sys/select.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sys/select.rs b/src/sys/select.rs index 19ae2f1c..5eb64234 100644 --- a/src/sys/select.rs +++ b/src/sys/select.rs @@ -50,12 +50,10 @@ impl FdSet { /// /// ``` /// # use nix::sys::select::FdSet; - /// # fn main() { /// let mut set = FdSet::new(); /// set.insert(4); /// set.insert(9); /// assert_eq!(set.highest(), Some(9)); - /// # } /// ``` /// /// [`select`]: fn.select.html |