[INFO] crate lapin-async 0.15.0 is already in cache [INFO] extracting crate lapin-async 0.15.0 into work/ex/clippy-test-run/sources/stable/reg/lapin-async/0.15.0 [INFO] extracting crate lapin-async 0.15.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/lapin-async/0.15.0 [INFO] validating manifest of lapin-async-0.15.0 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of lapin-async-0.15.0 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing lapin-async-0.15.0 [INFO] finished frobbing lapin-async-0.15.0 [INFO] frobbed toml for lapin-async-0.15.0 written to work/ex/clippy-test-run/sources/stable/reg/lapin-async/0.15.0/Cargo.toml [INFO] started frobbing lapin-async-0.15.0 [INFO] finished frobbing lapin-async-0.15.0 [INFO] frobbed toml for lapin-async-0.15.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/lapin-async/0.15.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting lapin-async-0.15.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/lapin-async/0.15.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] b58269d9b343d7afca4e0fa3c105f83ee485523eee6b43a2d17b55650c437bcc [INFO] running `"docker" "start" "-a" "b58269d9b343d7afca4e0fa3c105f83ee485523eee6b43a2d17b55650c437bcc"` [INFO] [stderr] Compiling amq-protocol-types v1.1.0 [INFO] [stderr] Checking sasl v0.4.3 [INFO] [stderr] Compiling handlebars v1.1.0 [INFO] [stderr] Checking amq-protocol-codegen v1.1.0 [INFO] [stderr] Compiling amq-protocol v1.1.0 [INFO] [stderr] Checking lapin-async v0.15.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/buffer.rs:20:7 [INFO] [stderr] | [INFO] [stderr] 20 | capacity: capacity, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `capacity` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/connection.rs:115:7 [INFO] [stderr] | [INFO] [stderr] 115 | configuration: configuration, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `configuration` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/connection.rs:640:7 [INFO] [stderr] | [INFO] [stderr] 640 | class_id: class_id, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `class_id` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/connection.rs:643:7 [INFO] [stderr] | [INFO] [stderr] 643 | properties: properties, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `properties` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/queue.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | exchange: exchange, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `exchange` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/queue.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | routing_key: routing_key, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `routing_key` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/queue.rs:18:7 [INFO] [stderr] | [INFO] [stderr] 18 | no_wait: no_wait, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_wait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:156:74 [INFO] [stderr] | [INFO] [stderr] 156 | AMQPClass::Channel(channel::AMQPMethod::Open(channel::Open { out_of_band: out_of_band })); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `out_of_band` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:205:83 [INFO] [stderr] | [INFO] [stderr] 205 | let method = AMQPClass::Channel(channel::AMQPMethod::Flow(channel::Flow { active: active })); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `active` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:242:87 [INFO] [stderr] | [INFO] [stderr] 242 | let method = AMQPClass::Channel(channel::AMQPMethod::FlowOk(channel::FlowOk { active: active })); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `active` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:291:13 [INFO] [stderr] | [INFO] [stderr] 291 | reply_code: reply_code, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reply_code` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:292:13 [INFO] [stderr] | [INFO] [stderr] 292 | reply_text: reply_text, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reply_text` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:293:13 [INFO] [stderr] | [INFO] [stderr] 293 | class_id: class_id, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `class_id` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:294:13 [INFO] [stderr] | [INFO] [stderr] 294 | method_id: method_id, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `method_id` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:388:13 [INFO] [stderr] | [INFO] [stderr] 388 | realm: realm, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `realm` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:389:13 [INFO] [stderr] | [INFO] [stderr] 389 | exclusive: exclusive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `exclusive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:390:13 [INFO] [stderr] | [INFO] [stderr] 390 | passive: passive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `passive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:391:13 [INFO] [stderr] | [INFO] [stderr] 391 | active: active, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `active` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:392:13 [INFO] [stderr] | [INFO] [stderr] 392 | write: write, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `write` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:393:13 [INFO] [stderr] | [INFO] [stderr] 393 | read: read, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `read` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:455:13 [INFO] [stderr] | [INFO] [stderr] 455 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:456:13 [INFO] [stderr] | [INFO] [stderr] 456 | exchange: exchange, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `exchange` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:458:13 [INFO] [stderr] | [INFO] [stderr] 458 | passive: passive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `passive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:459:13 [INFO] [stderr] | [INFO] [stderr] 459 | durable: durable, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `durable` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:460:13 [INFO] [stderr] | [INFO] [stderr] 460 | auto_delete: auto_delete, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `auto_delete` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:461:13 [INFO] [stderr] | [INFO] [stderr] 461 | internal: internal, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `internal` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:462:13 [INFO] [stderr] | [INFO] [stderr] 462 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:463:13 [INFO] [stderr] | [INFO] [stderr] 463 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:520:13 [INFO] [stderr] | [INFO] [stderr] 520 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:521:13 [INFO] [stderr] | [INFO] [stderr] 521 | exchange: exchange, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `exchange` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:522:13 [INFO] [stderr] | [INFO] [stderr] 522 | if_unused: if_unused, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `if_unused` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:523:13 [INFO] [stderr] | [INFO] [stderr] 523 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:582:13 [INFO] [stderr] | [INFO] [stderr] 582 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:583:13 [INFO] [stderr] | [INFO] [stderr] 583 | destination: destination, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `destination` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:584:13 [INFO] [stderr] | [INFO] [stderr] 584 | source: source, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `source` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:585:13 [INFO] [stderr] | [INFO] [stderr] 585 | routing_key: routing_key, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `routing_key` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:586:13 [INFO] [stderr] | [INFO] [stderr] 586 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:587:13 [INFO] [stderr] | [INFO] [stderr] 587 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:646:13 [INFO] [stderr] | [INFO] [stderr] 646 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:647:13 [INFO] [stderr] | [INFO] [stderr] 647 | destination: destination, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `destination` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:648:13 [INFO] [stderr] | [INFO] [stderr] 648 | source: source, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `source` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:649:13 [INFO] [stderr] | [INFO] [stderr] 649 | routing_key: routing_key, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `routing_key` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:650:13 [INFO] [stderr] | [INFO] [stderr] 650 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:651:13 [INFO] [stderr] | [INFO] [stderr] 651 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:711:13 [INFO] [stderr] | [INFO] [stderr] 711 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:713:13 [INFO] [stderr] | [INFO] [stderr] 713 | passive: passive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `passive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:714:13 [INFO] [stderr] | [INFO] [stderr] 714 | durable: durable, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `durable` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:715:13 [INFO] [stderr] | [INFO] [stderr] 715 | exclusive: exclusive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `exclusive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:716:13 [INFO] [stderr] | [INFO] [stderr] 716 | auto_delete: auto_delete, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `auto_delete` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:717:13 [INFO] [stderr] | [INFO] [stderr] 717 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:718:13 [INFO] [stderr] | [INFO] [stderr] 718 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:781:13 [INFO] [stderr] | [INFO] [stderr] 781 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:785:13 [INFO] [stderr] | [INFO] [stderr] 785 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:786:13 [INFO] [stderr] | [INFO] [stderr] 786 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:852:13 [INFO] [stderr] | [INFO] [stderr] 852 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:854:13 [INFO] [stderr] | [INFO] [stderr] 854 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:912:13 [INFO] [stderr] | [INFO] [stderr] 912 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:914:13 [INFO] [stderr] | [INFO] [stderr] 914 | if_unused: if_unused, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `if_unused` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:915:13 [INFO] [stderr] | [INFO] [stderr] 915 | if_empty: if_empty, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `if_empty` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:916:13 [INFO] [stderr] | [INFO] [stderr] 916 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:974:13 [INFO] [stderr] | [INFO] [stderr] 974 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:975:13 [INFO] [stderr] | [INFO] [stderr] 975 | queue: queue, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `queue` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:978:13 [INFO] [stderr] | [INFO] [stderr] 978 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1039:13 [INFO] [stderr] | [INFO] [stderr] 1039 | prefetch_size: prefetch_size, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `prefetch_size` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1040:13 [INFO] [stderr] | [INFO] [stderr] 1040 | prefetch_count: prefetch_count, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `prefetch_count` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1041:13 [INFO] [stderr] | [INFO] [stderr] 1041 | global: global, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `global` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1111:13 [INFO] [stderr] | [INFO] [stderr] 1111 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1114:13 [INFO] [stderr] | [INFO] [stderr] 1114 | no_local: no_local, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `no_local` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1115:13 [INFO] [stderr] | [INFO] [stderr] 1115 | no_ack: no_ack, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `no_ack` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1116:13 [INFO] [stderr] | [INFO] [stderr] 1116 | exclusive: exclusive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `exclusive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1117:13 [INFO] [stderr] | [INFO] [stderr] 1117 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1118:13 [INFO] [stderr] | [INFO] [stderr] 1118 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1184:13 [INFO] [stderr] | [INFO] [stderr] 1184 | consumer_tag: consumer_tag, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `consumer_tag` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1185:13 [INFO] [stderr] | [INFO] [stderr] 1185 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1247:13 [INFO] [stderr] | [INFO] [stderr] 1247 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1248:13 [INFO] [stderr] | [INFO] [stderr] 1248 | exchange: exchange, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `exchange` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1249:13 [INFO] [stderr] | [INFO] [stderr] 1249 | routing_key: routing_key, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `routing_key` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1250:13 [INFO] [stderr] | [INFO] [stderr] 1250 | mandatory: mandatory, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `mandatory` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1251:13 [INFO] [stderr] | [INFO] [stderr] 1251 | immediate: immediate, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `immediate` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1317:13 [INFO] [stderr] | [INFO] [stderr] 1317 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1319:13 [INFO] [stderr] | [INFO] [stderr] 1319 | no_ack: no_ack, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `no_ack` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1413:13 [INFO] [stderr] | [INFO] [stderr] 1413 | delivery_tag: delivery_tag, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `delivery_tag` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1414:13 [INFO] [stderr] | [INFO] [stderr] 1414 | multiple: multiple, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `multiple` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1434:13 [INFO] [stderr] | [INFO] [stderr] 1434 | delivery_tag: delivery_tag, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `delivery_tag` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1435:13 [INFO] [stderr] | [INFO] [stderr] 1435 | requeue: requeue, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `requeue` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1451:84 [INFO] [stderr] | [INFO] [stderr] 1451 | AMQPClass::Basic(basic::AMQPMethod::RecoverAsync(basic::RecoverAsync { requeue: requeue })); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `requeue` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1465:83 [INFO] [stderr] | [INFO] [stderr] 1465 | let method = AMQPClass::Basic(basic::AMQPMethod::Recover(basic::Recover { requeue: requeue })); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `requeue` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1520:13 [INFO] [stderr] | [INFO] [stderr] 1520 | delivery_tag: delivery_tag, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `delivery_tag` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1521:13 [INFO] [stderr] | [INFO] [stderr] 1521 | multiple: multiple, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `multiple` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1522:13 [INFO] [stderr] | [INFO] [stderr] 1522 | requeue: requeue, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `requeue` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1536:87 [INFO] [stderr] | [INFO] [stderr] 1536 | let method = AMQPClass::Confirm(confirm::AMQPMethod::Select(confirm::Select { nowait: nowait })); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/error.rs:82:13 [INFO] [stderr] | [INFO] [stderr] 82 | Error { inner: inner } [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `inner` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/buffer.rs:20:7 [INFO] [stderr] | [INFO] [stderr] 20 | capacity: capacity, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `capacity` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/connection.rs:115:7 [INFO] [stderr] | [INFO] [stderr] 115 | configuration: configuration, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `configuration` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/connection.rs:640:7 [INFO] [stderr] | [INFO] [stderr] 640 | class_id: class_id, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `class_id` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/connection.rs:643:7 [INFO] [stderr] | [INFO] [stderr] 643 | properties: properties, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `properties` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/queue.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | exchange: exchange, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `exchange` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/queue.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | routing_key: routing_key, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `routing_key` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/queue.rs:18:7 [INFO] [stderr] | [INFO] [stderr] 18 | no_wait: no_wait, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_wait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:156:74 [INFO] [stderr] | [INFO] [stderr] 156 | AMQPClass::Channel(channel::AMQPMethod::Open(channel::Open { out_of_band: out_of_band })); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `out_of_band` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:205:83 [INFO] [stderr] | [INFO] [stderr] 205 | let method = AMQPClass::Channel(channel::AMQPMethod::Flow(channel::Flow { active: active })); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `active` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:242:87 [INFO] [stderr] | [INFO] [stderr] 242 | let method = AMQPClass::Channel(channel::AMQPMethod::FlowOk(channel::FlowOk { active: active })); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `active` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:291:13 [INFO] [stderr] | [INFO] [stderr] 291 | reply_code: reply_code, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reply_code` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:292:13 [INFO] [stderr] | [INFO] [stderr] 292 | reply_text: reply_text, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reply_text` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:293:13 [INFO] [stderr] | [INFO] [stderr] 293 | class_id: class_id, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `class_id` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:294:13 [INFO] [stderr] | [INFO] [stderr] 294 | method_id: method_id, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `method_id` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:388:13 [INFO] [stderr] | [INFO] [stderr] 388 | realm: realm, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `realm` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:389:13 [INFO] [stderr] | [INFO] [stderr] 389 | exclusive: exclusive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `exclusive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:390:13 [INFO] [stderr] | [INFO] [stderr] 390 | passive: passive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `passive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:391:13 [INFO] [stderr] | [INFO] [stderr] 391 | active: active, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `active` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:392:13 [INFO] [stderr] | [INFO] [stderr] 392 | write: write, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `write` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:393:13 [INFO] [stderr] | [INFO] [stderr] 393 | read: read, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `read` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:455:13 [INFO] [stderr] | [INFO] [stderr] 455 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:456:13 [INFO] [stderr] | [INFO] [stderr] 456 | exchange: exchange, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `exchange` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:458:13 [INFO] [stderr] | [INFO] [stderr] 458 | passive: passive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `passive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:459:13 [INFO] [stderr] | [INFO] [stderr] 459 | durable: durable, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `durable` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:460:13 [INFO] [stderr] | [INFO] [stderr] 460 | auto_delete: auto_delete, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `auto_delete` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:461:13 [INFO] [stderr] | [INFO] [stderr] 461 | internal: internal, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `internal` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:462:13 [INFO] [stderr] | [INFO] [stderr] 462 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:463:13 [INFO] [stderr] | [INFO] [stderr] 463 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:520:13 [INFO] [stderr] | [INFO] [stderr] 520 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:521:13 [INFO] [stderr] | [INFO] [stderr] 521 | exchange: exchange, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `exchange` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:522:13 [INFO] [stderr] | [INFO] [stderr] 522 | if_unused: if_unused, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `if_unused` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:523:13 [INFO] [stderr] | [INFO] [stderr] 523 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:582:13 [INFO] [stderr] | [INFO] [stderr] 582 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:583:13 [INFO] [stderr] | [INFO] [stderr] 583 | destination: destination, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `destination` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:584:13 [INFO] [stderr] | [INFO] [stderr] 584 | source: source, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `source` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:585:13 [INFO] [stderr] | [INFO] [stderr] 585 | routing_key: routing_key, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `routing_key` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:586:13 [INFO] [stderr] | [INFO] [stderr] 586 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:587:13 [INFO] [stderr] | [INFO] [stderr] 587 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:646:13 [INFO] [stderr] | [INFO] [stderr] 646 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:647:13 [INFO] [stderr] | [INFO] [stderr] 647 | destination: destination, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `destination` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:648:13 [INFO] [stderr] | [INFO] [stderr] 648 | source: source, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `source` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:649:13 [INFO] [stderr] | [INFO] [stderr] 649 | routing_key: routing_key, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `routing_key` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:650:13 [INFO] [stderr] | [INFO] [stderr] 650 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:651:13 [INFO] [stderr] | [INFO] [stderr] 651 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:711:13 [INFO] [stderr] | [INFO] [stderr] 711 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:713:13 [INFO] [stderr] | [INFO] [stderr] 713 | passive: passive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `passive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:714:13 [INFO] [stderr] | [INFO] [stderr] 714 | durable: durable, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `durable` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:715:13 [INFO] [stderr] | [INFO] [stderr] 715 | exclusive: exclusive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `exclusive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:716:13 [INFO] [stderr] | [INFO] [stderr] 716 | auto_delete: auto_delete, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `auto_delete` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:717:13 [INFO] [stderr] | [INFO] [stderr] 717 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:718:13 [INFO] [stderr] | [INFO] [stderr] 718 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:781:13 [INFO] [stderr] | [INFO] [stderr] 781 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:785:13 [INFO] [stderr] | [INFO] [stderr] 785 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:786:13 [INFO] [stderr] | [INFO] [stderr] 786 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:852:13 [INFO] [stderr] | [INFO] [stderr] 852 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:854:13 [INFO] [stderr] | [INFO] [stderr] 854 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:912:13 [INFO] [stderr] | [INFO] [stderr] 912 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:914:13 [INFO] [stderr] | [INFO] [stderr] 914 | if_unused: if_unused, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `if_unused` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:915:13 [INFO] [stderr] | [INFO] [stderr] 915 | if_empty: if_empty, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `if_empty` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:916:13 [INFO] [stderr] | [INFO] [stderr] 916 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:974:13 [INFO] [stderr] | [INFO] [stderr] 974 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:975:13 [INFO] [stderr] | [INFO] [stderr] 975 | queue: queue, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `queue` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:978:13 [INFO] [stderr] | [INFO] [stderr] 978 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1039:13 [INFO] [stderr] | [INFO] [stderr] 1039 | prefetch_size: prefetch_size, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `prefetch_size` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1040:13 [INFO] [stderr] | [INFO] [stderr] 1040 | prefetch_count: prefetch_count, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `prefetch_count` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1041:13 [INFO] [stderr] | [INFO] [stderr] 1041 | global: global, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `global` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1111:13 [INFO] [stderr] | [INFO] [stderr] 1111 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1114:13 [INFO] [stderr] | [INFO] [stderr] 1114 | no_local: no_local, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `no_local` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1115:13 [INFO] [stderr] | [INFO] [stderr] 1115 | no_ack: no_ack, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `no_ack` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1116:13 [INFO] [stderr] | [INFO] [stderr] 1116 | exclusive: exclusive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `exclusive` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1117:13 [INFO] [stderr] | [INFO] [stderr] 1117 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1118:13 [INFO] [stderr] | [INFO] [stderr] 1118 | arguments: arguments, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `arguments` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1184:13 [INFO] [stderr] | [INFO] [stderr] 1184 | consumer_tag: consumer_tag, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `consumer_tag` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1185:13 [INFO] [stderr] | [INFO] [stderr] 1185 | nowait: nowait, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1247:13 [INFO] [stderr] | [INFO] [stderr] 1247 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1248:13 [INFO] [stderr] | [INFO] [stderr] 1248 | exchange: exchange, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `exchange` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1249:13 [INFO] [stderr] | [INFO] [stderr] 1249 | routing_key: routing_key, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `routing_key` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1250:13 [INFO] [stderr] | [INFO] [stderr] 1250 | mandatory: mandatory, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `mandatory` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1251:13 [INFO] [stderr] | [INFO] [stderr] 1251 | immediate: immediate, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `immediate` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1317:13 [INFO] [stderr] | [INFO] [stderr] 1317 | ticket: ticket, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ticket` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1319:13 [INFO] [stderr] | [INFO] [stderr] 1319 | no_ack: no_ack, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `no_ack` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1413:13 [INFO] [stderr] | [INFO] [stderr] 1413 | delivery_tag: delivery_tag, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `delivery_tag` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1414:13 [INFO] [stderr] | [INFO] [stderr] 1414 | multiple: multiple, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `multiple` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1434:13 [INFO] [stderr] | [INFO] [stderr] 1434 | delivery_tag: delivery_tag, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `delivery_tag` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1435:13 [INFO] [stderr] | [INFO] [stderr] 1435 | requeue: requeue, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `requeue` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1451:84 [INFO] [stderr] | [INFO] [stderr] 1451 | AMQPClass::Basic(basic::AMQPMethod::RecoverAsync(basic::RecoverAsync { requeue: requeue })); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `requeue` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1465:83 [INFO] [stderr] | [INFO] [stderr] 1465 | let method = AMQPClass::Basic(basic::AMQPMethod::Recover(basic::Recover { requeue: requeue })); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `requeue` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1520:13 [INFO] [stderr] | [INFO] [stderr] 1520 | delivery_tag: delivery_tag, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `delivery_tag` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1521:13 [INFO] [stderr] | [INFO] [stderr] 1521 | multiple: multiple, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `multiple` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1522:13 [INFO] [stderr] | [INFO] [stderr] 1522 | requeue: requeue, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `requeue` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/api.rs:1536:87 [INFO] [stderr] | [INFO] [stderr] 1536 | let method = AMQPClass::Confirm(confirm::AMQPMethod::Select(confirm::Select { nowait: nowait })); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `nowait` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/error.rs:82:13 [INFO] [stderr] | [INFO] [stderr] 82 | Error { inner: inner } [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `inner` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/lib.rs:119:1 [INFO] [stderr] | [INFO] [stderr] 119 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/connection.rs:323:13 [INFO] [stderr] | [INFO] [stderr] 323 | return Err(Error::new(ErrorKind::InvalidData, "send buffer too small")); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(Error::new(ErrorKind::InvalidData, "send buffer too small"))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/connection.rs:326:13 [INFO] [stderr] | [INFO] [stderr] 326 | return Err(Error::new(ErrorKind::InvalidData, "could not generate")); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(Error::new(ErrorKind::InvalidData, "could not generate"))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/connection.rs:365:5 [INFO] [stderr] | [INFO] [stderr] 365 | return Ok((consumed, self.state)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Ok((consumed, self.state))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:136:17 [INFO] [stderr] | [INFO] [stderr] 136 | return Err(ErrorKind::InvalidMethod(m).into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::InvalidMethod(m).into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:428:13 [INFO] [stderr] | [INFO] [stderr] 428 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:497:13 [INFO] [stderr] | [INFO] [stderr] 497 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:557:13 [INFO] [stderr] | [INFO] [stderr] 557 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:621:13 [INFO] [stderr] | [INFO] [stderr] 621 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:685:13 [INFO] [stderr] | [INFO] [stderr] 685 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:757:13 [INFO] [stderr] | [INFO] [stderr] 757 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:831:13 [INFO] [stderr] | [INFO] [stderr] 831 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:889:13 [INFO] [stderr] | [INFO] [stderr] 889 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:951:13 [INFO] [stderr] | [INFO] [stderr] 951 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1018:13 [INFO] [stderr] | [INFO] [stderr] 1018 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1084:13 [INFO] [stderr] | [INFO] [stderr] 1084 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1164:13 [INFO] [stderr] | [INFO] [stderr] 1164 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1224:13 [INFO] [stderr] | [INFO] [stderr] 1224 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1367:13 [INFO] [stderr] | [INFO] [stderr] 1367 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1393:13 [INFO] [stderr] | [INFO] [stderr] 1393 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1499:13 [INFO] [stderr] | [INFO] [stderr] 1499 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1573:13 [INFO] [stderr] | [INFO] [stderr] 1573 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1613:13 [INFO] [stderr] | [INFO] [stderr] 1613 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/api.rs:1601:24 [INFO] [stderr] | [INFO] [stderr] 1601 | } else { [INFO] [stderr] | ________________________^ [INFO] [stderr] 1602 | | if c.unacked.remove(&method.delivery_tag) { [INFO] [stderr] 1603 | | c.acked.insert(method.delivery_tag); [INFO] [stderr] 1604 | | } [INFO] [stderr] 1605 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::collapsible_if)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 1601 | } else if c.unacked.remove(&method.delivery_tag) { [INFO] [stderr] 1602 | c.acked.insert(method.delivery_tag); [INFO] [stderr] 1603 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1653:13 [INFO] [stderr] | [INFO] [stderr] 1653 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/api.rs:1641:24 [INFO] [stderr] | [INFO] [stderr] 1641 | } else { [INFO] [stderr] | ________________________^ [INFO] [stderr] 1642 | | if c.unacked.remove(&method.delivery_tag) { [INFO] [stderr] 1643 | | c.nacked.insert(method.delivery_tag); [INFO] [stderr] 1644 | | } [INFO] [stderr] 1645 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 1641 | } else if c.unacked.remove(&method.delivery_tag) { [INFO] [stderr] 1642 | c.nacked.insert(method.delivery_tag); [INFO] [stderr] 1643 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/lib.rs:119:1 [INFO] [stderr] | [INFO] [stderr] 119 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/connection.rs:323:13 [INFO] [stderr] | [INFO] [stderr] 323 | return Err(Error::new(ErrorKind::InvalidData, "send buffer too small")); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(Error::new(ErrorKind::InvalidData, "send buffer too small"))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/connection.rs:326:13 [INFO] [stderr] | [INFO] [stderr] 326 | return Err(Error::new(ErrorKind::InvalidData, "could not generate")); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(Error::new(ErrorKind::InvalidData, "could not generate"))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/connection.rs:365:5 [INFO] [stderr] | [INFO] [stderr] 365 | return Ok((consumed, self.state)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Ok((consumed, self.state))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:136:17 [INFO] [stderr] | [INFO] [stderr] 136 | return Err(ErrorKind::InvalidMethod(m).into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::InvalidMethod(m).into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:428:13 [INFO] [stderr] | [INFO] [stderr] 428 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:497:13 [INFO] [stderr] | [INFO] [stderr] 497 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:557:13 [INFO] [stderr] | [INFO] [stderr] 557 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:621:13 [INFO] [stderr] | [INFO] [stderr] 621 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:685:13 [INFO] [stderr] | [INFO] [stderr] 685 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:757:13 [INFO] [stderr] | [INFO] [stderr] 757 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:831:13 [INFO] [stderr] | [INFO] [stderr] 831 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:889:13 [INFO] [stderr] | [INFO] [stderr] 889 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:951:13 [INFO] [stderr] | [INFO] [stderr] 951 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1018:13 [INFO] [stderr] | [INFO] [stderr] 1018 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1084:13 [INFO] [stderr] | [INFO] [stderr] 1084 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1164:13 [INFO] [stderr] | [INFO] [stderr] 1164 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1224:13 [INFO] [stderr] | [INFO] [stderr] 1224 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1367:13 [INFO] [stderr] | [INFO] [stderr] 1367 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1393:13 [INFO] [stderr] | [INFO] [stderr] 1393 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1499:13 [INFO] [stderr] | [INFO] [stderr] 1499 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1573:13 [INFO] [stderr] | [INFO] [stderr] 1573 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1613:13 [INFO] [stderr] | [INFO] [stderr] 1613 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/api.rs:1601:24 [INFO] [stderr] | [INFO] [stderr] 1601 | } else { [INFO] [stderr] | ________________________^ [INFO] [stderr] 1602 | | if c.unacked.remove(&method.delivery_tag) { [INFO] [stderr] 1603 | | c.acked.insert(method.delivery_tag); [INFO] [stderr] 1604 | | } [INFO] [stderr] 1605 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::collapsible_if)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 1601 | } else if c.unacked.remove(&method.delivery_tag) { [INFO] [stderr] 1602 | c.acked.insert(method.delivery_tag); [INFO] [stderr] 1603 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/api.rs:1653:13 [INFO] [stderr] | [INFO] [stderr] 1653 | return Err(ErrorKind::UnexpectedAnswer.into()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `Err(ErrorKind::UnexpectedAnswer.into())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/api.rs:1641:24 [INFO] [stderr] | [INFO] [stderr] 1641 | } else { [INFO] [stderr] | ________________________^ [INFO] [stderr] 1642 | | if c.unacked.remove(&method.delivery_tag) { [INFO] [stderr] 1643 | | c.nacked.insert(method.delivery_tag); [INFO] [stderr] 1644 | | } [INFO] [stderr] 1645 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 1641 | } else if c.unacked.remove(&method.delivery_tag) { [INFO] [stderr] 1642 | c.nacked.insert(method.delivery_tag); [INFO] [stderr] 1643 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: slow zero-filling initialization [INFO] [stderr] --> src/buffer.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 16 | let mut v = Vec::with_capacity(capacity); [INFO] [stderr] | ---------------------------- help: consider replace allocation with: `vec![0; capacity]` [INFO] [stderr] 17 | v.extend(repeat(0).take(capacity)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::slow_vector_initialization)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/buffer.rs:139:9 [INFO] [stderr] | [INFO] [stderr] 139 | self.end = self.end - (length - data_len); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.end -= (length - data_len)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::assign_op_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/buffer.rs:163:7 [INFO] [stderr] | [INFO] [stderr] 163 | self.end = self.end + data_len; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.end += data_len` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: The function/method `write` doesn't need a mutable reference [INFO] [stderr] --> src/io.rs:96:24 [INFO] [stderr] | [INFO] [stderr] 96 | match writer.write(&mut send_buffer.data()) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unnecessary_mut_passed)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stderr] [INFO] [stderr] warning: you should consider adding a `Default` implementation for `connection::Connection` [INFO] [stderr] --> src/connection.rs:106:3 [INFO] [stderr] | [INFO] [stderr] 106 | / pub fn new() -> Connection { [INFO] [stderr] 107 | | let mut h = HashMap::new(); [INFO] [stderr] 108 | | h.insert(0, Channel::global()); [INFO] [stderr] 109 | | [INFO] [stderr] ... | [INFO] [stderr] 127 | | } [INFO] [stderr] 128 | | } [INFO] [stderr] | |___^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 104 | impl Default for connection::Connection { [INFO] [stderr] 105 | fn default() -> Self { [INFO] [stderr] 106 | Self::new() [INFO] [stderr] 107 | } [INFO] [stderr] 108 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/connection.rs:179:5 [INFO] [stderr] | [INFO] [stderr] 179 | self.channels.get_mut(&channel_id).map(|c| c.state = new_state); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(c) = self.channels.get_mut(&channel_id) { ... }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::option_map_unit_fn)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/connection.rs:213:5 [INFO] [stderr] | [INFO] [stderr] 213 | / self.channels [INFO] [stderr] 214 | | .get_mut(&channel_id) [INFO] [stderr] 215 | | .map(|c| c.awaiting.push_back(answer)); [INFO] [stderr] | |____________________________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 213 | if let Some(c) = self.channels [INFO] [stderr] 214 | .get_mut(&channel_id) { c.awaiting.push_back(answer) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name [INFO] [stderr] --> src/connection.rs:251:22 [INFO] [stderr] | [INFO] [stderr] 251 | pub fn is_finished(&mut self, id: RequestId) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::wrong_self_convention)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 32 [INFO] [stderr] --> src/connection.rs:397:3 [INFO] [stderr] | [INFO] [stderr] 397 | / pub fn handle_global_method(&mut self, c: AMQPClass) { [INFO] [stderr] 398 | | match self.state { [INFO] [stderr] 399 | | ConnectionState::Initial | ConnectionState::Closed | ConnectionState::Error => { [INFO] [stderr] 400 | | self.state = ConnectionState::Error [INFO] [stderr] ... | [INFO] [stderr] 550 | | }; [INFO] [stderr] 551 | | } [INFO] [stderr] | |___^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a call to `default` [INFO] [stderr] --> src/connection.rs:415:33 [INFO] [stderr] | [INFO] [stderr] 415 | let saved_creds = self.credentials.take().unwrap_or(Credentials::default()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `self.credentials.take().unwrap_or_default()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/connection.rs:456:88 [INFO] [stderr] | [INFO] [stderr] 456 | } else if t.heartbeat != 0 && t.heartbeat < self.configuration.heartbeat { [INFO] [stderr] | ________________________________________________________________________________________^ [INFO] [stderr] 457 | | // If both us and the server want heartbeat enabled, pick the lowest value. [INFO] [stderr] 458 | | self.configuration.heartbeat = t.heartbeat; [INFO] [stderr] 459 | | } [INFO] [stderr] | |_______________^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::if_same_then_else)] on by default [INFO] [stderr] note: same as this [INFO] [stderr] --> src/connection.rs:453:52 [INFO] [stderr] | [INFO] [stderr] 453 | if self.configuration.heartbeat == 0 { [INFO] [stderr] | ____________________________________________________^ [INFO] [stderr] 454 | | // If we disable the heartbeat but the server don't, follow him and enable it too [INFO] [stderr] 455 | | self.configuration.heartbeat = t.heartbeat; [INFO] [stderr] 456 | | } else if t.heartbeat != 0 && t.heartbeat < self.configuration.heartbeat { [INFO] [stderr] | |_______________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/connection.rs:465:74 [INFO] [stderr] | [INFO] [stderr] 465 | } else if t.channel_max < self.configuration.channel_max { [INFO] [stderr] | __________________________________________________________________________^ [INFO] [stderr] 466 | | // If both us and the server specified a channel_max, pick the lowest value. [INFO] [stderr] 467 | | self.configuration.channel_max = t.channel_max; [INFO] [stderr] 468 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] note: same as this [INFO] [stderr] --> src/connection.rs:462:56 [INFO] [stderr] | [INFO] [stderr] 462 | if self.configuration.channel_max == 0 { [INFO] [stderr] | ________________________________________________________^ [INFO] [stderr] 463 | | // 0 means we want to take the server's value [INFO] [stderr] 464 | | self.configuration.channel_max = t.channel_max; [INFO] [stderr] 465 | | } else if t.channel_max < self.configuration.channel_max { [INFO] [stderr] | |_________________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/connection.rs:478:70 [INFO] [stderr] | [INFO] [stderr] 478 | } else if t.frame_max < self.configuration.frame_max { [INFO] [stderr] | ______________________________________________________________________^ [INFO] [stderr] 479 | | // If both us and the server specified a frame_max, pick the lowest value. [INFO] [stderr] 480 | | self.configuration.frame_max = t.frame_max; [INFO] [stderr] 481 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] note: same as this [INFO] [stderr] --> src/connection.rs:475:54 [INFO] [stderr] | [INFO] [stderr] 475 | if self.configuration.frame_max == 0 { [INFO] [stderr] | ______________________________________________________^ [INFO] [stderr] 476 | | // 0 means we want to take the server's value [INFO] [stderr] 477 | | self.configuration.frame_max = t.frame_max; [INFO] [stderr] 478 | | } else if t.frame_max < self.configuration.frame_max { [INFO] [stderr] | |_________________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/connection.rs:605:17 [INFO] [stderr] | [INFO] [stderr] 605 | cs.current_message.as_mut().map(|msg| msg.receive_content(payload)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(msg) = cs.current_message.as_mut() { msg.receive_content(payload) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/connection.rs:611:15 [INFO] [stderr] | [INFO] [stderr] 611 | q.current_get_message.as_mut().map(|msg| msg.delivery.receive_content(payload)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(msg) = q.current_get_message.as_mut() { msg.delivery.receive_content(payload) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:228:9 [INFO] [stderr] | [INFO] [stderr] 228 | self.channels.get_mut(&_channel_id).map(|c| c.send_flow = method.active); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:263:13 [INFO] [stderr] | [INFO] [stderr] 263 | self.channels.get_mut(&_channel_id).map(|c| c.receive_flow = method.active); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (8/7) [INFO] [stderr] --> src/api.rs:368:5 [INFO] [stderr] | [INFO] [stderr] 368 | / pub fn access_request(&mut self, [INFO] [stderr] 369 | | _channel_id: u16, [INFO] [stderr] 370 | | realm: ShortString, [INFO] [stderr] 371 | | exclusive: Boolean, [INFO] [stderr] ... | [INFO] [stderr] 403 | | }) [INFO] [stderr] 404 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::too_many_arguments)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:398:13 [INFO] [stderr] | [INFO] [stderr] 398 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 399 | || c.awaiting.push_back(Answer::AwaitingAccessRequestOk(request_id)); [INFO] [stderr] 400 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 401 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (11/7) [INFO] [stderr] --> src/api.rs:433:5 [INFO] [stderr] | [INFO] [stderr] 433 | / pub fn exchange_declare(&mut self, [INFO] [stderr] 434 | | _channel_id: u16, [INFO] [stderr] 435 | | ticket: ShortUInt, [INFO] [stderr] 436 | | exchange: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 473 | | }) [INFO] [stderr] 474 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:468:11 [INFO] [stderr] | [INFO] [stderr] 468 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | ___________^ [INFO] [stderr] | |___________| [INFO] [stderr] | || [INFO] [stderr] 469 | || c.awaiting.push_back(Answer::AwaitingExchangeDeclareOk(request_id)); [INFO] [stderr] 470 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 471 | || }); [INFO] [stderr] | ||____________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_____________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:528:11 [INFO] [stderr] | [INFO] [stderr] 528 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | ___________^ [INFO] [stderr] | |___________| [INFO] [stderr] | || [INFO] [stderr] 529 | || c.awaiting.push_back(Answer::AwaitingExchangeDeleteOk(request_id)); [INFO] [stderr] 530 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 531 | || }); [INFO] [stderr] | ||____________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_____________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (8/7) [INFO] [stderr] --> src/api.rs:562:5 [INFO] [stderr] | [INFO] [stderr] 562 | / pub fn exchange_bind(&mut self, [INFO] [stderr] 563 | | _channel_id: u16, [INFO] [stderr] 564 | | ticket: ShortUInt, [INFO] [stderr] 565 | | destination: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 597 | | }) [INFO] [stderr] 598 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:592:13 [INFO] [stderr] | [INFO] [stderr] 592 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 593 | || c.awaiting.push_back(Answer::AwaitingExchangeBindOk(request_id)); [INFO] [stderr] 594 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 595 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (8/7) [INFO] [stderr] --> src/api.rs:626:5 [INFO] [stderr] | [INFO] [stderr] 626 | / pub fn exchange_unbind(&mut self, [INFO] [stderr] 627 | | _channel_id: u16, [INFO] [stderr] 628 | | ticket: ShortUInt, [INFO] [stderr] 629 | | destination: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 661 | | }) [INFO] [stderr] 662 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:656:13 [INFO] [stderr] | [INFO] [stderr] 656 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 657 | || c.awaiting.push_back(Answer::AwaitingExchangeUnbindOk(request_id)); [INFO] [stderr] 658 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 659 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (10/7) [INFO] [stderr] --> src/api.rs:690:5 [INFO] [stderr] | [INFO] [stderr] 690 | / pub fn queue_declare(&mut self, [INFO] [stderr] 691 | | _channel_id: u16, [INFO] [stderr] 692 | | ticket: ShortUInt, [INFO] [stderr] 693 | | queue: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 728 | | }) [INFO] [stderr] 729 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:723:11 [INFO] [stderr] | [INFO] [stderr] 723 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | ___________^ [INFO] [stderr] | |___________| [INFO] [stderr] | || [INFO] [stderr] 724 | || c.awaiting.push_back(Answer::AwaitingQueueDeclareOk(request_id)); [INFO] [stderr] 725 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 726 | || }); [INFO] [stderr] | ||____________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_____________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:749:13 [INFO] [stderr] | [INFO] [stderr] 749 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 750 | || let q = Queue::new(method.queue.clone(), method.message_count, method.consumer_count); [INFO] [stderr] 751 | || c.queues.insert(method.queue.clone(), q); [INFO] [stderr] 752 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (8/7) [INFO] [stderr] --> src/api.rs:762:5 [INFO] [stderr] | [INFO] [stderr] 762 | / pub fn queue_bind(&mut self, [INFO] [stderr] 763 | | _channel_id: u16, [INFO] [stderr] 764 | | ticket: ShortUInt, [INFO] [stderr] 765 | | queue: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 801 | | }) [INFO] [stderr] 802 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:791:13 [INFO] [stderr] | [INFO] [stderr] 791 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 792 | || let key = (exchange.clone(), routing_key.clone()); [INFO] [stderr] 793 | || c.awaiting.push_back(Answer::AwaitingQueueBindOk(request_id, exchange.clone(), routing_key.clone())); [INFO] [stderr] 794 | || c.queues.get_mut(&queue).map(|q| { [INFO] [stderr] ... || [INFO] [stderr] 798 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 799 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:794:17 [INFO] [stderr] | [INFO] [stderr] 794 | / c.queues.get_mut(&queue).map(|q| { [INFO] [stderr] 795 | | q.bindings.insert(key, Binding::new(exchange, routing_key, nowait) [INFO] [stderr] 796 | | ); [INFO] [stderr] 797 | | }); [INFO] [stderr] | |__________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 794 | if let Some(q) = c.queues.get_mut(&queue) { q.bindings.insert(key, Binding::new(exchange, routing_key, nowait) [INFO] [stderr] 795 | ); } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:822:13 [INFO] [stderr] | [INFO] [stderr] 822 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 823 | || for ref mut q in c.queues.values_mut() { [INFO] [stderr] 824 | || q.bindings.get_mut(&key).map(|b| b.active = true); [INFO] [stderr] 825 | || } [INFO] [stderr] 826 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: `ref` on an entire `let` pattern is discouraged, take a reference with `&` instead [INFO] [stderr] --> src/api.rs:823:19 [INFO] [stderr] | [INFO] [stderr] 823 | for ref mut q in c.queues.values_mut() { [INFO] [stderr] | ^^^^^^^^^ --------------------- help: try: `let q = &mut c.queues.values_mut();` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::toplevel_ref_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:824:17 [INFO] [stderr] | [INFO] [stderr] 824 | q.bindings.get_mut(&key).map(|b| b.active = true); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(b) = q.bindings.get_mut(&key) { ... }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:859:13 [INFO] [stderr] | [INFO] [stderr] 859 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 860 | || c.awaiting.push_back(Answer::AwaitingQueuePurgeOk(request_id, queue.clone())); [INFO] [stderr] 861 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 862 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:921:13 [INFO] [stderr] | [INFO] [stderr] 921 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 922 | || c.awaiting.push_back(Answer::AwaitingQueueDeleteOk(request_id, queue)); [INFO] [stderr] 923 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 924 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:983:13 [INFO] [stderr] | [INFO] [stderr] 983 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 984 | || c.awaiting.push_back(Answer::AwaitingQueueUnbindOk(request_id, exchange, routing_key)); [INFO] [stderr] 985 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 986 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1009:13 [INFO] [stderr] | [INFO] [stderr] 1009 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1010 | || for ref mut q in c.queues.values_mut() { [INFO] [stderr] 1011 | || q.bindings.remove(&key); [INFO] [stderr] 1012 | || } [INFO] [stderr] 1013 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: `ref` on an entire `let` pattern is discouraged, take a reference with `&` instead [INFO] [stderr] --> src/api.rs:1010:19 [INFO] [stderr] | [INFO] [stderr] 1010 | for ref mut q in c.queues.values_mut() { [INFO] [stderr] | ^^^^^^^^^ --------------------- help: try: `let q = &mut c.queues.values_mut();` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1046:13 [INFO] [stderr] | [INFO] [stderr] 1046 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1047 | || c.awaiting.push_back(Answer::AwaitingBasicQosOk(request_id, prefetch_size, prefetch_count, global)); [INFO] [stderr] 1048 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1049 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1075:15 [INFO] [stderr] | [INFO] [stderr] 1075 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _______________^ [INFO] [stderr] | |_______________| [INFO] [stderr] | || [INFO] [stderr] 1076 | || c.prefetch_size = prefetch_size; [INFO] [stderr] 1077 | || c.prefetch_count = prefetch_count; [INFO] [stderr] 1078 | || }); [INFO] [stderr] | ||________________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_________________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (11/7) [INFO] [stderr] --> src/api.rs:1089:5 [INFO] [stderr] | [INFO] [stderr] 1089 | / pub fn basic_consume(&mut self, [INFO] [stderr] 1090 | | _channel_id: u16, [INFO] [stderr] 1091 | | ticket: ShortUInt, [INFO] [stderr] 1092 | | queue: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 1130 | | }) [INFO] [stderr] 1131 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1123:13 [INFO] [stderr] | [INFO] [stderr] 1123 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1124 | || c.awaiting.push_back(Answer::AwaitingBasicConsumeOk( [INFO] [stderr] 1125 | || request_id, queue, consumer_tag, no_local, no_ack, exclusive, nowait, subscriber [INFO] [stderr] 1126 | || )); [INFO] [stderr] 1127 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1128 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1190:13 [INFO] [stderr] | [INFO] [stderr] 1190 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1191 | || c.awaiting.push_back(Answer::AwaitingBasicCancelOk(request_id)); [INFO] [stderr] 1192 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1193 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1215:13 [INFO] [stderr] | [INFO] [stderr] 1215 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1216 | || for ref mut q in c.queues.values_mut() { [INFO] [stderr] 1217 | || q.consumers.remove(&method.consumer_tag); [INFO] [stderr] 1218 | || } [INFO] [stderr] 1219 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: `ref` on an entire `let` pattern is discouraged, take a reference with `&` instead [INFO] [stderr] --> src/api.rs:1216:19 [INFO] [stderr] | [INFO] [stderr] 1216 | for ref mut q in c.queues.values_mut() { [INFO] [stderr] | ^^^^^^^^^ --------------------- help: try: `let q = &mut c.queues.values_mut();` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1284:9 [INFO] [stderr] | [INFO] [stderr] 1284 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _________^ [INFO] [stderr] | |_________| [INFO] [stderr] | || [INFO] [stderr] 1285 | || for (ref queue_name, ref mut q) in &mut c.queues { [INFO] [stderr] 1286 | || c.state = ChannelState::WillReceiveContent(queue_name.to_string(), Some(method.consumer_tag.to_string())); [INFO] [stderr] 1287 | || q.consumers.get_mut(&method.consumer_tag).map(|cs| { [INFO] [stderr] ... || [INFO] [stderr] 1296 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1297 | || }); [INFO] [stderr] | ||__________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |___________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1287:15 [INFO] [stderr] | [INFO] [stderr] 1287 | / q.consumers.get_mut(&method.consumer_tag).map(|cs| { [INFO] [stderr] 1288 | | cs.current_message = Some(Delivery::new( [INFO] [stderr] 1289 | | method.delivery_tag, [INFO] [stderr] 1290 | | method.exchange.to_string(), [INFO] [stderr] ... | [INFO] [stderr] 1293 | | )); [INFO] [stderr] 1294 | | }); [INFO] [stderr] | |________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 1287 | if let Some(cs) = q.consumers.get_mut(&method.consumer_tag) { cs.current_message = Some(Delivery::new( [INFO] [stderr] 1288 | method.delivery_tag, [INFO] [stderr] 1289 | method.exchange.to_string(), [INFO] [stderr] 1290 | method.routing_key.to_string(), [INFO] [stderr] 1291 | method.redelivered [INFO] [stderr] 1292 | )); } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1324:13 [INFO] [stderr] | [INFO] [stderr] 1324 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1325 | || c.awaiting.push_back(Answer::AwaitingBasicGetAnswer(request_id, queue.clone())); [INFO] [stderr] 1326 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1327 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1469:13 [INFO] [stderr] | [INFO] [stderr] 1469 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1470 | || c.awaiting.push_back(Answer::AwaitingBasicRecoverOk(request_id)); [INFO] [stderr] 1471 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1472 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1540:13 [INFO] [stderr] | [INFO] [stderr] 1540 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1541 | || c.awaiting.push_back(Answer::AwaitingConfirmSelectOk(request_id)); [INFO] [stderr] 1542 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1543 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1565:13 [INFO] [stderr] | [INFO] [stderr] 1565 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1566 | || c.confirm = true; [INFO] [stderr] 1567 | || c.message_count = 1; [INFO] [stderr] 1568 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1595:13 [INFO] [stderr] | [INFO] [stderr] 1595 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1596 | || if c.confirm { [INFO] [stderr] 1597 | || if method.multiple { [INFO] [stderr] 1598 | || let h: HashSet = c.unacked.iter().filter(|elem| *elem <= &method.delivery_tag).cloned().collect(); [INFO] [stderr] ... || [INFO] [stderr] 1606 | || } [INFO] [stderr] 1607 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: taken reference of right operand [INFO] [stderr] --> src/api.rs:1598:72 [INFO] [stderr] | [INFO] [stderr] 1598 | let h: HashSet = c.unacked.iter().filter(|elem| *elem <= &method.delivery_tag).cloned().collect(); [INFO] [stderr] | ^^^^^^^^^-------------------- [INFO] [stderr] | | [INFO] [stderr] | help: use the right value directly: `method.delivery_tag` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::op_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1635:13 [INFO] [stderr] | [INFO] [stderr] 1635 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1636 | || if c.confirm { [INFO] [stderr] 1637 | || if method.multiple { [INFO] [stderr] 1638 | || let h: HashSet = c.unacked.iter().filter(|elem| *elem <= &method.delivery_tag).cloned().collect(); [INFO] [stderr] ... || [INFO] [stderr] 1646 | || } [INFO] [stderr] 1647 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: taken reference of right operand [INFO] [stderr] --> src/api.rs:1638:72 [INFO] [stderr] | [INFO] [stderr] 1638 | let h: HashSet = c.unacked.iter().filter(|elem| *elem <= &method.delivery_tag).cloned().collect(); [INFO] [stderr] | ^^^^^^^^^-------------------- [INFO] [stderr] | | [INFO] [stderr] | help: use the right value directly: `method.delivery_tag` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `lapin-async`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: slow zero-filling initialization [INFO] [stderr] --> src/buffer.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 16 | let mut v = Vec::with_capacity(capacity); [INFO] [stderr] | ---------------------------- help: consider replace allocation with: `vec![0; capacity]` [INFO] [stderr] 17 | v.extend(repeat(0).take(capacity)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::slow_vector_initialization)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/buffer.rs:139:9 [INFO] [stderr] | [INFO] [stderr] 139 | self.end = self.end - (length - data_len); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.end -= (length - data_len)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::assign_op_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/buffer.rs:163:7 [INFO] [stderr] | [INFO] [stderr] 163 | self.end = self.end + data_len; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.end += data_len` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] error: handle written amount returned or use `Write::write_all` instead [INFO] [stderr] --> src/buffer.rs:233:5 [INFO] [stderr] | [INFO] [stderr] 233 | b.write(&b"abcdefgh"[..]).expect("Failed to write to buffer"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::unused_io_amount)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount [INFO] [stderr] [INFO] [stderr] error: handle written amount returned or use `Write::write_all` instead [INFO] [stderr] --> src/buffer.rs:249:5 [INFO] [stderr] | [INFO] [stderr] 249 | b.write(&b"abcdefgh"[..]).expect("Failed to write to buffer"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount [INFO] [stderr] [INFO] [stderr] warning: The function/method `write` doesn't need a mutable reference [INFO] [stderr] --> src/io.rs:96:24 [INFO] [stderr] | [INFO] [stderr] 96 | match writer.write(&mut send_buffer.data()) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unnecessary_mut_passed)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stderr] [INFO] [stderr] warning: you should consider adding a `Default` implementation for `connection::Connection` [INFO] [stderr] --> src/connection.rs:106:3 [INFO] [stderr] | [INFO] [stderr] 106 | / pub fn new() -> Connection { [INFO] [stderr] 107 | | let mut h = HashMap::new(); [INFO] [stderr] 108 | | h.insert(0, Channel::global()); [INFO] [stderr] 109 | | [INFO] [stderr] ... | [INFO] [stderr] 127 | | } [INFO] [stderr] 128 | | } [INFO] [stderr] | |___^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 104 | impl Default for connection::Connection { [INFO] [stderr] 105 | fn default() -> Self { [INFO] [stderr] 106 | Self::new() [INFO] [stderr] 107 | } [INFO] [stderr] 108 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/connection.rs:179:5 [INFO] [stderr] | [INFO] [stderr] 179 | self.channels.get_mut(&channel_id).map(|c| c.state = new_state); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(c) = self.channels.get_mut(&channel_id) { ... }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::option_map_unit_fn)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/connection.rs:213:5 [INFO] [stderr] | [INFO] [stderr] 213 | / self.channels [INFO] [stderr] 214 | | .get_mut(&channel_id) [INFO] [stderr] 215 | | .map(|c| c.awaiting.push_back(answer)); [INFO] [stderr] | |____________________________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 213 | if let Some(c) = self.channels [INFO] [stderr] 214 | .get_mut(&channel_id) { c.awaiting.push_back(answer) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name [INFO] [stderr] --> src/connection.rs:251:22 [INFO] [stderr] | [INFO] [stderr] 251 | pub fn is_finished(&mut self, id: RequestId) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::wrong_self_convention)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 32 [INFO] [stderr] --> src/connection.rs:397:3 [INFO] [stderr] | [INFO] [stderr] 397 | / pub fn handle_global_method(&mut self, c: AMQPClass) { [INFO] [stderr] 398 | | match self.state { [INFO] [stderr] 399 | | ConnectionState::Initial | ConnectionState::Closed | ConnectionState::Error => { [INFO] [stderr] 400 | | self.state = ConnectionState::Error [INFO] [stderr] ... | [INFO] [stderr] 550 | | }; [INFO] [stderr] 551 | | } [INFO] [stderr] | |___^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a call to `default` [INFO] [stderr] --> src/connection.rs:415:33 [INFO] [stderr] | [INFO] [stderr] 415 | let saved_creds = self.credentials.take().unwrap_or(Credentials::default()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `self.credentials.take().unwrap_or_default()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/connection.rs:456:88 [INFO] [stderr] | [INFO] [stderr] 456 | } else if t.heartbeat != 0 && t.heartbeat < self.configuration.heartbeat { [INFO] [stderr] | ________________________________________________________________________________________^ [INFO] [stderr] 457 | | // If both us and the server want heartbeat enabled, pick the lowest value. [INFO] [stderr] 458 | | self.configuration.heartbeat = t.heartbeat; [INFO] [stderr] 459 | | } [INFO] [stderr] | |_______________^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::if_same_then_else)] on by default [INFO] [stderr] note: same as this [INFO] [stderr] --> src/connection.rs:453:52 [INFO] [stderr] | [INFO] [stderr] 453 | if self.configuration.heartbeat == 0 { [INFO] [stderr] | ____________________________________________________^ [INFO] [stderr] 454 | | // If we disable the heartbeat but the server don't, follow him and enable it too [INFO] [stderr] 455 | | self.configuration.heartbeat = t.heartbeat; [INFO] [stderr] 456 | | } else if t.heartbeat != 0 && t.heartbeat < self.configuration.heartbeat { [INFO] [stderr] | |_______________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/connection.rs:465:74 [INFO] [stderr] | [INFO] [stderr] 465 | } else if t.channel_max < self.configuration.channel_max { [INFO] [stderr] | __________________________________________________________________________^ [INFO] [stderr] 466 | | // If both us and the server specified a channel_max, pick the lowest value. [INFO] [stderr] 467 | | self.configuration.channel_max = t.channel_max; [INFO] [stderr] 468 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] note: same as this [INFO] [stderr] --> src/connection.rs:462:56 [INFO] [stderr] | [INFO] [stderr] 462 | if self.configuration.channel_max == 0 { [INFO] [stderr] | ________________________________________________________^ [INFO] [stderr] 463 | | // 0 means we want to take the server's value [INFO] [stderr] 464 | | self.configuration.channel_max = t.channel_max; [INFO] [stderr] 465 | | } else if t.channel_max < self.configuration.channel_max { [INFO] [stderr] | |_________________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/connection.rs:478:70 [INFO] [stderr] | [INFO] [stderr] 478 | } else if t.frame_max < self.configuration.frame_max { [INFO] [stderr] | ______________________________________________________________________^ [INFO] [stderr] 479 | | // If both us and the server specified a frame_max, pick the lowest value. [INFO] [stderr] 480 | | self.configuration.frame_max = t.frame_max; [INFO] [stderr] 481 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] note: same as this [INFO] [stderr] --> src/connection.rs:475:54 [INFO] [stderr] | [INFO] [stderr] 475 | if self.configuration.frame_max == 0 { [INFO] [stderr] | ______________________________________________________^ [INFO] [stderr] 476 | | // 0 means we want to take the server's value [INFO] [stderr] 477 | | self.configuration.frame_max = t.frame_max; [INFO] [stderr] 478 | | } else if t.frame_max < self.configuration.frame_max { [INFO] [stderr] | |_________________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/connection.rs:605:17 [INFO] [stderr] | [INFO] [stderr] 605 | cs.current_message.as_mut().map(|msg| msg.receive_content(payload)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(msg) = cs.current_message.as_mut() { msg.receive_content(payload) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/connection.rs:611:15 [INFO] [stderr] | [INFO] [stderr] 611 | q.current_get_message.as_mut().map(|msg| msg.delivery.receive_content(payload)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(msg) = q.current_get_message.as_mut() { msg.delivery.receive_content(payload) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/connection.rs:695:9 [INFO] [stderr] | [INFO] [stderr] 695 | conn.channels.get_mut(&channel_id).map(|c| { [INFO] [stderr] | _________^ [INFO] [stderr] | |_________| [INFO] [stderr] | || [INFO] [stderr] 696 | || c.queues.insert(queue_name.clone(), queue); [INFO] [stderr] 697 | || }); [INFO] [stderr] | ||__________^- help: try this: `if let Some(c) = conn.channels.get_mut(&channel_id) { c.queues.insert(queue_name.clone(), queue); }` [INFO] [stderr] | |___________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/connection.rs:743:57 [INFO] [stderr] | [INFO] [stderr] 743 | let body_frame = AMQPFrame::Body(channel_id, "{}".as_bytes().to_vec()); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"{}"` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::string_lit_as_bytes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/connection.rs:771:9 [INFO] [stderr] | [INFO] [stderr] 771 | conn.channels.get_mut(&channel_id).map(|c| { [INFO] [stderr] | _________^ [INFO] [stderr] | |_________| [INFO] [stderr] | || [INFO] [stderr] 772 | || c.queues.insert(queue_name.clone(), queue); [INFO] [stderr] 773 | || }); [INFO] [stderr] | ||__________^- help: try this: `if let Some(c) = conn.channels.get_mut(&channel_id) { c.queues.insert(queue_name.clone(), queue); }` [INFO] [stderr] | |___________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:228:9 [INFO] [stderr] | [INFO] [stderr] 228 | self.channels.get_mut(&_channel_id).map(|c| c.send_flow = method.active); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:263:13 [INFO] [stderr] | [INFO] [stderr] 263 | self.channels.get_mut(&_channel_id).map(|c| c.receive_flow = method.active); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (8/7) [INFO] [stderr] --> src/api.rs:368:5 [INFO] [stderr] | [INFO] [stderr] 368 | / pub fn access_request(&mut self, [INFO] [stderr] 369 | | _channel_id: u16, [INFO] [stderr] 370 | | realm: ShortString, [INFO] [stderr] 371 | | exclusive: Boolean, [INFO] [stderr] ... | [INFO] [stderr] 403 | | }) [INFO] [stderr] 404 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::too_many_arguments)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:398:13 [INFO] [stderr] | [INFO] [stderr] 398 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 399 | || c.awaiting.push_back(Answer::AwaitingAccessRequestOk(request_id)); [INFO] [stderr] 400 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 401 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (11/7) [INFO] [stderr] --> src/api.rs:433:5 [INFO] [stderr] | [INFO] [stderr] 433 | / pub fn exchange_declare(&mut self, [INFO] [stderr] 434 | | _channel_id: u16, [INFO] [stderr] 435 | | ticket: ShortUInt, [INFO] [stderr] 436 | | exchange: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 473 | | }) [INFO] [stderr] 474 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:468:11 [INFO] [stderr] | [INFO] [stderr] 468 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | ___________^ [INFO] [stderr] | |___________| [INFO] [stderr] | || [INFO] [stderr] 469 | || c.awaiting.push_back(Answer::AwaitingExchangeDeclareOk(request_id)); [INFO] [stderr] 470 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 471 | || }); [INFO] [stderr] | ||____________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_____________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:528:11 [INFO] [stderr] | [INFO] [stderr] 528 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | ___________^ [INFO] [stderr] | |___________| [INFO] [stderr] | || [INFO] [stderr] 529 | || c.awaiting.push_back(Answer::AwaitingExchangeDeleteOk(request_id)); [INFO] [stderr] 530 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 531 | || }); [INFO] [stderr] | ||____________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_____________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (8/7) [INFO] [stderr] --> src/api.rs:562:5 [INFO] [stderr] | [INFO] [stderr] 562 | / pub fn exchange_bind(&mut self, [INFO] [stderr] 563 | | _channel_id: u16, [INFO] [stderr] 564 | | ticket: ShortUInt, [INFO] [stderr] 565 | | destination: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 597 | | }) [INFO] [stderr] 598 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:592:13 [INFO] [stderr] | [INFO] [stderr] 592 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 593 | || c.awaiting.push_back(Answer::AwaitingExchangeBindOk(request_id)); [INFO] [stderr] 594 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 595 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (8/7) [INFO] [stderr] --> src/api.rs:626:5 [INFO] [stderr] | [INFO] [stderr] 626 | / pub fn exchange_unbind(&mut self, [INFO] [stderr] 627 | | _channel_id: u16, [INFO] [stderr] 628 | | ticket: ShortUInt, [INFO] [stderr] 629 | | destination: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 661 | | }) [INFO] [stderr] 662 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:656:13 [INFO] [stderr] | [INFO] [stderr] 656 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 657 | || c.awaiting.push_back(Answer::AwaitingExchangeUnbindOk(request_id)); [INFO] [stderr] 658 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 659 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (10/7) [INFO] [stderr] --> src/api.rs:690:5 [INFO] [stderr] | [INFO] [stderr] 690 | / pub fn queue_declare(&mut self, [INFO] [stderr] 691 | | _channel_id: u16, [INFO] [stderr] 692 | | ticket: ShortUInt, [INFO] [stderr] 693 | | queue: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 728 | | }) [INFO] [stderr] 729 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:723:11 [INFO] [stderr] | [INFO] [stderr] 723 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | ___________^ [INFO] [stderr] | |___________| [INFO] [stderr] | || [INFO] [stderr] 724 | || c.awaiting.push_back(Answer::AwaitingQueueDeclareOk(request_id)); [INFO] [stderr] 725 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 726 | || }); [INFO] [stderr] | ||____________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_____________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:749:13 [INFO] [stderr] | [INFO] [stderr] 749 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 750 | || let q = Queue::new(method.queue.clone(), method.message_count, method.consumer_count); [INFO] [stderr] 751 | || c.queues.insert(method.queue.clone(), q); [INFO] [stderr] 752 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (8/7) [INFO] [stderr] --> src/api.rs:762:5 [INFO] [stderr] | [INFO] [stderr] 762 | / pub fn queue_bind(&mut self, [INFO] [stderr] 763 | | _channel_id: u16, [INFO] [stderr] 764 | | ticket: ShortUInt, [INFO] [stderr] 765 | | queue: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 801 | | }) [INFO] [stderr] 802 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:791:13 [INFO] [stderr] | [INFO] [stderr] 791 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 792 | || let key = (exchange.clone(), routing_key.clone()); [INFO] [stderr] 793 | || c.awaiting.push_back(Answer::AwaitingQueueBindOk(request_id, exchange.clone(), routing_key.clone())); [INFO] [stderr] 794 | || c.queues.get_mut(&queue).map(|q| { [INFO] [stderr] ... || [INFO] [stderr] 798 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 799 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:794:17 [INFO] [stderr] | [INFO] [stderr] 794 | / c.queues.get_mut(&queue).map(|q| { [INFO] [stderr] 795 | | q.bindings.insert(key, Binding::new(exchange, routing_key, nowait) [INFO] [stderr] 796 | | ); [INFO] [stderr] 797 | | }); [INFO] [stderr] | |__________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 794 | if let Some(q) = c.queues.get_mut(&queue) { q.bindings.insert(key, Binding::new(exchange, routing_key, nowait) [INFO] [stderr] 795 | ); } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:822:13 [INFO] [stderr] | [INFO] [stderr] 822 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 823 | || for ref mut q in c.queues.values_mut() { [INFO] [stderr] 824 | || q.bindings.get_mut(&key).map(|b| b.active = true); [INFO] [stderr] 825 | || } [INFO] [stderr] 826 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: `ref` on an entire `let` pattern is discouraged, take a reference with `&` instead [INFO] [stderr] --> src/api.rs:823:19 [INFO] [stderr] | [INFO] [stderr] 823 | for ref mut q in c.queues.values_mut() { [INFO] [stderr] | ^^^^^^^^^ --------------------- help: try: `let q = &mut c.queues.values_mut();` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::toplevel_ref_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:824:17 [INFO] [stderr] | [INFO] [stderr] 824 | q.bindings.get_mut(&key).map(|b| b.active = true); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stderr] | | [INFO] [stderr] | help: try this: `if let Some(b) = q.bindings.get_mut(&key) { ... }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:859:13 [INFO] [stderr] | [INFO] [stderr] 859 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 860 | || c.awaiting.push_back(Answer::AwaitingQueuePurgeOk(request_id, queue.clone())); [INFO] [stderr] 861 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 862 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:921:13 [INFO] [stderr] | [INFO] [stderr] 921 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 922 | || c.awaiting.push_back(Answer::AwaitingQueueDeleteOk(request_id, queue)); [INFO] [stderr] 923 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 924 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:983:13 [INFO] [stderr] | [INFO] [stderr] 983 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 984 | || c.awaiting.push_back(Answer::AwaitingQueueUnbindOk(request_id, exchange, routing_key)); [INFO] [stderr] 985 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 986 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1009:13 [INFO] [stderr] | [INFO] [stderr] 1009 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1010 | || for ref mut q in c.queues.values_mut() { [INFO] [stderr] 1011 | || q.bindings.remove(&key); [INFO] [stderr] 1012 | || } [INFO] [stderr] 1013 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: `ref` on an entire `let` pattern is discouraged, take a reference with `&` instead [INFO] [stderr] --> src/api.rs:1010:19 [INFO] [stderr] | [INFO] [stderr] 1010 | for ref mut q in c.queues.values_mut() { [INFO] [stderr] | ^^^^^^^^^ --------------------- help: try: `let q = &mut c.queues.values_mut();` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1046:13 [INFO] [stderr] | [INFO] [stderr] 1046 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1047 | || c.awaiting.push_back(Answer::AwaitingBasicQosOk(request_id, prefetch_size, prefetch_count, global)); [INFO] [stderr] 1048 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1049 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1075:15 [INFO] [stderr] | [INFO] [stderr] 1075 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _______________^ [INFO] [stderr] | |_______________| [INFO] [stderr] | || [INFO] [stderr] 1076 | || c.prefetch_size = prefetch_size; [INFO] [stderr] 1077 | || c.prefetch_count = prefetch_count; [INFO] [stderr] 1078 | || }); [INFO] [stderr] | ||________________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_________________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (11/7) [INFO] [stderr] --> src/api.rs:1089:5 [INFO] [stderr] | [INFO] [stderr] 1089 | / pub fn basic_consume(&mut self, [INFO] [stderr] 1090 | | _channel_id: u16, [INFO] [stderr] 1091 | | ticket: ShortUInt, [INFO] [stderr] 1092 | | queue: ShortString, [INFO] [stderr] ... | [INFO] [stderr] 1130 | | }) [INFO] [stderr] 1131 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1123:13 [INFO] [stderr] | [INFO] [stderr] 1123 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1124 | || c.awaiting.push_back(Answer::AwaitingBasicConsumeOk( [INFO] [stderr] 1125 | || request_id, queue, consumer_tag, no_local, no_ack, exclusive, nowait, subscriber [INFO] [stderr] 1126 | || )); [INFO] [stderr] 1127 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1128 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1190:13 [INFO] [stderr] | [INFO] [stderr] 1190 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1191 | || c.awaiting.push_back(Answer::AwaitingBasicCancelOk(request_id)); [INFO] [stderr] 1192 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1193 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1215:13 [INFO] [stderr] | [INFO] [stderr] 1215 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1216 | || for ref mut q in c.queues.values_mut() { [INFO] [stderr] 1217 | || q.consumers.remove(&method.consumer_tag); [INFO] [stderr] 1218 | || } [INFO] [stderr] 1219 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: `ref` on an entire `let` pattern is discouraged, take a reference with `&` instead [INFO] [stderr] --> src/api.rs:1216:19 [INFO] [stderr] | [INFO] [stderr] 1216 | for ref mut q in c.queues.values_mut() { [INFO] [stderr] | ^^^^^^^^^ --------------------- help: try: `let q = &mut c.queues.values_mut();` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1284:9 [INFO] [stderr] | [INFO] [stderr] 1284 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _________^ [INFO] [stderr] | |_________| [INFO] [stderr] | || [INFO] [stderr] 1285 | || for (ref queue_name, ref mut q) in &mut c.queues { [INFO] [stderr] 1286 | || c.state = ChannelState::WillReceiveContent(queue_name.to_string(), Some(method.consumer_tag.to_string())); [INFO] [stderr] 1287 | || q.consumers.get_mut(&method.consumer_tag).map(|cs| { [INFO] [stderr] ... || [INFO] [stderr] 1296 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1297 | || }); [INFO] [stderr] | ||__________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |___________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1287:15 [INFO] [stderr] | [INFO] [stderr] 1287 | / q.consumers.get_mut(&method.consumer_tag).map(|cs| { [INFO] [stderr] 1288 | | cs.current_message = Some(Delivery::new( [INFO] [stderr] 1289 | | method.delivery_tag, [INFO] [stderr] 1290 | | method.exchange.to_string(), [INFO] [stderr] ... | [INFO] [stderr] 1293 | | )); [INFO] [stderr] 1294 | | }); [INFO] [stderr] | |________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 1287 | if let Some(cs) = q.consumers.get_mut(&method.consumer_tag) { cs.current_message = Some(Delivery::new( [INFO] [stderr] 1288 | method.delivery_tag, [INFO] [stderr] 1289 | method.exchange.to_string(), [INFO] [stderr] 1290 | method.routing_key.to_string(), [INFO] [stderr] 1291 | method.redelivered [INFO] [stderr] 1292 | )); } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1324:13 [INFO] [stderr] | [INFO] [stderr] 1324 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1325 | || c.awaiting.push_back(Answer::AwaitingBasicGetAnswer(request_id, queue.clone())); [INFO] [stderr] 1326 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1327 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1469:13 [INFO] [stderr] | [INFO] [stderr] 1469 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1470 | || c.awaiting.push_back(Answer::AwaitingBasicRecoverOk(request_id)); [INFO] [stderr] 1471 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1472 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1540:13 [INFO] [stderr] | [INFO] [stderr] 1540 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1541 | || c.awaiting.push_back(Answer::AwaitingConfirmSelectOk(request_id)); [INFO] [stderr] 1542 | || trace!("channel {} state is now {:?}", _channel_id, c.state); [INFO] [stderr] 1543 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1565:13 [INFO] [stderr] | [INFO] [stderr] 1565 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1566 | || c.confirm = true; [INFO] [stderr] 1567 | || c.message_count = 1; [INFO] [stderr] 1568 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1595:13 [INFO] [stderr] | [INFO] [stderr] 1595 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1596 | || if c.confirm { [INFO] [stderr] 1597 | || if method.multiple { [INFO] [stderr] 1598 | || let h: HashSet = c.unacked.iter().filter(|elem| *elem <= &method.delivery_tag).cloned().collect(); [INFO] [stderr] ... || [INFO] [stderr] 1606 | || } [INFO] [stderr] 1607 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: taken reference of right operand [INFO] [stderr] --> src/api.rs:1598:72 [INFO] [stderr] | [INFO] [stderr] 1598 | let h: HashSet = c.unacked.iter().filter(|elem| *elem <= &method.delivery_tag).cloned().collect(); [INFO] [stderr] | ^^^^^^^^^-------------------- [INFO] [stderr] | | [INFO] [stderr] | help: use the right value directly: `method.delivery_tag` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::op_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stderr] [INFO] [stderr] warning: called `map(f)` on an Option value where `f` is a unit closure [INFO] [stderr] --> src/api.rs:1635:13 [INFO] [stderr] | [INFO] [stderr] 1635 | self.channels.get_mut(&_channel_id).map(|c| { [INFO] [stderr] | _____________^ [INFO] [stderr] | |_____________| [INFO] [stderr] | || [INFO] [stderr] 1636 | || if c.confirm { [INFO] [stderr] 1637 | || if method.multiple { [INFO] [stderr] 1638 | || let h: HashSet = c.unacked.iter().filter(|elem| *elem <= &method.delivery_tag).cloned().collect(); [INFO] [stderr] ... || [INFO] [stderr] 1646 | || } [INFO] [stderr] 1647 | || }); [INFO] [stderr] | ||______________^- help: try this: `if let Some(c) = self.channels.get_mut(&_channel_id) { ... }` [INFO] [stderr] | |_______________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn [INFO] [stderr] [INFO] [stderr] warning: taken reference of right operand [INFO] [stderr] --> src/api.rs:1638:72 [INFO] [stderr] | [INFO] [stderr] 1638 | let h: HashSet = c.unacked.iter().filter(|elem| *elem <= &method.delivery_tag).cloned().collect(); [INFO] [stderr] | ^^^^^^^^^-------------------- [INFO] [stderr] | | [INFO] [stderr] | help: use the right value directly: `method.delivery_tag` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `lapin-async`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "b58269d9b343d7afca4e0fa3c105f83ee485523eee6b43a2d17b55650c437bcc"` [INFO] running `"docker" "rm" "-f" "b58269d9b343d7afca4e0fa3c105f83ee485523eee6b43a2d17b55650c437bcc"` [INFO] [stdout] b58269d9b343d7afca4e0fa3c105f83ee485523eee6b43a2d17b55650c437bcc