diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-01-15 13:06:25 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-15 07:06:25 -0500 |
commit | d8adeb41de2daab15a0d30eeead9796fa58bfbc3 (patch) | |
tree | 030670147587a2ebc04506a3dcad7bd34bce1016 /src/ops.rs | |
parent | 48ca06e420d08d15ac6653ab73c6249eb99428a7 (diff) |
Clippy fixes (also fixes build with nightly) (#1527)
Diffstat (limited to 'src/ops.rs')
-rw-r--r-- | src/ops.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ops.rs b/src/ops.rs index 48d0995c7..abc7b8d34 100644 --- a/src/ops.rs +++ b/src/ops.rs @@ -1003,7 +1003,6 @@ fn op_read_dir( path: Some(path), mode: get_mode(&metadata.permissions()), has_mode: cfg!(target_family = "unix"), - ..Default::default() }, ) }).collect(); @@ -1172,9 +1171,6 @@ fn op_repl_readline( let prompt = inner.prompt().unwrap().to_owned(); debug!("op_repl_readline {} {}", rid, prompt); - // Ignore this clippy warning until this issue is addressed: - // https://github.com/rust-lang-nursery/rust-clippy/issues/1684 - #[cfg_attr(feature = "cargo-clippy", allow(redundant_closure_call))] blocking(base.sync(), move || -> OpResult { let line = resources::readline(rid, &prompt)?; @@ -1237,9 +1233,6 @@ fn op_listen( assert_eq!(network, "tcp"); let address = inner.address().unwrap(); - // Ignore this clippy warning until this issue is addressed: - // https://github.com/rust-lang-nursery/rust-clippy/issues/1684 - #[cfg_attr(feature = "cargo-clippy", allow(redundant_closure_call))] Box::new(futures::future::result((move || { let addr = resolve_addr(address).wait()?; |