[INFO] fetching crate sipmsg 0.2.3... [INFO] linting sipmsg-0.2.3 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate sipmsg 0.2.3 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate sipmsg 0.2.3 [INFO] finished tweaking crates.io crate sipmsg 0.2.3 [INFO] tweaked toml for crates.io crate sipmsg 0.2.3 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sipmsg 0.2.3 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 15 packages to latest compatible versions [INFO] [stderr] Adding memchr v2.3.4 (available: v2.8.0) [INFO] [stderr] Adding nom v6.2.2 (available: v8.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b37dd808130759706a0770e9f787fe5aa18f08a780ee75391d848a2d501f870 [INFO] running `Command { std: "docker" "start" "-a" "2b37dd808130759706a0770e9f787fe5aa18f08a780ee75391d848a2d501f870", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b37dd808130759706a0770e9f787fe5aa18f08a780ee75391d848a2d501f870", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b37dd808130759706a0770e9f787fe5aa18f08a780ee75391d848a2d501f870", kill_on_drop: false }` [INFO] [stdout] 2b37dd808130759706a0770e9f787fe5aa18f08a780ee75391d848a2d501f870 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f81aa2efdcff2c5b8d350515ba1ae6b098db5abbe664088aa80c5cf589ae099d [INFO] running `Command { std: "docker" "start" "-a" "f81aa2efdcff2c5b8d350515ba1ae6b098db5abbe664088aa80c5cf589ae099d", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Compiling nom v6.2.2 [INFO] [stderr] Checking bitvec v0.19.6 [INFO] [stderr] Checking sipmsg v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/common/errorparse.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | code: code, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `code` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/common/errorparse.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | message: message, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `message` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/common/bnfcore.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / /// that can be described by a limited number of characters [INFO] [stdout] 4 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 7 | pub fn is_alpha(c: u8) -> bool { [INFO] [stdout] | --------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! Basic common rules from [INFO] [stdout] 2 ~ //! https://tools.ietf.org/html/rfc2234#section-6.1 and https://tools.ietf.org/html/rfc3261#section-25 [INFO] [stdout] 3 ~ //! that can be described by a limited number of characters [INFO] [stdout] | [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 4 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/common/take_sws_token.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / /// whitespace is often allowed before or after these characters: [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 16 | use crate::common::{ [INFO] [stdout] | - the comment documents this `use` import [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! When tokens are used or separators are used between elements, [INFO] [stdout] 2 ~ //! whitespace is often allowed before or after these characters: [INFO] [stdout] | [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 3 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | const SIP: &'static [u8] = &['S' as u8, 'I' as u8, 'P' as u8]; // SIP [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | const ACK: &'static [u8] = &['A' as u8, 'C' as u8, 'K' as u8]; // ACK [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | const BYE: &'static [u8] = &['B' as u8, 'Y' as u8, 'E' as u8]; // BYE [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | const REG: &'static [u8] = &['R' as u8, 'E' as u8, 'G' as u8]; // REGISTER [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | const CAN: &'static [u8] = &['C' as u8, 'A' as u8, 'N' as u8]; // CANCEL [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | const INF: &'static [u8] = &['I' as u8, 'N' as u8, 'F' as u8]; // INFO [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | const INV: &'static [u8] = &['I' as u8, 'N' as u8, 'V' as u8]; // INVITE [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | const MES: &'static [u8] = &['M' as u8, 'E' as u8, 'S' as u8]; // MESSAGE [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | const NOT: &'static [u8] = &['N' as u8, 'O' as u8, 'T' as u8]; // NOTIFY [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | const OPT: &'static [u8] = &['O' as u8, 'P' as u8, 'T' as u8]; // OPTIONS [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | const PRA: &'static [u8] = &['P' as u8, 'R' as u8, 'A' as u8]; // PRACK [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | const PUB: &'static [u8] = &['P' as u8, 'U' as u8, 'B' as u8]; // PUBLISH [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | const REF: &'static [u8] = &['R' as u8, 'E' as u8, 'F' as u8]; // REFER [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | const SUB: &'static [u8] = &['S' as u8, 'U' as u8, 'B' as u8]; // SUBSCRIBE [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | const UPD: &'static [u8] = &['U' as u8, 'P' as u8, 'D' as u8]; // UPDATE [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/request.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | rl: rl, [INFO] [stdout] | ^^^^^^ help: replace it with: `rl` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/request.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | headers: headers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `headers` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/request.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | body: body, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `body` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/request.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | sip_version: sip_version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `sip_version` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/response.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | sip_version: sip_version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `sip_version` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/response.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | status_code: status_code, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `status_code` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/response.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | sl: sl, [INFO] [stdout] | ^^^^^^ help: replace it with: `sl` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/response.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | headers: headers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `headers` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/response.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | body: body, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `body` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:157:16 [INFO] [stdout] | [INFO] [stdout] 157 | const BS_100: &'static [u8] = "100".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:158:16 [INFO] [stdout] | [INFO] [stdout] 158 | const BS_180: &'static [u8] = "180".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:159:16 [INFO] [stdout] | [INFO] [stdout] 159 | const BS_181: &'static [u8] = "181".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | const BS_182: &'static [u8] = "182".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | const BS_183: &'static [u8] = "183".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | const BS_200: &'static [u8] = "200".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:163:16 [INFO] [stdout] | [INFO] [stdout] 163 | const BS_300: &'static [u8] = "300".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:164:16 [INFO] [stdout] | [INFO] [stdout] 164 | const BS_301: &'static [u8] = "301".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:165:16 [INFO] [stdout] | [INFO] [stdout] 165 | const BS_302: &'static [u8] = "302".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:166:16 [INFO] [stdout] | [INFO] [stdout] 166 | const BS_305: &'static [u8] = "305".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | const BS_380: &'static [u8] = "380".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:168:16 [INFO] [stdout] | [INFO] [stdout] 168 | const BS_400: &'static [u8] = "400".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:169:16 [INFO] [stdout] | [INFO] [stdout] 169 | const BS_401: &'static [u8] = "401".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | const BS_402: &'static [u8] = "402".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:171:16 [INFO] [stdout] | [INFO] [stdout] 171 | const BS_403: &'static [u8] = "403".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:172:16 [INFO] [stdout] | [INFO] [stdout] 172 | const BS_404: &'static [u8] = "404".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:173:16 [INFO] [stdout] | [INFO] [stdout] 173 | const BS_405: &'static [u8] = "405".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 174 | const BS_406: &'static [u8] = "406".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | const BS_407: &'static [u8] = "407".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:176:16 [INFO] [stdout] | [INFO] [stdout] 176 | const BS_408: &'static [u8] = "408".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:177:16 [INFO] [stdout] | [INFO] [stdout] 177 | const BS_410: &'static [u8] = "410".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 178 | const BS_413: &'static [u8] = "413".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:179:16 [INFO] [stdout] | [INFO] [stdout] 179 | const BS_414: &'static [u8] = "414".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:180:16 [INFO] [stdout] | [INFO] [stdout] 180 | const BS_415: &'static [u8] = "415".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:181:16 [INFO] [stdout] | [INFO] [stdout] 181 | const BS_416: &'static [u8] = "416".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:182:16 [INFO] [stdout] | [INFO] [stdout] 182 | const BS_420: &'static [u8] = "420".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | const BS_421: &'static [u8] = "421".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:184:16 [INFO] [stdout] | [INFO] [stdout] 184 | const BS_423: &'static [u8] = "423".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 185 | const BS_480: &'static [u8] = "480".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | const BS_481: &'static [u8] = "481".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:187:16 [INFO] [stdout] | [INFO] [stdout] 187 | const BS_482: &'static [u8] = "482".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:188:16 [INFO] [stdout] | [INFO] [stdout] 188 | const BS_483: &'static [u8] = "483".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:189:16 [INFO] [stdout] | [INFO] [stdout] 189 | const BS_484: &'static [u8] = "484".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:190:16 [INFO] [stdout] | [INFO] [stdout] 190 | const BS_485: &'static [u8] = "485".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:191:16 [INFO] [stdout] | [INFO] [stdout] 191 | const BS_486: &'static [u8] = "486".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:192:16 [INFO] [stdout] | [INFO] [stdout] 192 | const BS_487: &'static [u8] = "487".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:193:16 [INFO] [stdout] | [INFO] [stdout] 193 | const BS_488: &'static [u8] = "488".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:194:16 [INFO] [stdout] | [INFO] [stdout] 194 | const BS_491: &'static [u8] = "491".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:195:16 [INFO] [stdout] | [INFO] [stdout] 195 | const BS_493: &'static [u8] = "493".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:196:16 [INFO] [stdout] | [INFO] [stdout] 196 | const BS_500: &'static [u8] = "500".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:197:16 [INFO] [stdout] | [INFO] [stdout] 197 | const BS_501: &'static [u8] = "501".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:198:16 [INFO] [stdout] | [INFO] [stdout] 198 | const BS_502: &'static [u8] = "502".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:199:16 [INFO] [stdout] | [INFO] [stdout] 199 | const BS_503: &'static [u8] = "503".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:200:16 [INFO] [stdout] | [INFO] [stdout] 200 | const BS_504: &'static [u8] = "504".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:201:16 [INFO] [stdout] | [INFO] [stdout] 201 | const BS_505: &'static [u8] = "505".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:202:16 [INFO] [stdout] | [INFO] [stdout] 202 | const BS_513: &'static [u8] = "513".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:203:16 [INFO] [stdout] | [INFO] [stdout] 203 | const BS_600: &'static [u8] = "600".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:204:16 [INFO] [stdout] | [INFO] [stdout] 204 | const BS_603: &'static [u8] = "603".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:205:16 [INFO] [stdout] | [INFO] [stdout] 205 | const BS_604: &'static [u8] = "604".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | const BS_606: &'static [u8] = "606".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | vstr: vstr, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `vstr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 137 | vtype: vtype, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `vtype` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | vtags: vtags, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `vtags` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | sip_uri: sip_uri, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `sip_uri` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | value: value, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | parameters: parameters, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `parameters` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:208:21 [INFO] [stdout] | [INFO] [stdout] 208 | scheme: scheme, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `scheme` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | hostport: hostport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `hostport` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | headers: headers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `headers` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | scheme: scheme, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `scheme` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | hostport: hostport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `hostport` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | headers: headers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `headers` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/common/errorparse.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | code: code, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `code` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/common/errorparse.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | message: message, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `message` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/common/bnfcore.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / /// that can be described by a limited number of characters [INFO] [stdout] 4 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 7 | pub fn is_alpha(c: u8) -> bool { [INFO] [stdout] | --------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! Basic common rules from [INFO] [stdout] 2 ~ //! https://tools.ietf.org/html/rfc2234#section-6.1 and https://tools.ietf.org/html/rfc3261#section-25 [INFO] [stdout] 3 ~ //! that can be described by a limited number of characters [INFO] [stdout] | [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 4 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/common/take_sws_token.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / /// whitespace is often allowed before or after these characters: [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 16 | use crate::common::{ [INFO] [stdout] | - the comment documents this `use` import [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! When tokens are used or separators are used between elements, [INFO] [stdout] 2 ~ //! whitespace is often allowed before or after these characters: [INFO] [stdout] | [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 3 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | const SIP: &'static [u8] = &['S' as u8, 'I' as u8, 'P' as u8]; // SIP [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | const ACK: &'static [u8] = &['A' as u8, 'C' as u8, 'K' as u8]; // ACK [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | const BYE: &'static [u8] = &['B' as u8, 'Y' as u8, 'E' as u8]; // BYE [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | const REG: &'static [u8] = &['R' as u8, 'E' as u8, 'G' as u8]; // REGISTER [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | const CAN: &'static [u8] = &['C' as u8, 'A' as u8, 'N' as u8]; // CANCEL [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | const INF: &'static [u8] = &['I' as u8, 'N' as u8, 'F' as u8]; // INFO [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | const INV: &'static [u8] = &['I' as u8, 'N' as u8, 'V' as u8]; // INVITE [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | const MES: &'static [u8] = &['M' as u8, 'E' as u8, 'S' as u8]; // MESSAGE [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | const NOT: &'static [u8] = &['N' as u8, 'O' as u8, 'T' as u8]; // NOTIFY [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | const OPT: &'static [u8] = &['O' as u8, 'P' as u8, 'T' as u8]; // OPTIONS [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | const PRA: &'static [u8] = &['P' as u8, 'R' as u8, 'A' as u8]; // PRACK [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | const PUB: &'static [u8] = &['P' as u8, 'U' as u8, 'B' as u8]; // PUBLISH [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | const REF: &'static [u8] = &['R' as u8, 'E' as u8, 'F' as u8]; // REFER [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | const SUB: &'static [u8] = &['S' as u8, 'U' as u8, 'B' as u8]; // SUBSCRIBE [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/message.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | const UPD: &'static [u8] = &['U' as u8, 'P' as u8, 'D' as u8]; // UPDATE [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/request.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | rl: rl, [INFO] [stdout] | ^^^^^^ help: replace it with: `rl` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/request.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | headers: headers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `headers` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/request.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | body: body, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `body` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/request.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | sip_version: sip_version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `sip_version` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/response.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | sip_version: sip_version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `sip_version` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/response.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | status_code: status_code, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `status_code` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/response.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | sl: sl, [INFO] [stdout] | ^^^^^^ help: replace it with: `sl` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/response.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | headers: headers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `headers` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/response.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | body: body, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `body` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:157:16 [INFO] [stdout] | [INFO] [stdout] 157 | const BS_100: &'static [u8] = "100".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:158:16 [INFO] [stdout] | [INFO] [stdout] 158 | const BS_180: &'static [u8] = "180".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:159:16 [INFO] [stdout] | [INFO] [stdout] 159 | const BS_181: &'static [u8] = "181".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | const BS_182: &'static [u8] = "182".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | const BS_183: &'static [u8] = "183".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | const BS_200: &'static [u8] = "200".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:163:16 [INFO] [stdout] | [INFO] [stdout] 163 | const BS_300: &'static [u8] = "300".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:164:16 [INFO] [stdout] | [INFO] [stdout] 164 | const BS_301: &'static [u8] = "301".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:165:16 [INFO] [stdout] | [INFO] [stdout] 165 | const BS_302: &'static [u8] = "302".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:166:16 [INFO] [stdout] | [INFO] [stdout] 166 | const BS_305: &'static [u8] = "305".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | const BS_380: &'static [u8] = "380".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:168:16 [INFO] [stdout] | [INFO] [stdout] 168 | const BS_400: &'static [u8] = "400".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:169:16 [INFO] [stdout] | [INFO] [stdout] 169 | const BS_401: &'static [u8] = "401".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | const BS_402: &'static [u8] = "402".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:171:16 [INFO] [stdout] | [INFO] [stdout] 171 | const BS_403: &'static [u8] = "403".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:172:16 [INFO] [stdout] | [INFO] [stdout] 172 | const BS_404: &'static [u8] = "404".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:173:16 [INFO] [stdout] | [INFO] [stdout] 173 | const BS_405: &'static [u8] = "405".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 174 | const BS_406: &'static [u8] = "406".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | const BS_407: &'static [u8] = "407".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:176:16 [INFO] [stdout] | [INFO] [stdout] 176 | const BS_408: &'static [u8] = "408".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:177:16 [INFO] [stdout] | [INFO] [stdout] 177 | const BS_410: &'static [u8] = "410".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 178 | const BS_413: &'static [u8] = "413".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:179:16 [INFO] [stdout] | [INFO] [stdout] 179 | const BS_414: &'static [u8] = "414".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:180:16 [INFO] [stdout] | [INFO] [stdout] 180 | const BS_415: &'static [u8] = "415".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:181:16 [INFO] [stdout] | [INFO] [stdout] 181 | const BS_416: &'static [u8] = "416".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:182:16 [INFO] [stdout] | [INFO] [stdout] 182 | const BS_420: &'static [u8] = "420".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | const BS_421: &'static [u8] = "421".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:184:16 [INFO] [stdout] | [INFO] [stdout] 184 | const BS_423: &'static [u8] = "423".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 185 | const BS_480: &'static [u8] = "480".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | const BS_481: &'static [u8] = "481".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:187:16 [INFO] [stdout] | [INFO] [stdout] 187 | const BS_482: &'static [u8] = "482".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:188:16 [INFO] [stdout] | [INFO] [stdout] 188 | const BS_483: &'static [u8] = "483".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:189:16 [INFO] [stdout] | [INFO] [stdout] 189 | const BS_484: &'static [u8] = "484".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:190:16 [INFO] [stdout] | [INFO] [stdout] 190 | const BS_485: &'static [u8] = "485".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:191:16 [INFO] [stdout] | [INFO] [stdout] 191 | const BS_486: &'static [u8] = "486".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:192:16 [INFO] [stdout] | [INFO] [stdout] 192 | const BS_487: &'static [u8] = "487".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:193:16 [INFO] [stdout] | [INFO] [stdout] 193 | const BS_488: &'static [u8] = "488".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:194:16 [INFO] [stdout] | [INFO] [stdout] 194 | const BS_491: &'static [u8] = "491".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:195:16 [INFO] [stdout] | [INFO] [stdout] 195 | const BS_493: &'static [u8] = "493".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:196:16 [INFO] [stdout] | [INFO] [stdout] 196 | const BS_500: &'static [u8] = "500".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:197:16 [INFO] [stdout] | [INFO] [stdout] 197 | const BS_501: &'static [u8] = "501".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:198:16 [INFO] [stdout] | [INFO] [stdout] 198 | const BS_502: &'static [u8] = "502".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:199:16 [INFO] [stdout] | [INFO] [stdout] 199 | const BS_503: &'static [u8] = "503".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:200:16 [INFO] [stdout] | [INFO] [stdout] 200 | const BS_504: &'static [u8] = "504".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:201:16 [INFO] [stdout] | [INFO] [stdout] 201 | const BS_505: &'static [u8] = "505".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:202:16 [INFO] [stdout] | [INFO] [stdout] 202 | const BS_513: &'static [u8] = "513".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:203:16 [INFO] [stdout] | [INFO] [stdout] 203 | const BS_600: &'static [u8] = "600".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:204:16 [INFO] [stdout] | [INFO] [stdout] 204 | const BS_603: &'static [u8] = "603".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:205:16 [INFO] [stdout] | [INFO] [stdout] 205 | const BS_604: &'static [u8] = "604".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/response.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | const BS_606: &'static [u8] = "606".as_bytes(); [INFO] [stdout] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | vstr: vstr, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `vstr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 137 | vtype: vtype, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `vtype` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | vtags: vtags, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `vtags` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | sip_uri: sip_uri, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `sip_uri` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | value: value, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/header.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | parameters: parameters, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `parameters` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:208:21 [INFO] [stdout] | [INFO] [stdout] 208 | scheme: scheme, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `scheme` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | hostport: hostport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `hostport` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | headers: headers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `headers` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | scheme: scheme, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `scheme` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | hostport: hostport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `hostport` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/headers/sipuri.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | headers: headers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `headers` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `validate_q_param` is never used [INFO] [stdout] --> src/headers/parsers/accept.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl AcceptParser { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | fn validate_q_param(qvalue: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/common/errorparse.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let error_str: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] = note: `#[warn(clippy::needless_late_init)]` on by default [INFO] [stdout] help: move the declaration `error_str` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 64 ~ [INFO] [stdout] 65 ~ let error_str: &str = match str::from_utf8(error) { [INFO] [stdout] 66 | Ok(err_str) => { [INFO] [stdout] 67 ~ err_str [INFO] [stdout] 68 | } [INFO] [stdout] 69 | Err(_) => { [INFO] [stdout] 70 ~ "Internal error of parser. Can't cast error string to to utf8" [INFO] [stdout] 71 | } [INFO] [stdout] 72 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/common/errorparse.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let error_str: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `error_str` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 80 ~ [INFO] [stdout] 81 ~ let error_str: &str = match str::from_utf8(error) { [INFO] [stdout] 82 | Ok(err_str) => { [INFO] [stdout] 83 ~ err_str [INFO] [stdout] 84 | } [INFO] [stdout] 85 | Err(_) => { [INFO] [stdout] 86 ~ "Internal error of parser. Can't cast error string to to utf8" [INFO] [stdout] 87 | } [INFO] [stdout] 88 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/hostport.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | ) -> nom::IResult<&[u8], (&[u8], Option<&[u8]>), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/common/hostport.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | / return Ok(( [INFO] [stdout] 76 | | rest, [INFO] [stdout] 77 | | HostPort { [INFO] [stdout] 78 | | host: host_str, [INFO] [stdout] 79 | | port: Some(port), [INFO] [stdout] 80 | | }, [INFO] [stdout] 81 | | )); [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 75 ~ Ok(( [INFO] [stdout] 76 + rest, [INFO] [stdout] 77 + HostPort { [INFO] [stdout] 78 + host: host_str, [INFO] [stdout] 79 + port: Some(port), [INFO] [stdout] 80 + }, [INFO] [stdout] 81 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/common/hostport.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | return sip_parse_error!(2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 84 - return sip_parse_error!(2); [INFO] [stdout] 84 + sip_parse_error!(2) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/common/hostport.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | return sip_parse_error!(3, "Convert bytes to utf8 is failed"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 88 - return sip_parse_error!(3, "Convert bytes to utf8 is failed"); [INFO] [stdout] 88 + sip_parse_error!(3, "Convert bytes to utf8 is failed") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/common/hostport.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | if port == None { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `Option::is_none()` instead: `port.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] = note: `#[warn(clippy::partialeq_to_none)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `from_str_radix` can be replaced with a call to `str::parse` [INFO] [stdout] --> src/common/hostport.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | Ok(port_str) => match u16::from_str_radix(port_str, 10) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `port_str.parse::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10 [INFO] [stdout] = note: `#[warn(clippy::from_str_radix_10)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/nom_wrappers.rs:55:6 [INFO] [stdout] | [INFO] [stdout] 55 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/common/nom_wrappers.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | return Ok((tmp_inp, &source_input[..taken_chars])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 90 - return Ok((tmp_inp, &source_input[..taken_chars])); [INFO] [stdout] 90 + Ok((tmp_inp, &source_input[..taken_chars])) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/nom_wrappers.rs:99:6 [INFO] [stdout] | [INFO] [stdout] 99 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x5A).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x7A).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | c >= 0x01 && c <= 0x7F [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x01..=0x7F).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | c >= 0x30 && c <= 0x39 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/common/bnfcore.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | return true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 93 - return true; [INFO] [stdout] 93 + true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | c >= 0x21 && c <= 0x7E [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x21..=0x7E).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:163:20 [INFO] [stdout] | [INFO] [stdout] 163 | is_digit(c) || c >= 0x61 && c <= 0x66 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x66).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | c >= 0x80 && c <= 0xBF [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x80..=0xBF).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn star(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:31:31 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn slash(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn equal(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn lparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn rparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn comma(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn semi(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn colon(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/common/sip_method.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | / match self { [INFO] [stdout] 23 | | &SipMethod::ACK => "ACK", [INFO] [stdout] 24 | | &SipMethod::BYE => "BYE", [INFO] [stdout] 25 | | &SipMethod::CANCEL => "CANCEL", [INFO] [stdout] ... | [INFO] [stdout] 36 | | &SipMethod::UPDATE => "UPDATE", [INFO] [stdout] 37 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] = note: `#[warn(clippy::match_ref_pats)]` on by default [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 22 ~ match *self { [INFO] [stdout] 23 ~ SipMethod::ACK => "ACK", [INFO] [stdout] 24 ~ SipMethod::BYE => "BYE", [INFO] [stdout] 25 ~ SipMethod::CANCEL => "CANCEL", [INFO] [stdout] 26 ~ SipMethod::INFO => "INFO", [INFO] [stdout] 27 ~ SipMethod::INVITE => "INVITE", [INFO] [stdout] 28 ~ SipMethod::MESSAGE => "MESSAGE", [INFO] [stdout] 29 ~ SipMethod::NOTIFY => "NOTIFY", [INFO] [stdout] 30 ~ SipMethod::OPTIONS => "OPTIONS", [INFO] [stdout] 31 ~ SipMethod::PRACK => "PRACK", [INFO] [stdout] 32 ~ SipMethod::PUBLISH => "PUBLISH", [INFO] [stdout] 33 ~ SipMethod::REFER => "REFER", [INFO] [stdout] 34 ~ SipMethod::REGISTER => "REGISTER", [INFO] [stdout] 35 ~ SipMethod::SUBSCRIBE => "SUBSCRIBE", [INFO] [stdout] 36 ~ SipMethod::UPDATE => "UPDATE", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` [INFO] [stdout] --> src/common/sip_method.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / pub fn from_str(s: &str) -> Option { [INFO] [stdout] 41 | | let s = Ascii::new(s); [INFO] [stdout] 42 | | macro_rules! match_str { [INFO] [stdout] 43 | | ($input_str:expr, $enum_result:expr) => { [INFO] [stdout] ... | [INFO] [stdout] 63 | | None [INFO] [stdout] 64 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stdout] = note: `#[warn(clippy::should_implement_trait)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | const SIP: &'static [u8] = &['S' as u8, 'I' as u8, 'P' as u8]; // SIP [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'S'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] = note: `#[warn(clippy::char_lit_as_u8)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:13:41 [INFO] [stdout] | [INFO] [stdout] 13 | const SIP: &'static [u8] = &['S' as u8, 'I' as u8, 'P' as u8]; // SIP [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'I'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:13:52 [INFO] [stdout] | [INFO] [stdout] 13 | const SIP: &'static [u8] = &['S' as u8, 'I' as u8, 'P' as u8]; // SIP [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'P'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | const ACK: &'static [u8] = &['A' as u8, 'C' as u8, 'K' as u8]; // ACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'A'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:15:41 [INFO] [stdout] | [INFO] [stdout] 15 | const ACK: &'static [u8] = &['A' as u8, 'C' as u8, 'K' as u8]; // ACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'C'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:15:52 [INFO] [stdout] | [INFO] [stdout] 15 | const ACK: &'static [u8] = &['A' as u8, 'C' as u8, 'K' as u8]; // ACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'K'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | const BYE: &'static [u8] = &['B' as u8, 'Y' as u8, 'E' as u8]; // BYE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'B'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | const BYE: &'static [u8] = &['B' as u8, 'Y' as u8, 'E' as u8]; // BYE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'Y'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:16:52 [INFO] [stdout] | [INFO] [stdout] 16 | const BYE: &'static [u8] = &['B' as u8, 'Y' as u8, 'E' as u8]; // BYE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'E'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | const REG: &'static [u8] = &['R' as u8, 'E' as u8, 'G' as u8]; // REGISTER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'R'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:17:41 [INFO] [stdout] | [INFO] [stdout] 17 | const REG: &'static [u8] = &['R' as u8, 'E' as u8, 'G' as u8]; // REGISTER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'E'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | const REG: &'static [u8] = &['R' as u8, 'E' as u8, 'G' as u8]; // REGISTER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'G'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | const CAN: &'static [u8] = &['C' as u8, 'A' as u8, 'N' as u8]; // CANCEL [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'C'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:18:41 [INFO] [stdout] | [INFO] [stdout] 18 | const CAN: &'static [u8] = &['C' as u8, 'A' as u8, 'N' as u8]; // CANCEL [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'A'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:18:52 [INFO] [stdout] | [INFO] [stdout] 18 | const CAN: &'static [u8] = &['C' as u8, 'A' as u8, 'N' as u8]; // CANCEL [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'N'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | const INF: &'static [u8] = &['I' as u8, 'N' as u8, 'F' as u8]; // INFO [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'I'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 19 | const INF: &'static [u8] = &['I' as u8, 'N' as u8, 'F' as u8]; // INFO [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'N'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | const INF: &'static [u8] = &['I' as u8, 'N' as u8, 'F' as u8]; // INFO [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'F'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | const INV: &'static [u8] = &['I' as u8, 'N' as u8, 'V' as u8]; // INVITE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'I'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:20:41 [INFO] [stdout] | [INFO] [stdout] 20 | const INV: &'static [u8] = &['I' as u8, 'N' as u8, 'V' as u8]; // INVITE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'N'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:20:52 [INFO] [stdout] | [INFO] [stdout] 20 | const INV: &'static [u8] = &['I' as u8, 'N' as u8, 'V' as u8]; // INVITE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'V'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:21:30 [INFO] [stdout] | [INFO] [stdout] 21 | const MES: &'static [u8] = &['M' as u8, 'E' as u8, 'S' as u8]; // MESSAGE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'M'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | const MES: &'static [u8] = &['M' as u8, 'E' as u8, 'S' as u8]; // MESSAGE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'E'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | const MES: &'static [u8] = &['M' as u8, 'E' as u8, 'S' as u8]; // MESSAGE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'S'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | const NOT: &'static [u8] = &['N' as u8, 'O' as u8, 'T' as u8]; // NOTIFY [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'N'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 22 | const NOT: &'static [u8] = &['N' as u8, 'O' as u8, 'T' as u8]; // NOTIFY [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'O'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | const NOT: &'static [u8] = &['N' as u8, 'O' as u8, 'T' as u8]; // NOTIFY [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'T'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | const OPT: &'static [u8] = &['O' as u8, 'P' as u8, 'T' as u8]; // OPTIONS [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'O'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:23:41 [INFO] [stdout] | [INFO] [stdout] 23 | const OPT: &'static [u8] = &['O' as u8, 'P' as u8, 'T' as u8]; // OPTIONS [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'P'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:23:52 [INFO] [stdout] | [INFO] [stdout] 23 | const OPT: &'static [u8] = &['O' as u8, 'P' as u8, 'T' as u8]; // OPTIONS [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'T'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | const PRA: &'static [u8] = &['P' as u8, 'R' as u8, 'A' as u8]; // PRACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'P'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:24:41 [INFO] [stdout] | [INFO] [stdout] 24 | const PRA: &'static [u8] = &['P' as u8, 'R' as u8, 'A' as u8]; // PRACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'R'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:24:52 [INFO] [stdout] | [INFO] [stdout] 24 | const PRA: &'static [u8] = &['P' as u8, 'R' as u8, 'A' as u8]; // PRACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'A'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | const PUB: &'static [u8] = &['P' as u8, 'U' as u8, 'B' as u8]; // PUBLISH [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'P'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | const PUB: &'static [u8] = &['P' as u8, 'U' as u8, 'B' as u8]; // PUBLISH [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'U'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:25:52 [INFO] [stdout] | [INFO] [stdout] 25 | const PUB: &'static [u8] = &['P' as u8, 'U' as u8, 'B' as u8]; // PUBLISH [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'B'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | const REF: &'static [u8] = &['R' as u8, 'E' as u8, 'F' as u8]; // REFER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'R'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | const REF: &'static [u8] = &['R' as u8, 'E' as u8, 'F' as u8]; // REFER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'E'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:26:52 [INFO] [stdout] | [INFO] [stdout] 26 | const REF: &'static [u8] = &['R' as u8, 'E' as u8, 'F' as u8]; // REFER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'F'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:27:30 [INFO] [stdout] | [INFO] [stdout] 27 | const SUB: &'static [u8] = &['S' as u8, 'U' as u8, 'B' as u8]; // SUBSCRIBE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'S'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:27:41 [INFO] [stdout] | [INFO] [stdout] 27 | const SUB: &'static [u8] = &['S' as u8, 'U' as u8, 'B' as u8]; // SUBSCRIBE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'U'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:27:52 [INFO] [stdout] | [INFO] [stdout] 27 | const SUB: &'static [u8] = &['S' as u8, 'U' as u8, 'B' as u8]; // SUBSCRIBE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'B'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | const UPD: &'static [u8] = &['U' as u8, 'P' as u8, 'D' as u8]; // UPDATE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'U'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:28:41 [INFO] [stdout] | [INFO] [stdout] 28 | const UPD: &'static [u8] = &['U' as u8, 'P' as u8, 'D' as u8]; // UPDATE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'P'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:28:52 [INFO] [stdout] | [INFO] [stdout] 28 | const UPD: &'static [u8] = &['U' as u8, 'P' as u8, 'D' as u8]; // UPDATE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'D'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/userinfo.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | / return Ok(UserInfo { [INFO] [stdout] 44 | | value: user_str, [INFO] [stdout] 45 | | password: None, [INFO] [stdout] 46 | | }); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 43 ~ Ok(UserInfo { [INFO] [stdout] 44 + value: user_str, [INFO] [stdout] 45 + password: None, [INFO] [stdout] 46 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/userinfo.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | / return Ok(UserInfo { [INFO] [stdout] 57 | | value: user_str, [INFO] [stdout] 58 | | password: Some(pswd_str), [INFO] [stdout] 59 | | }); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 56 ~ Ok(UserInfo { [INFO] [stdout] 57 + value: user_str, [INFO] [stdout] 58 + password: Some(pswd_str), [INFO] [stdout] 59 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/userinfo.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | if input.len() == 0 || (input.len() == 1 && input[0] == b'@') { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `input.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/request.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use core::{str, u8}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `u8::` will resolve to the respective associated constant [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/request.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | None => return sip_parse_error!(1, "Error cast from_utf8"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 86 - None => return sip_parse_error!(1, "Error cast from_utf8"), [INFO] [stdout] 86 + None => sip_parse_error!(1, "Error cast from_utf8"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u8` -> `u8`) [INFO] [stdout] --> src/request.rs:57:40 [INFO] [stdout] | [INFO] [stdout] 57 | let uri = take_while1(|c| c != b' ' as u8); [INFO] [stdout] | ^^^^^^^^^^ help: try: `b' '` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `from_str_radix` can be replaced with a call to `str::parse` [INFO] [stdout] --> src/request.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | u8::from_str_radix(str::from_utf8(major_version).unwrap(), 10).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `str::from_utf8(major_version).unwrap().parse::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `from_str_radix` can be replaced with a call to `str::parse` [INFO] [stdout] --> src/request.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | u8::from_str_radix(str::from_utf8(minor_version).unwrap(), 10).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `str::from_utf8(minor_version).unwrap().parse::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `from_str_radix` can be replaced with a call to `str::parse` [INFO] [stdout] --> src/response.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | u8::from_str_radix(str::from_utf8(major_version).unwrap(), 10).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `str::from_utf8(major_version).unwrap().parse::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `from_str_radix` can be replaced with a call to `str::parse` [INFO] [stdout] --> src/response.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | u8::from_str_radix(str::from_utf8(minor_version).unwrap(), 10).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `str::from_utf8(minor_version).unwrap().parse::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` [INFO] [stdout] --> src/response.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | / pub fn from_str(s: &str) -> StatusCode { [INFO] [stdout] 210 | | StatusCode::from_bytes_str(s.as_bytes()) [INFO] [stdout] 211 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/response.rs:270:9 [INFO] [stdout] | [INFO] [stdout] 270 | / match self { [INFO] [stdout] 271 | | &StatusCode::Trying => "Trying", [INFO] [stdout] 272 | | &StatusCode::Ringing => "Ringing", [INFO] [stdout] 273 | | &StatusCode::CallIsBeingForwarded => "Call Is Being Forwarded", [INFO] [stdout] ... | [INFO] [stdout] 321 | | &StatusCode::Unknown => "Unknown", [INFO] [stdout] 322 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 270 ~ match *self { [INFO] [stdout] 271 ~ StatusCode::Trying => "Trying", [INFO] [stdout] 272 ~ StatusCode::Ringing => "Ringing", [INFO] [stdout] 273 ~ StatusCode::CallIsBeingForwarded => "Call Is Being Forwarded", [INFO] [stdout] 274 ~ StatusCode::Queued => "Queued", [INFO] [stdout] 275 ~ StatusCode::SessionProgress => "Session Progress", [INFO] [stdout] 276 ~ StatusCode::OK => "OK", [INFO] [stdout] 277 ~ StatusCode::MultipleChoices => "Multiple Choices", [INFO] [stdout] 278 ~ StatusCode::MovedPermanently => "Moved Permanently", [INFO] [stdout] 279 ~ StatusCode::MovedTemporarily => "Moved Temporarily", [INFO] [stdout] 280 ~ StatusCode::UseProxy => "Use Proxy", [INFO] [stdout] 281 ~ StatusCode::AlternativeService => "Alternative Service", [INFO] [stdout] 282 ~ StatusCode::BadRequest => "Bad Request", [INFO] [stdout] 283 ~ StatusCode::Unauthorized => "Unauthorized", [INFO] [stdout] 284 ~ StatusCode::PaymentRequired => "Payment Required", [INFO] [stdout] 285 ~ StatusCode::Forbidden => "Forbidden", [INFO] [stdout] 286 ~ StatusCode::NotFound => "Not Found", [INFO] [stdout] 287 ~ StatusCode::MethodNotAllowed => "Method Not Allowed", [INFO] [stdout] 288 ~ StatusCode::NotAcceptableResourceContent => "Not Acceptable", [INFO] [stdout] 289 ~ StatusCode::ProxyAuthenticationRequired => "Proxy Authentication Required", [INFO] [stdout] 290 ~ StatusCode::RequestTimeout => "Request Timeout", [INFO] [stdout] 291 ~ StatusCode::Gone => "Gone", [INFO] [stdout] 292 ~ StatusCode::RequestEntityTooLarge => "Request Entity Too Large", [INFO] [stdout] 293 ~ StatusCode::RequestUriTooLong => "Request-URI Too Long", [INFO] [stdout] 294 ~ StatusCode::UnsupportedMediaType => "Unsupported Media Type", [INFO] [stdout] 295 ~ StatusCode::UnsupportedUriScheme => "Unsupported URI Scheme", [INFO] [stdout] 296 ~ StatusCode::BadExtension => "Bad Extension", [INFO] [stdout] 297 ~ StatusCode::ExtensionRequired => "Extension Required", [INFO] [stdout] 298 ~ StatusCode::IntervalTooBrief => "Interval Too Brief", [INFO] [stdout] 299 ~ StatusCode::TemporarilyUnavailable => "Temporarily Unavailable", [INFO] [stdout] 300 ~ StatusCode::CallOrTransactionDoesNotExist => "Call/Transaction Does Not Exist", [INFO] [stdout] 301 ~ StatusCode::LoopDetected => "Loop Detected", [INFO] [stdout] 302 ~ StatusCode::TooManyHops => "Too Many Hops", [INFO] [stdout] 303 ~ StatusCode::AddressIncomplete => "Address Incomplete", [INFO] [stdout] 304 ~ StatusCode::Ambiguous => "Ambiguous", [INFO] [stdout] 305 ~ StatusCode::BusyHere => "Busy Here", [INFO] [stdout] 306 ~ StatusCode::RequestTerminated => "Request Terminated", [INFO] [stdout] 307 ~ StatusCode::NotAcceptableHere => "Not Acceptable Here", [INFO] [stdout] 308 ~ StatusCode::RequestPending => "Request Pending", [INFO] [stdout] 309 ~ StatusCode::Undecipherable => "Undecipherable", [INFO] [stdout] 310 ~ StatusCode::ServerInternalError => "Server Internal Error", [INFO] [stdout] 311 ~ StatusCode::NotImplemented => "Not Implemented", [INFO] [stdout] 312 ~ StatusCode::BadGateway => "Bad Gateway", [INFO] [stdout] 313 ~ StatusCode::ServiceUnavailable => "Service Unavailable", [INFO] [stdout] 314 ~ StatusCode::ServerTimeout => "Server Time-out", [INFO] [stdout] 315 ~ StatusCode::VersionNotSupported => "Version Not Supported", [INFO] [stdout] 316 ~ StatusCode::MessageTooLarge => "Message Too Large", [INFO] [stdout] 317 ~ StatusCode::BusyEverywhere => "Busy Everywhere", [INFO] [stdout] 318 ~ StatusCode::Decline => "Decline", [INFO] [stdout] 319 ~ StatusCode::DoesNotExistAnywhere => "Does Not Exist Anywhere", [INFO] [stdout] 320 ~ StatusCode::NotAcceptable => "Not Acceptable", [INFO] [stdout] 321 ~ StatusCode::Unknown => "Unknown", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module has the same name as its containing module [INFO] [stdout] --> src/headers/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod headers; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stdout] = note: `#[warn(clippy::module_inception)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/headers.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | return Some(&s[0]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 35 ~ Some(&s[0]) [INFO] [stdout] 36 | } else { [INFO] [stdout] 37 | return None; [INFO] [stdout] 38 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/headers.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | return None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 37 ~ None [INFO] [stdout] 38 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/headers.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | return Some(&s[0]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 51 ~ Some(&s[0]) [INFO] [stdout] 52 | } else { [INFO] [stdout] 53 | return None; [INFO] [stdout] 54 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/headers.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | return None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 53 ~ None [INFO] [stdout] 54 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Headers` has a public `len` method, but no `is_empty` method [INFO] [stdout] --> src/headers/headers.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stdout] = note: `#[warn(clippy::len_without_is_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `contains_key` followed by `insert` on a `BTreeMap` [INFO] [stdout] --> src/headers/headers.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | / if self.rfc_headers.contains_key(&header_type) { [INFO] [stdout] 82 | | self.rfc_headers [INFO] [stdout] 83 | | .get_mut(&header_type) [INFO] [stdout] 84 | | .unwrap() [INFO] [stdout] ... | [INFO] [stdout] 87 | | self.rfc_headers.insert(header_type, vec_headers); [INFO] [stdout] 88 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_entry [INFO] [stdout] = note: `#[warn(clippy::map_entry)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 81 ~ if let std::collections::btree_map::Entry::Vacant(e) = self.rfc_headers.entry(header_type) { [INFO] [stdout] 82 + e.insert(vec_headers); [INFO] [stdout] 83 + } else { [INFO] [stdout] 84 + self.rfc_headers [INFO] [stdout] 85 + .get_mut(&header_type) [INFO] [stdout] 86 + .unwrap() [INFO] [stdout] 87 + .append(&mut vec_headers) [INFO] [stdout] 88 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/headers/headers.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | if self.ext_headers == None { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `Option::is_none()` instead: `self.ext_headers.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/headers/header.rs:182:38 [INFO] [stdout] | [INFO] [stdout] 182 | match SipRFCHeader::from_str(&header_name) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `header_name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` [INFO] [stdout] --> src/headers/rfcheader.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | / pub fn from_str(s: &str) -> Option { [INFO] [stdout] 63 | | let s = Ascii::new(s); [INFO] [stdout] 64 | | macro_rules! match_str { [INFO] [stdout] 65 | | ($input_str:expr, $enum_result:expr) => { [INFO] [stdout] ... | [INFO] [stdout] 126 | | None [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/headers/rfcheader.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | / match self { [INFO] [stdout] 131 | | &SipRFCHeader::Accept => "Accept", [INFO] [stdout] 132 | | &SipRFCHeader::AcceptEncoding => "Accept-Encoding", [INFO] [stdout] 133 | | &SipRFCHeader::AcceptLanguage => "Accept-Language", [INFO] [stdout] ... | [INFO] [stdout] 174 | | &SipRFCHeader::WWWAuthenticate => "WWW-Authenticate", [INFO] [stdout] 175 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 130 ~ match *self { [INFO] [stdout] 131 ~ SipRFCHeader::Accept => "Accept", [INFO] [stdout] 132 ~ SipRFCHeader::AcceptEncoding => "Accept-Encoding", [INFO] [stdout] 133 ~ SipRFCHeader::AcceptLanguage => "Accept-Language", [INFO] [stdout] 134 ~ SipRFCHeader::AlertInfo => "Alert-Info", [INFO] [stdout] 135 ~ SipRFCHeader::Allow => "Allow", [INFO] [stdout] 136 ~ SipRFCHeader::AuthenticationInfo => "Authentication-Info", [INFO] [stdout] 137 ~ SipRFCHeader::Authorization => "Authorization", [INFO] [stdout] 138 ~ SipRFCHeader::CallID => "Call-ID", [INFO] [stdout] 139 ~ SipRFCHeader::CallInfo => "Call-Info", [INFO] [stdout] 140 ~ SipRFCHeader::Contact => "Contact", [INFO] [stdout] 141 ~ SipRFCHeader::ContentDisposition => "Content-Disposition", [INFO] [stdout] 142 ~ SipRFCHeader::ContentEncoding => "Content-Encoding", [INFO] [stdout] 143 ~ SipRFCHeader::ContentLanguage => "Content-Language", [INFO] [stdout] 144 ~ SipRFCHeader::ContentLength => "Content-Length", [INFO] [stdout] 145 ~ SipRFCHeader::ContentType => "Content-Type", [INFO] [stdout] 146 ~ SipRFCHeader::CSeq => "CSeq", [INFO] [stdout] 147 ~ SipRFCHeader::Date => "Date", [INFO] [stdout] 148 ~ SipRFCHeader::ErrorInfo => "Error-Info", [INFO] [stdout] 149 ~ SipRFCHeader::Expires => "Expires", [INFO] [stdout] 150 ~ SipRFCHeader::From => "From", [INFO] [stdout] 151 ~ SipRFCHeader::InReplyTo => "In-Reply-To", [INFO] [stdout] 152 ~ SipRFCHeader::MaxForwards => "Max-Forwards", [INFO] [stdout] 153 ~ SipRFCHeader::MimeVersion => "MIME-Version", [INFO] [stdout] 154 ~ SipRFCHeader::MinExpires => "Min-Expires", [INFO] [stdout] 155 ~ SipRFCHeader::Organization => "Organization", [INFO] [stdout] 156 ~ SipRFCHeader::Priority => "Priority", [INFO] [stdout] 157 ~ SipRFCHeader::ProxyAuthenticate => "Proxy-Authenticate", [INFO] [stdout] 158 ~ SipRFCHeader::ProxyAuthorization => "Proxy-Authorization", [INFO] [stdout] 159 ~ SipRFCHeader::ProxyRequire => "Proxy-Require", [INFO] [stdout] 160 ~ SipRFCHeader::RecordRoute => "Record-Route", [INFO] [stdout] 161 ~ SipRFCHeader::ReplyTo => "Reply-To", [INFO] [stdout] 162 ~ SipRFCHeader::Require => "Require", [INFO] [stdout] 163 ~ SipRFCHeader::RetryAfter => "Retry-After", [INFO] [stdout] 164 ~ SipRFCHeader::Route => "Route", [INFO] [stdout] 165 ~ SipRFCHeader::Server => "Server", [INFO] [stdout] 166 ~ SipRFCHeader::Subject => "Subject", [INFO] [stdout] 167 ~ SipRFCHeader::Supported => "Supported", [INFO] [stdout] 168 ~ SipRFCHeader::Timestamp => "Timestamp", [INFO] [stdout] 169 ~ SipRFCHeader::To => "To", [INFO] [stdout] 170 ~ SipRFCHeader::Unsupported => "Unsupported", [INFO] [stdout] 171 ~ SipRFCHeader::UserAgent => "User-Agent", [INFO] [stdout] 172 ~ SipRFCHeader::Via => "Via", [INFO] [stdout] 173 ~ SipRFCHeader::Warning => "Warning", [INFO] [stdout] 174 ~ SipRFCHeader::WWWAuthenticate => "WWW-Authenticate", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/headers/rfcheader.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | / match self { [INFO] [stdout] 180 | | &SipRFCHeader::Accept => AcceptParser::take_value, [INFO] [stdout] 181 | | &SipRFCHeader::AcceptEncoding => AcceptEncodingParser::take_value, [INFO] [stdout] 182 | | &SipRFCHeader::AcceptLanguage => AcceptLanguageParser::take_value, [INFO] [stdout] ... | [INFO] [stdout] 223 | | &SipRFCHeader::WWWAuthenticate => Authorization::take_value, [INFO] [stdout] 224 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 179 ~ match *self { [INFO] [stdout] 180 ~ SipRFCHeader::Accept => AcceptParser::take_value, [INFO] [stdout] 181 ~ SipRFCHeader::AcceptEncoding => AcceptEncodingParser::take_value, [INFO] [stdout] 182 ~ SipRFCHeader::AcceptLanguage => AcceptLanguageParser::take_value, [INFO] [stdout] 183 ~ SipRFCHeader::AlertInfo => AlertInfoParser::take_value, [INFO] [stdout] 184 ~ SipRFCHeader::Allow => token_header::take, [INFO] [stdout] 185 ~ SipRFCHeader::AuthenticationInfo => AuthenticationInfoParser::take_value, [INFO] [stdout] 186 ~ SipRFCHeader::Authorization => Authorization::take_value, [INFO] [stdout] 187 ~ SipRFCHeader::CallID => CallID::take_value, [INFO] [stdout] 188 ~ SipRFCHeader::CallInfo => AlertInfoParser::take_value, [INFO] [stdout] 189 ~ SipRFCHeader::Contact => Contact::take_value, [INFO] [stdout] 190 ~ SipRFCHeader::ContentDisposition => token_header::take, [INFO] [stdout] 191 ~ SipRFCHeader::ContentEncoding => token_header::take, [INFO] [stdout] 192 ~ SipRFCHeader::ContentLanguage => token_header::take, [INFO] [stdout] 193 ~ SipRFCHeader::ContentLength => digit_header::take, [INFO] [stdout] 194 ~ SipRFCHeader::ContentType => AcceptParser::take_value, [INFO] [stdout] 195 ~ SipRFCHeader::CSeq => CSeq::take_value, [INFO] [stdout] 196 ~ SipRFCHeader::Date => Date::take_value, [INFO] [stdout] 197 ~ SipRFCHeader::ErrorInfo => AlertInfoParser::take_value, [INFO] [stdout] 198 ~ SipRFCHeader::Expires => digit_header::take, [INFO] [stdout] 199 ~ SipRFCHeader::From => From::take_value, [INFO] [stdout] 200 ~ SipRFCHeader::To => From::take_value, [INFO] [stdout] 201 ~ SipRFCHeader::InReplyTo => CallID::take_value, [INFO] [stdout] 202 ~ SipRFCHeader::MaxForwards => digit_header::take, [INFO] [stdout] 203 ~ SipRFCHeader::Organization => utf8_trim_header::take, [INFO] [stdout] 204 ~ SipRFCHeader::Priority => token_header::take, [INFO] [stdout] 205 ~ SipRFCHeader::ProxyAuthenticate => Authorization::take_value, [INFO] [stdout] 206 ~ SipRFCHeader::ProxyAuthorization => Authorization::take_value, [INFO] [stdout] 207 ~ SipRFCHeader::ProxyRequire => token_header::take, [INFO] [stdout] 208 ~ SipRFCHeader::RecordRoute => From::take_value, [INFO] [stdout] 209 ~ SipRFCHeader::Route => From::take_value, [INFO] [stdout] 210 ~ SipRFCHeader::ReplyTo => From::take_value, [INFO] [stdout] 211 ~ SipRFCHeader::Require => token_header::take, [INFO] [stdout] 212 ~ SipRFCHeader::RetryAfter => RetryAfter::take_value, [INFO] [stdout] 213 ~ SipRFCHeader::Server => UserAgent::take_value, [INFO] [stdout] 214 ~ SipRFCHeader::UserAgent => UserAgent::take_value, [INFO] [stdout] 215 ~ SipRFCHeader::Subject => utf8_trim_header::take, [INFO] [stdout] 216 ~ SipRFCHeader::Supported => token_header::take, [INFO] [stdout] 217 ~ SipRFCHeader::MimeVersion => MimeVersion::take_value, [INFO] [stdout] 218 ~ SipRFCHeader::MinExpires => digit_header::take, [INFO] [stdout] 219 ~ SipRFCHeader::Timestamp => Timestamp::take_value, [INFO] [stdout] 220 ~ SipRFCHeader::Unsupported => token_header::take, [INFO] [stdout] 221 ~ SipRFCHeader::Via => Via::take_value, [INFO] [stdout] 222 ~ SipRFCHeader::Warning => Warning::take_value, [INFO] [stdout] 223 ~ SipRFCHeader::WWWAuthenticate => Authorization::take_value, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/headers/sipuri.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | if input.len() == 0 || input[0] != b'=' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `input.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/headers/sipuri.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | if input.len() == 0 || input[0] != b'&' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `input.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/sipuri.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | return Ok((input, Some(params))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 144 - return Ok((input, Some(params))); [INFO] [stdout] 144 + Ok((input, Some(params))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/sipuri.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | return Err(e); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 147 - return Err(e); [INFO] [stdout] 147 + Err(e) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/sipuri.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | return Ok((input, Some(headers))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 160 - return Ok((input, Some(headers))); [INFO] [stdout] 160 + Ok((input, Some(headers))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/sipuri.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | return Err(e); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 163 - return Err(e); [INFO] [stdout] 163 + Err(e) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/name_addr.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | return NameAddrValueType::TokenDisplayName; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 41 - return NameAddrValueType::TokenDisplayName; [INFO] [stdout] 41 + NameAddrValueType::TokenDisplayName [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/headers/name_addr.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 64 | ) -> nom::IResult<&'a [u8], (&[u8], HeaderTags<'a>, Option), SipParseError<'a>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/common/errorparse.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let error_str: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] = note: `#[warn(clippy::needless_late_init)]` on by default [INFO] [stdout] help: move the declaration `error_str` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 64 ~ [INFO] [stdout] 65 ~ let error_str: &str = match str::from_utf8(error) { [INFO] [stdout] 66 | Ok(err_str) => { [INFO] [stdout] 67 ~ err_str [INFO] [stdout] 68 | } [INFO] [stdout] 69 | Err(_) => { [INFO] [stdout] 70 ~ "Internal error of parser. Can't cast error string to to utf8" [INFO] [stdout] 71 | } [INFO] [stdout] 72 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/common/errorparse.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let error_str: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `error_str` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 80 ~ [INFO] [stdout] 81 ~ let error_str: &str = match str::from_utf8(error) { [INFO] [stdout] 82 | Ok(err_str) => { [INFO] [stdout] 83 ~ err_str [INFO] [stdout] 84 | } [INFO] [stdout] 85 | Err(_) => { [INFO] [stdout] 86 ~ "Internal error of parser. Can't cast error string to to utf8" [INFO] [stdout] 87 | } [INFO] [stdout] 88 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/accept.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | return false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 51 - return false; [INFO] [stdout] 51 + false [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to one [INFO] [stdout] --> src/headers/parsers/accept_language.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | if left_part.len() < 1 || left_part.len() > 8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `left_part.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to one [INFO] [stdout] --> src/headers/parsers/accept_language.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | if right_part.len() < 1 || right_part.len() > 8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `right_part.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/authentication_info.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | b"nextnonce" => return true, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 18 - b"nextnonce" => return true, [INFO] [stdout] 18 + b"nextnonce" => true, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/authentication_info.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | _ => return false, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 23 - _ => return false, [INFO] [stdout] 23 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/callid.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | return Ok((input, hdr_val)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 36 - return Ok((input, hdr_val)); [INFO] [stdout] 36 + Ok((input, hdr_val)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/hostport.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | ) -> nom::IResult<&[u8], (&[u8], Option<&[u8]>), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/date.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | b"Mon" => return true, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 32 - b"Mon" => return true, [INFO] [stdout] 32 + b"Mon" => true, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/date.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | _ => return false, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 39 - _ => return false, [INFO] [stdout] 39 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/date.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | b"Jan" => return true, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 45 - b"Jan" => return true, [INFO] [stdout] 45 + b"Jan" => true, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/date.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 57 | _ => return false, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 57 - _ => return false, [INFO] [stdout] 57 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/common/hostport.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | / return Ok(( [INFO] [stdout] 76 | | rest, [INFO] [stdout] 77 | | HostPort { [INFO] [stdout] 78 | | host: host_str, [INFO] [stdout] 79 | | port: Some(port), [INFO] [stdout] 80 | | }, [INFO] [stdout] 81 | | )); [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 75 ~ Ok(( [INFO] [stdout] 76 + rest, [INFO] [stdout] 77 + HostPort { [INFO] [stdout] 78 + host: host_str, [INFO] [stdout] 79 + port: Some(port), [INFO] [stdout] 80 + }, [INFO] [stdout] 81 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/common/hostport.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | return sip_parse_error!(2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 84 - return sip_parse_error!(2); [INFO] [stdout] 84 + sip_parse_error!(2) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/common/hostport.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | return sip_parse_error!(3, "Convert bytes to utf8 is failed"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 88 - return sip_parse_error!(3, "Convert bytes to utf8 is failed"); [INFO] [stdout] 88 + sip_parse_error!(3, "Convert bytes to utf8 is failed") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/common/hostport.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | if port == None { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `Option::is_none()` instead: `port.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] = note: `#[warn(clippy::partialeq_to_none)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `from_str_radix` can be replaced with a call to `str::parse` [INFO] [stdout] --> src/common/hostport.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | Ok(port_str) => match u16::from_str_radix(port_str, 10) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `port_str.parse::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10 [INFO] [stdout] = note: `#[warn(clippy::from_str_radix_10)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/retry_after.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | return Ok((input, hdr_val)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 39 - return Ok((input, hdr_val)); [INFO] [stdout] 39 + Ok((input, hdr_val)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/nom_wrappers.rs:55:6 [INFO] [stdout] | [INFO] [stdout] 55 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/common/nom_wrappers.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | return Ok((tmp_inp, &source_input[..taken_chars])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 90 - return Ok((tmp_inp, &source_input[..taken_chars])); [INFO] [stdout] 90 + Ok((tmp_inp, &source_input[..taken_chars])) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/nom_wrappers.rs:99:6 [INFO] [stdout] | [INFO] [stdout] 99 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/headers/parsers/via.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | if port != None { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `Option::is_some()` instead: `port.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x5A).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x7A).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | c >= 0x01 && c <= 0x7F [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x01..=0x7F).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | c >= 0x30 && c <= 0x39 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/headers/auth_params.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | if !tag_type.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `tag_type.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `tag_type` after checking its variant with `is_none` [INFO] [stdout] --> src/headers/auth_params.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 64 | if !tag_type.is_none() { [INFO] [stdout] | ------------------ the check is happening here [INFO] [stdout] 65 | let tt = tag_type.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/headers/auth_params.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | / if tt == HeaderTagType::NonceCount { [INFO] [stdout] 67 | | if param_value.len() != 8 { [INFO] [stdout] 68 | | return sip_parse_error!(2, "Invalid nonce len"); [INFO] [stdout] 69 | | } [INFO] [stdout] 70 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 66 ~ if tt == HeaderTagType::NonceCount [INFO] [stdout] 67 ~ && param_value.len() != 8 { [INFO] [stdout] 68 | return sip_parse_error!(2, "Invalid nonce len"); [INFO] [stdout] 69 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/common/errorparse.rs:54:56 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(code: u32, message: Option<&'a str>) -> SipParseError { [INFO] [stdout] | -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(code: u32, message: Option<&'a str>) -> SipParseError<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/common/hostport.rs:23:60 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn take_ipv6_host(input: &'a [u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 23 | pub fn take_ipv6_host(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a [u8], SipParseError<'a>> { [INFO] [stdout] | ++ ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/common/hostport.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 31 | input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 32 | ) -> nom::IResult<&[u8], (&[u8], Option<&[u8]>), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 32 | ) -> nom::IResult<&'a [u8], (&'a [u8], Option<&'a [u8]>), SipParseError<'a>> { [INFO] [stdout] | ++ ++ ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/common/hostport.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], HostPort, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 53 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], HostPort<'a>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 18 | is_fun: fn(c: u8) -> bool, [INFO] [stdout] 19 | ) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 19 | ) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | source_input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 37 | ) -> nom::IResult<&[u8] /* it shoud be quote, otherwise - error */, &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | the same lifetime is elided here the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 37 | ) -> nom::IResult<&[u8] /* it shoud be quote, otherwise - error */, &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | source_input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 55 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 55 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:63:31 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn take_lws(source_input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 63 | pub fn take_lws(source_input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn take_sws(source_input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 71 | pub fn take_sws(source_input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 98 | cond_fun: fn(c: u8) -> bool, [INFO] [stdout] 99 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 99 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:104:25 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn from_utf8_nom(v: &[u8]) -> nom::IResult<&str, &str, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^ ^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 104 | pub fn from_utf8_nom(v: &[u8]) -> nom::IResult<&str, &str, SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/common/traits.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError>; [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 5 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>>; [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn star(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | pub fn star(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn slash(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 31 | pub fn slash(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn equal(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | pub fn equal(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn lparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 37 | pub fn lparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn rparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 40 | pub fn rparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn comma(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 44 | pub fn comma(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn semi(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 47 | pub fn semi(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn colon(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn colon(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn raquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 54 | pub fn raquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn laquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | pub fn laquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn ldquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 62 | pub fn ldquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn rdquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 66 | pub fn rdquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/userinfo.rs:23:71 [INFO] [stdout] | [INFO] [stdout] 23 | fn take_user(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a [u8], SipParseError> { [INFO] [stdout] | -- -- -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 23 | fn take_user(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a [u8], SipParseError<'a>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/userinfo.rs:27:75 [INFO] [stdout] | [INFO] [stdout] 27 | fn take_password(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a [u8], SipParseError> { [INFO] [stdout] | -- -- -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 27 | fn take_password(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a [u8], SipParseError<'a>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/userinfo.rs:31:50 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn from_bytes(input: &'a [u8]) -> Result> { [INFO] [stdout] | -- ^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 31 | pub fn from_bytes(input: &'a [u8]) -> Result, nom::Err>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/request.rs:34:51 [INFO] [stdout] | [INFO] [stdout] 34 | fn parse(buf_input: &'a [u8]) -> nom::IResult<&[u8], Request, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 34 | fn parse(buf_input: &'a [u8]) -> nom::IResult<&'a [u8], Request<'a>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | fn parse(rl: &[u8]) -> nom::IResult<&[u8], RequestLine, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 55 | fn parse(rl: &[u8]) -> nom::IResult<&[u8], RequestLine<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/response.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | fn parse(sl: &[u8]) -> nom::IResult<&[u8], StatusLine, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 32 | fn parse(sl: &[u8]) -> nom::IResult<&[u8], StatusLine<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/response.rs:78:51 [INFO] [stdout] | [INFO] [stdout] 78 | fn parse(buf_input: &'a [u8]) -> nom::IResult<&[u8], Response, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 78 | fn parse(buf_input: &'a [u8]) -> nom::IResult<&'a [u8], Response<'a>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/headers.rs:120:47 [INFO] [stdout] | [INFO] [stdout] 120 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 120 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/header.rs:188:55 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn take_name(input: &'a [u8]) -> nom::IResult<&[u8], &'a str, SipParseError> { [INFO] [stdout] | -- ^^^^^ -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 188 | pub fn take_name(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a str, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/header.rs:245:47 [INFO] [stdout] | [INFO] [stdout] 245 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 245 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/traits.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError>; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 8 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>>; [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/generic_params.rs:23:47 [INFO] [stdout] | [INFO] [stdout] 23 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 23 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/generic_params.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 71 | ) -> nom::IResult<&[u8], (Ascii<&str>, Option<&str>), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^ ^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 71 | ) -> nom::IResult<&[u8], (Ascii<&str>, Option<&str>), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/generic_params.rs:81:47 [INFO] [stdout] | [INFO] [stdout] 81 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 81 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn from_bytes(s: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 19 | pub fn from_bytes(s: &[u8]) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | fn parse_header(input: &[u8]) -> nom::IResult<&[u8], SipUriHeader, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 49 | fn parse_header(input: &[u8]) -> nom::IResult<&[u8], SipUriHeader<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:81:47 [INFO] [stdout] | [INFO] [stdout] 81 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 81 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/common/bnfcore.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | return true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 93 - return true; [INFO] [stdout] 93 + true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:138:23 [INFO] [stdout] | [INFO] [stdout] 137 | input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 138 | ) -> nom::IResult<&[u8], Option>, SipParseError> { [INFO] [stdout] | ^^^^^ -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 138 | ) -> nom::IResult<&'a [u8], Option>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:154:23 [INFO] [stdout] | [INFO] [stdout] 153 | input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 154 | ) -> nom::IResult<&[u8], Option>, SipParseError> { [INFO] [stdout] | ^^^^^ -- -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 154 | ) -> nom::IResult<&'a [u8], Option>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | c >= 0x21 && c <= 0x7E [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x21..=0x7E).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:172:23 [INFO] [stdout] | [INFO] [stdout] 170 | input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 171 | parse_with_parameters: bool, [INFO] [stdout] 172 | ) -> nom::IResult<&[u8], SipUri<'a>, SipParseError> { [INFO] [stdout] | ^^^^^ -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 172 | ) -> nom::IResult<&'a [u8], SipUri<'a>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:245:47 [INFO] [stdout] | [INFO] [stdout] 245 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 245 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/name_addr.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | source_input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 46 | display_name_type: NameAddrValueType, [INFO] [stdout] 47 | ) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 47 | ) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/name_addr.rs:64:30 [INFO] [stdout] | [INFO] [stdout] 63 | source_input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 64 | ) -> nom::IResult<&'a [u8], (&[u8], HeaderTags<'a>, Option), SipParseError<'a>> { [INFO] [stdout] | -- ^^^^^ -- ^^^^^^ -- the same lifetime is named here [INFO] [stdout] | | | | | [INFO] [stdout] | | | | the same lifetime is hidden here [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 64 | ) -> nom::IResult<&'a [u8], (&'a [u8], HeaderTags<'a>, Option>), SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/accept.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 56 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 56 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/accept_encoding.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 18 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/accept_language.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(initial_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(initial_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/alertinfo.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/extension.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 14 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/authentication_info.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 29 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/authorization.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 30 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/callid.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 15 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/contact.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | fn make_star_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 47 | fn make_star_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/contact.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 61 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/cseq.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/date.rs:65:33 [INFO] [stdout] | [INFO] [stdout] 65 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 65 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/from.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 13 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/retry_after.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 15 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/user_agent.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 22 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/mime_version.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 13 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/timestamp.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/via.rs:35:33 [INFO] [stdout] | [INFO] [stdout] 35 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 35 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/warning.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 22 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/digit_header.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/token_header.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/utf8_trim_header.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/auth_params.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 38 | source_input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 39 | ) -> nom::IResult<&[u8], (&[u8] /*vstr*/, HeaderTags<'a>), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 39 | ) -> nom::IResult<&'a [u8], (&'a [u8] /*vstr*/, HeaderTags<'a>), SipParseError<'a>> { [INFO] [stdout] | ++ ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:163:20 [INFO] [stdout] | [INFO] [stdout] 163 | is_digit(c) || c >= 0x61 && c <= 0x66 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x66).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/common/bnfcore.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | c >= 0x80 && c <= 0xBF [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x80..=0xBF).contains(&c)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn star(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:31:31 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn slash(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn equal(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn lparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn rparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn comma(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn semi(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/common/take_sws_token.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn colon(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/common/sip_method.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | / match self { [INFO] [stdout] 23 | | &SipMethod::ACK => "ACK", [INFO] [stdout] 24 | | &SipMethod::BYE => "BYE", [INFO] [stdout] 25 | | &SipMethod::CANCEL => "CANCEL", [INFO] [stdout] ... | [INFO] [stdout] 36 | | &SipMethod::UPDATE => "UPDATE", [INFO] [stdout] 37 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] = note: `#[warn(clippy::match_ref_pats)]` on by default [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 22 ~ match *self { [INFO] [stdout] 23 ~ SipMethod::ACK => "ACK", [INFO] [stdout] 24 ~ SipMethod::BYE => "BYE", [INFO] [stdout] 25 ~ SipMethod::CANCEL => "CANCEL", [INFO] [stdout] 26 ~ SipMethod::INFO => "INFO", [INFO] [stdout] 27 ~ SipMethod::INVITE => "INVITE", [INFO] [stdout] 28 ~ SipMethod::MESSAGE => "MESSAGE", [INFO] [stdout] 29 ~ SipMethod::NOTIFY => "NOTIFY", [INFO] [stdout] 30 ~ SipMethod::OPTIONS => "OPTIONS", [INFO] [stdout] 31 ~ SipMethod::PRACK => "PRACK", [INFO] [stdout] 32 ~ SipMethod::PUBLISH => "PUBLISH", [INFO] [stdout] 33 ~ SipMethod::REFER => "REFER", [INFO] [stdout] 34 ~ SipMethod::REGISTER => "REGISTER", [INFO] [stdout] 35 ~ SipMethod::SUBSCRIBE => "SUBSCRIBE", [INFO] [stdout] 36 ~ SipMethod::UPDATE => "UPDATE", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` [INFO] [stdout] --> src/common/sip_method.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / pub fn from_str(s: &str) -> Option { [INFO] [stdout] 41 | | let s = Ascii::new(s); [INFO] [stdout] 42 | | macro_rules! match_str { [INFO] [stdout] 43 | | ($input_str:expr, $enum_result:expr) => { [INFO] [stdout] ... | [INFO] [stdout] 63 | | None [INFO] [stdout] 64 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stdout] = note: `#[warn(clippy::should_implement_trait)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | const SIP: &'static [u8] = &['S' as u8, 'I' as u8, 'P' as u8]; // SIP [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'S'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] = note: `#[warn(clippy::char_lit_as_u8)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:13:41 [INFO] [stdout] | [INFO] [stdout] 13 | const SIP: &'static [u8] = &['S' as u8, 'I' as u8, 'P' as u8]; // SIP [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'I'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:13:52 [INFO] [stdout] | [INFO] [stdout] 13 | const SIP: &'static [u8] = &['S' as u8, 'I' as u8, 'P' as u8]; // SIP [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'P'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | const ACK: &'static [u8] = &['A' as u8, 'C' as u8, 'K' as u8]; // ACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'A'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:15:41 [INFO] [stdout] | [INFO] [stdout] 15 | const ACK: &'static [u8] = &['A' as u8, 'C' as u8, 'K' as u8]; // ACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'C'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:15:52 [INFO] [stdout] | [INFO] [stdout] 15 | const ACK: &'static [u8] = &['A' as u8, 'C' as u8, 'K' as u8]; // ACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'K'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | const BYE: &'static [u8] = &['B' as u8, 'Y' as u8, 'E' as u8]; // BYE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'B'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | const BYE: &'static [u8] = &['B' as u8, 'Y' as u8, 'E' as u8]; // BYE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'Y'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:16:52 [INFO] [stdout] | [INFO] [stdout] 16 | const BYE: &'static [u8] = &['B' as u8, 'Y' as u8, 'E' as u8]; // BYE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'E'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | const REG: &'static [u8] = &['R' as u8, 'E' as u8, 'G' as u8]; // REGISTER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'R'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:17:41 [INFO] [stdout] | [INFO] [stdout] 17 | const REG: &'static [u8] = &['R' as u8, 'E' as u8, 'G' as u8]; // REGISTER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'E'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | const REG: &'static [u8] = &['R' as u8, 'E' as u8, 'G' as u8]; // REGISTER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'G'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | const CAN: &'static [u8] = &['C' as u8, 'A' as u8, 'N' as u8]; // CANCEL [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'C'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:18:41 [INFO] [stdout] | [INFO] [stdout] 18 | const CAN: &'static [u8] = &['C' as u8, 'A' as u8, 'N' as u8]; // CANCEL [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'A'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:18:52 [INFO] [stdout] | [INFO] [stdout] 18 | const CAN: &'static [u8] = &['C' as u8, 'A' as u8, 'N' as u8]; // CANCEL [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'N'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | const INF: &'static [u8] = &['I' as u8, 'N' as u8, 'F' as u8]; // INFO [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'I'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 19 | const INF: &'static [u8] = &['I' as u8, 'N' as u8, 'F' as u8]; // INFO [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'N'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | const INF: &'static [u8] = &['I' as u8, 'N' as u8, 'F' as u8]; // INFO [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'F'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | const INV: &'static [u8] = &['I' as u8, 'N' as u8, 'V' as u8]; // INVITE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'I'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:20:41 [INFO] [stdout] | [INFO] [stdout] 20 | const INV: &'static [u8] = &['I' as u8, 'N' as u8, 'V' as u8]; // INVITE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'N'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:20:52 [INFO] [stdout] | [INFO] [stdout] 20 | const INV: &'static [u8] = &['I' as u8, 'N' as u8, 'V' as u8]; // INVITE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'V'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:21:30 [INFO] [stdout] | [INFO] [stdout] 21 | const MES: &'static [u8] = &['M' as u8, 'E' as u8, 'S' as u8]; // MESSAGE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'M'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | const MES: &'static [u8] = &['M' as u8, 'E' as u8, 'S' as u8]; // MESSAGE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'E'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | const MES: &'static [u8] = &['M' as u8, 'E' as u8, 'S' as u8]; // MESSAGE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'S'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | const NOT: &'static [u8] = &['N' as u8, 'O' as u8, 'T' as u8]; // NOTIFY [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'N'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 22 | const NOT: &'static [u8] = &['N' as u8, 'O' as u8, 'T' as u8]; // NOTIFY [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'O'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | const NOT: &'static [u8] = &['N' as u8, 'O' as u8, 'T' as u8]; // NOTIFY [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'T'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | const OPT: &'static [u8] = &['O' as u8, 'P' as u8, 'T' as u8]; // OPTIONS [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'O'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:23:41 [INFO] [stdout] | [INFO] [stdout] 23 | const OPT: &'static [u8] = &['O' as u8, 'P' as u8, 'T' as u8]; // OPTIONS [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'P'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:23:52 [INFO] [stdout] | [INFO] [stdout] 23 | const OPT: &'static [u8] = &['O' as u8, 'P' as u8, 'T' as u8]; // OPTIONS [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'T'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | const PRA: &'static [u8] = &['P' as u8, 'R' as u8, 'A' as u8]; // PRACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'P'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:24:41 [INFO] [stdout] | [INFO] [stdout] 24 | const PRA: &'static [u8] = &['P' as u8, 'R' as u8, 'A' as u8]; // PRACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'R'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:24:52 [INFO] [stdout] | [INFO] [stdout] 24 | const PRA: &'static [u8] = &['P' as u8, 'R' as u8, 'A' as u8]; // PRACK [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'A'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | const PUB: &'static [u8] = &['P' as u8, 'U' as u8, 'B' as u8]; // PUBLISH [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'P'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | const PUB: &'static [u8] = &['P' as u8, 'U' as u8, 'B' as u8]; // PUBLISH [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'U'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:25:52 [INFO] [stdout] | [INFO] [stdout] 25 | const PUB: &'static [u8] = &['P' as u8, 'U' as u8, 'B' as u8]; // PUBLISH [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'B'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | const REF: &'static [u8] = &['R' as u8, 'E' as u8, 'F' as u8]; // REFER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'R'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | const REF: &'static [u8] = &['R' as u8, 'E' as u8, 'F' as u8]; // REFER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'E'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:26:52 [INFO] [stdout] | [INFO] [stdout] 26 | const REF: &'static [u8] = &['R' as u8, 'E' as u8, 'F' as u8]; // REFER [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'F'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:27:30 [INFO] [stdout] | [INFO] [stdout] 27 | const SUB: &'static [u8] = &['S' as u8, 'U' as u8, 'B' as u8]; // SUBSCRIBE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'S'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:27:41 [INFO] [stdout] | [INFO] [stdout] 27 | const SUB: &'static [u8] = &['S' as u8, 'U' as u8, 'B' as u8]; // SUBSCRIBE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'U'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:27:52 [INFO] [stdout] | [INFO] [stdout] 27 | const SUB: &'static [u8] = &['S' as u8, 'U' as u8, 'B' as u8]; // SUBSCRIBE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'B'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | const UPD: &'static [u8] = &['U' as u8, 'P' as u8, 'D' as u8]; // UPDATE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'U'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:28:41 [INFO] [stdout] | [INFO] [stdout] 28 | const UPD: &'static [u8] = &['U' as u8, 'P' as u8, 'D' as u8]; // UPDATE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'P'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting a character literal to `u8` truncates [INFO] [stdout] --> src/message.rs:28:52 [INFO] [stdout] | [INFO] [stdout] 28 | const UPD: &'static [u8] = &['U' as u8, 'P' as u8, 'D' as u8]; // UPDATE [INFO] [stdout] | ^^^^^^^^^ help: use a byte literal instead: `b'D'` [INFO] [stdout] | [INFO] [stdout] = note: `char` is four bytes wide, but `u8` is a single byte [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/userinfo.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | / return Ok(UserInfo { [INFO] [stdout] 44 | | value: user_str, [INFO] [stdout] 45 | | password: None, [INFO] [stdout] 46 | | }); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 43 ~ Ok(UserInfo { [INFO] [stdout] 44 + value: user_str, [INFO] [stdout] 45 + password: None, [INFO] [stdout] 46 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/userinfo.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | / return Ok(UserInfo { [INFO] [stdout] 57 | | value: user_str, [INFO] [stdout] 58 | | password: Some(pswd_str), [INFO] [stdout] 59 | | }); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 56 ~ Ok(UserInfo { [INFO] [stdout] 57 + value: user_str, [INFO] [stdout] 58 + password: Some(pswd_str), [INFO] [stdout] 59 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/userinfo.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | if input.len() == 0 || (input.len() == 1 && input[0] == b'@') { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `input.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/userinfo.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | / match UserInfo::from_bytes(input.as_bytes()) { [INFO] [stdout] 88 | | Ok(_) => { [INFO] [stdout] 89 | | panic!(); [INFO] [stdout] ... | [INFO] [stdout] 92 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 87 ~ if let Ok(_) = UserInfo::from_bytes(input.as_bytes()) { [INFO] [stdout] 88 + panic!(); [INFO] [stdout] 89 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/request.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use core::{str, u8}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `u8::` will resolve to the respective associated constant [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/request.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | None => return sip_parse_error!(1, "Error cast from_utf8"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 86 - None => return sip_parse_error!(1, "Error cast from_utf8"), [INFO] [stdout] 86 + None => sip_parse_error!(1, "Error cast from_utf8"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u8` -> `u8`) [INFO] [stdout] --> src/request.rs:57:40 [INFO] [stdout] | [INFO] [stdout] 57 | let uri = take_while1(|c| c != b' ' as u8); [INFO] [stdout] | ^^^^^^^^^^ help: try: `b' '` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `from_str_radix` can be replaced with a call to `str::parse` [INFO] [stdout] --> src/request.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | u8::from_str_radix(str::from_utf8(major_version).unwrap(), 10).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `str::from_utf8(major_version).unwrap().parse::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `from_str_radix` can be replaced with a call to `str::parse` [INFO] [stdout] --> src/request.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | u8::from_str_radix(str::from_utf8(minor_version).unwrap(), 10).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `str::from_utf8(minor_version).unwrap().parse::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `from_str_radix` can be replaced with a call to `str::parse` [INFO] [stdout] --> src/response.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | u8::from_str_radix(str::from_utf8(major_version).unwrap(), 10).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `str::from_utf8(major_version).unwrap().parse::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `from_str_radix` can be replaced with a call to `str::parse` [INFO] [stdout] --> src/response.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | u8::from_str_radix(str::from_utf8(minor_version).unwrap(), 10).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `str::from_utf8(minor_version).unwrap().parse::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` [INFO] [stdout] --> src/response.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | / pub fn from_str(s: &str) -> StatusCode { [INFO] [stdout] 210 | | StatusCode::from_bytes_str(s.as_bytes()) [INFO] [stdout] 211 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/response.rs:270:9 [INFO] [stdout] | [INFO] [stdout] 270 | / match self { [INFO] [stdout] 271 | | &StatusCode::Trying => "Trying", [INFO] [stdout] 272 | | &StatusCode::Ringing => "Ringing", [INFO] [stdout] 273 | | &StatusCode::CallIsBeingForwarded => "Call Is Being Forwarded", [INFO] [stdout] ... | [INFO] [stdout] 321 | | &StatusCode::Unknown => "Unknown", [INFO] [stdout] 322 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 270 ~ match *self { [INFO] [stdout] 271 ~ StatusCode::Trying => "Trying", [INFO] [stdout] 272 ~ StatusCode::Ringing => "Ringing", [INFO] [stdout] 273 ~ StatusCode::CallIsBeingForwarded => "Call Is Being Forwarded", [INFO] [stdout] 274 ~ StatusCode::Queued => "Queued", [INFO] [stdout] 275 ~ StatusCode::SessionProgress => "Session Progress", [INFO] [stdout] 276 ~ StatusCode::OK => "OK", [INFO] [stdout] 277 ~ StatusCode::MultipleChoices => "Multiple Choices", [INFO] [stdout] 278 ~ StatusCode::MovedPermanently => "Moved Permanently", [INFO] [stdout] 279 ~ StatusCode::MovedTemporarily => "Moved Temporarily", [INFO] [stdout] 280 ~ StatusCode::UseProxy => "Use Proxy", [INFO] [stdout] 281 ~ StatusCode::AlternativeService => "Alternative Service", [INFO] [stdout] 282 ~ StatusCode::BadRequest => "Bad Request", [INFO] [stdout] 283 ~ StatusCode::Unauthorized => "Unauthorized", [INFO] [stdout] 284 ~ StatusCode::PaymentRequired => "Payment Required", [INFO] [stdout] 285 ~ StatusCode::Forbidden => "Forbidden", [INFO] [stdout] 286 ~ StatusCode::NotFound => "Not Found", [INFO] [stdout] 287 ~ StatusCode::MethodNotAllowed => "Method Not Allowed", [INFO] [stdout] 288 ~ StatusCode::NotAcceptableResourceContent => "Not Acceptable", [INFO] [stdout] 289 ~ StatusCode::ProxyAuthenticationRequired => "Proxy Authentication Required", [INFO] [stdout] 290 ~ StatusCode::RequestTimeout => "Request Timeout", [INFO] [stdout] 291 ~ StatusCode::Gone => "Gone", [INFO] [stdout] 292 ~ StatusCode::RequestEntityTooLarge => "Request Entity Too Large", [INFO] [stdout] 293 ~ StatusCode::RequestUriTooLong => "Request-URI Too Long", [INFO] [stdout] 294 ~ StatusCode::UnsupportedMediaType => "Unsupported Media Type", [INFO] [stdout] 295 ~ StatusCode::UnsupportedUriScheme => "Unsupported URI Scheme", [INFO] [stdout] 296 ~ StatusCode::BadExtension => "Bad Extension", [INFO] [stdout] 297 ~ StatusCode::ExtensionRequired => "Extension Required", [INFO] [stdout] 298 ~ StatusCode::IntervalTooBrief => "Interval Too Brief", [INFO] [stdout] 299 ~ StatusCode::TemporarilyUnavailable => "Temporarily Unavailable", [INFO] [stdout] 300 ~ StatusCode::CallOrTransactionDoesNotExist => "Call/Transaction Does Not Exist", [INFO] [stdout] 301 ~ StatusCode::LoopDetected => "Loop Detected", [INFO] [stdout] 302 ~ StatusCode::TooManyHops => "Too Many Hops", [INFO] [stdout] 303 ~ StatusCode::AddressIncomplete => "Address Incomplete", [INFO] [stdout] 304 ~ StatusCode::Ambiguous => "Ambiguous", [INFO] [stdout] 305 ~ StatusCode::BusyHere => "Busy Here", [INFO] [stdout] 306 ~ StatusCode::RequestTerminated => "Request Terminated", [INFO] [stdout] 307 ~ StatusCode::NotAcceptableHere => "Not Acceptable Here", [INFO] [stdout] 308 ~ StatusCode::RequestPending => "Request Pending", [INFO] [stdout] 309 ~ StatusCode::Undecipherable => "Undecipherable", [INFO] [stdout] 310 ~ StatusCode::ServerInternalError => "Server Internal Error", [INFO] [stdout] 311 ~ StatusCode::NotImplemented => "Not Implemented", [INFO] [stdout] 312 ~ StatusCode::BadGateway => "Bad Gateway", [INFO] [stdout] 313 ~ StatusCode::ServiceUnavailable => "Service Unavailable", [INFO] [stdout] 314 ~ StatusCode::ServerTimeout => "Server Time-out", [INFO] [stdout] 315 ~ StatusCode::VersionNotSupported => "Version Not Supported", [INFO] [stdout] 316 ~ StatusCode::MessageTooLarge => "Message Too Large", [INFO] [stdout] 317 ~ StatusCode::BusyEverywhere => "Busy Everywhere", [INFO] [stdout] 318 ~ StatusCode::Decline => "Decline", [INFO] [stdout] 319 ~ StatusCode::DoesNotExistAnywhere => "Does Not Exist Anywhere", [INFO] [stdout] 320 ~ StatusCode::NotAcceptable => "Not Acceptable", [INFO] [stdout] 321 ~ StatusCode::Unknown => "Unknown", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module has the same name as its containing module [INFO] [stdout] --> src/headers/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod headers; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stdout] = note: `#[warn(clippy::module_inception)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/headers.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | return Some(&s[0]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 35 ~ Some(&s[0]) [INFO] [stdout] 36 | } else { [INFO] [stdout] 37 | return None; [INFO] [stdout] 38 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/headers.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | return None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 37 ~ None [INFO] [stdout] 38 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/headers.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | return Some(&s[0]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 51 ~ Some(&s[0]) [INFO] [stdout] 52 | } else { [INFO] [stdout] 53 | return None; [INFO] [stdout] 54 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/headers.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | return None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 53 ~ None [INFO] [stdout] 54 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Headers` has a public `len` method, but no `is_empty` method [INFO] [stdout] --> src/headers/headers.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stdout] = note: `#[warn(clippy::len_without_is_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `contains_key` followed by `insert` on a `BTreeMap` [INFO] [stdout] --> src/headers/headers.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | / if self.rfc_headers.contains_key(&header_type) { [INFO] [stdout] 82 | | self.rfc_headers [INFO] [stdout] 83 | | .get_mut(&header_type) [INFO] [stdout] 84 | | .unwrap() [INFO] [stdout] ... | [INFO] [stdout] 87 | | self.rfc_headers.insert(header_type, vec_headers); [INFO] [stdout] 88 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_entry [INFO] [stdout] = note: `#[warn(clippy::map_entry)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 81 ~ if let std::collections::btree_map::Entry::Vacant(e) = self.rfc_headers.entry(header_type) { [INFO] [stdout] 82 + e.insert(vec_headers); [INFO] [stdout] 83 + } else { [INFO] [stdout] 84 + self.rfc_headers [INFO] [stdout] 85 + .get_mut(&header_type) [INFO] [stdout] 86 + .unwrap() [INFO] [stdout] 87 + .append(&mut vec_headers) [INFO] [stdout] 88 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/headers/headers.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | if self.ext_headers == None { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `Option::is_none()` instead: `self.ext_headers.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/headers/headers.rs:180:30 [INFO] [stdout] | [INFO] [stdout] 180 | .get(&"q"), [INFO] [stdout] | ^^^^ help: change this to: `"q"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/headers/header.rs:182:38 [INFO] [stdout] | [INFO] [stdout] 182 | match SipRFCHeader::from_str(&header_name) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `header_name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` [INFO] [stdout] --> src/headers/rfcheader.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | / pub fn from_str(s: &str) -> Option { [INFO] [stdout] 63 | | let s = Ascii::new(s); [INFO] [stdout] 64 | | macro_rules! match_str { [INFO] [stdout] 65 | | ($input_str:expr, $enum_result:expr) => { [INFO] [stdout] ... | [INFO] [stdout] 126 | | None [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/headers/rfcheader.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | / match self { [INFO] [stdout] 131 | | &SipRFCHeader::Accept => "Accept", [INFO] [stdout] 132 | | &SipRFCHeader::AcceptEncoding => "Accept-Encoding", [INFO] [stdout] 133 | | &SipRFCHeader::AcceptLanguage => "Accept-Language", [INFO] [stdout] ... | [INFO] [stdout] 174 | | &SipRFCHeader::WWWAuthenticate => "WWW-Authenticate", [INFO] [stdout] 175 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 130 ~ match *self { [INFO] [stdout] 131 ~ SipRFCHeader::Accept => "Accept", [INFO] [stdout] 132 ~ SipRFCHeader::AcceptEncoding => "Accept-Encoding", [INFO] [stdout] 133 ~ SipRFCHeader::AcceptLanguage => "Accept-Language", [INFO] [stdout] 134 ~ SipRFCHeader::AlertInfo => "Alert-Info", [INFO] [stdout] 135 ~ SipRFCHeader::Allow => "Allow", [INFO] [stdout] 136 ~ SipRFCHeader::AuthenticationInfo => "Authentication-Info", [INFO] [stdout] 137 ~ SipRFCHeader::Authorization => "Authorization", [INFO] [stdout] 138 ~ SipRFCHeader::CallID => "Call-ID", [INFO] [stdout] 139 ~ SipRFCHeader::CallInfo => "Call-Info", [INFO] [stdout] 140 ~ SipRFCHeader::Contact => "Contact", [INFO] [stdout] 141 ~ SipRFCHeader::ContentDisposition => "Content-Disposition", [INFO] [stdout] 142 ~ SipRFCHeader::ContentEncoding => "Content-Encoding", [INFO] [stdout] 143 ~ SipRFCHeader::ContentLanguage => "Content-Language", [INFO] [stdout] 144 ~ SipRFCHeader::ContentLength => "Content-Length", [INFO] [stdout] 145 ~ SipRFCHeader::ContentType => "Content-Type", [INFO] [stdout] 146 ~ SipRFCHeader::CSeq => "CSeq", [INFO] [stdout] 147 ~ SipRFCHeader::Date => "Date", [INFO] [stdout] 148 ~ SipRFCHeader::ErrorInfo => "Error-Info", [INFO] [stdout] 149 ~ SipRFCHeader::Expires => "Expires", [INFO] [stdout] 150 ~ SipRFCHeader::From => "From", [INFO] [stdout] 151 ~ SipRFCHeader::InReplyTo => "In-Reply-To", [INFO] [stdout] 152 ~ SipRFCHeader::MaxForwards => "Max-Forwards", [INFO] [stdout] 153 ~ SipRFCHeader::MimeVersion => "MIME-Version", [INFO] [stdout] 154 ~ SipRFCHeader::MinExpires => "Min-Expires", [INFO] [stdout] 155 ~ SipRFCHeader::Organization => "Organization", [INFO] [stdout] 156 ~ SipRFCHeader::Priority => "Priority", [INFO] [stdout] 157 ~ SipRFCHeader::ProxyAuthenticate => "Proxy-Authenticate", [INFO] [stdout] 158 ~ SipRFCHeader::ProxyAuthorization => "Proxy-Authorization", [INFO] [stdout] 159 ~ SipRFCHeader::ProxyRequire => "Proxy-Require", [INFO] [stdout] 160 ~ SipRFCHeader::RecordRoute => "Record-Route", [INFO] [stdout] 161 ~ SipRFCHeader::ReplyTo => "Reply-To", [INFO] [stdout] 162 ~ SipRFCHeader::Require => "Require", [INFO] [stdout] 163 ~ SipRFCHeader::RetryAfter => "Retry-After", [INFO] [stdout] 164 ~ SipRFCHeader::Route => "Route", [INFO] [stdout] 165 ~ SipRFCHeader::Server => "Server", [INFO] [stdout] 166 ~ SipRFCHeader::Subject => "Subject", [INFO] [stdout] 167 ~ SipRFCHeader::Supported => "Supported", [INFO] [stdout] 168 ~ SipRFCHeader::Timestamp => "Timestamp", [INFO] [stdout] 169 ~ SipRFCHeader::To => "To", [INFO] [stdout] 170 ~ SipRFCHeader::Unsupported => "Unsupported", [INFO] [stdout] 171 ~ SipRFCHeader::UserAgent => "User-Agent", [INFO] [stdout] 172 ~ SipRFCHeader::Via => "Via", [INFO] [stdout] 173 ~ SipRFCHeader::Warning => "Warning", [INFO] [stdout] 174 ~ SipRFCHeader::WWWAuthenticate => "WWW-Authenticate", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/headers/rfcheader.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | / match self { [INFO] [stdout] 180 | | &SipRFCHeader::Accept => AcceptParser::take_value, [INFO] [stdout] 181 | | &SipRFCHeader::AcceptEncoding => AcceptEncodingParser::take_value, [INFO] [stdout] 182 | | &SipRFCHeader::AcceptLanguage => AcceptLanguageParser::take_value, [INFO] [stdout] ... | [INFO] [stdout] 223 | | &SipRFCHeader::WWWAuthenticate => Authorization::take_value, [INFO] [stdout] 224 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 179 ~ match *self { [INFO] [stdout] 180 ~ SipRFCHeader::Accept => AcceptParser::take_value, [INFO] [stdout] 181 ~ SipRFCHeader::AcceptEncoding => AcceptEncodingParser::take_value, [INFO] [stdout] 182 ~ SipRFCHeader::AcceptLanguage => AcceptLanguageParser::take_value, [INFO] [stdout] 183 ~ SipRFCHeader::AlertInfo => AlertInfoParser::take_value, [INFO] [stdout] 184 ~ SipRFCHeader::Allow => token_header::take, [INFO] [stdout] 185 ~ SipRFCHeader::AuthenticationInfo => AuthenticationInfoParser::take_value, [INFO] [stdout] 186 ~ SipRFCHeader::Authorization => Authorization::take_value, [INFO] [stdout] 187 ~ SipRFCHeader::CallID => CallID::take_value, [INFO] [stdout] 188 ~ SipRFCHeader::CallInfo => AlertInfoParser::take_value, [INFO] [stdout] 189 ~ SipRFCHeader::Contact => Contact::take_value, [INFO] [stdout] 190 ~ SipRFCHeader::ContentDisposition => token_header::take, [INFO] [stdout] 191 ~ SipRFCHeader::ContentEncoding => token_header::take, [INFO] [stdout] 192 ~ SipRFCHeader::ContentLanguage => token_header::take, [INFO] [stdout] 193 ~ SipRFCHeader::ContentLength => digit_header::take, [INFO] [stdout] 194 ~ SipRFCHeader::ContentType => AcceptParser::take_value, [INFO] [stdout] 195 ~ SipRFCHeader::CSeq => CSeq::take_value, [INFO] [stdout] 196 ~ SipRFCHeader::Date => Date::take_value, [INFO] [stdout] 197 ~ SipRFCHeader::ErrorInfo => AlertInfoParser::take_value, [INFO] [stdout] 198 ~ SipRFCHeader::Expires => digit_header::take, [INFO] [stdout] 199 ~ SipRFCHeader::From => From::take_value, [INFO] [stdout] 200 ~ SipRFCHeader::To => From::take_value, [INFO] [stdout] 201 ~ SipRFCHeader::InReplyTo => CallID::take_value, [INFO] [stdout] 202 ~ SipRFCHeader::MaxForwards => digit_header::take, [INFO] [stdout] 203 ~ SipRFCHeader::Organization => utf8_trim_header::take, [INFO] [stdout] 204 ~ SipRFCHeader::Priority => token_header::take, [INFO] [stdout] 205 ~ SipRFCHeader::ProxyAuthenticate => Authorization::take_value, [INFO] [stdout] 206 ~ SipRFCHeader::ProxyAuthorization => Authorization::take_value, [INFO] [stdout] 207 ~ SipRFCHeader::ProxyRequire => token_header::take, [INFO] [stdout] 208 ~ SipRFCHeader::RecordRoute => From::take_value, [INFO] [stdout] 209 ~ SipRFCHeader::Route => From::take_value, [INFO] [stdout] 210 ~ SipRFCHeader::ReplyTo => From::take_value, [INFO] [stdout] 211 ~ SipRFCHeader::Require => token_header::take, [INFO] [stdout] 212 ~ SipRFCHeader::RetryAfter => RetryAfter::take_value, [INFO] [stdout] 213 ~ SipRFCHeader::Server => UserAgent::take_value, [INFO] [stdout] 214 ~ SipRFCHeader::UserAgent => UserAgent::take_value, [INFO] [stdout] 215 ~ SipRFCHeader::Subject => utf8_trim_header::take, [INFO] [stdout] 216 ~ SipRFCHeader::Supported => token_header::take, [INFO] [stdout] 217 ~ SipRFCHeader::MimeVersion => MimeVersion::take_value, [INFO] [stdout] 218 ~ SipRFCHeader::MinExpires => digit_header::take, [INFO] [stdout] 219 ~ SipRFCHeader::Timestamp => Timestamp::take_value, [INFO] [stdout] 220 ~ SipRFCHeader::Unsupported => token_header::take, [INFO] [stdout] 221 ~ SipRFCHeader::Via => Via::take_value, [INFO] [stdout] 222 ~ SipRFCHeader::Warning => Warning::take_value, [INFO] [stdout] 223 ~ SipRFCHeader::WWWAuthenticate => Authorization::take_value, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/response.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | .get(&"branch"), [INFO] [stdout] | ^^^^^^^^^ help: change this to: `"branch"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/response.rs:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | .get(&"received"), [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `"received"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/response.rs:94:26 [INFO] [stdout] | [INFO] [stdout] 94 | .get(&"rport"), [INFO] [stdout] | ^^^^^^^^ help: change this to: `"rport"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/generic_params.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | assert_eq!(gparams.contains("a"), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 103 - assert_eq!(gparams.contains("a"), true); [INFO] [stdout] 103 + assert!(gparams.contains("a")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/generic_params.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | assert_eq!(gparams.contains("b"), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 104 - assert_eq!(gparams.contains("b"), false); [INFO] [stdout] 104 + assert!(!gparams.contains("b")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/generic_params.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(gparams.contains("c"), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 105 - assert_eq!(gparams.contains("c"), false); [INFO] [stdout] 105 + assert!(!gparams.contains("c")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/response.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | .get(&"tag"), [INFO] [stdout] | ^^^^^^ help: change this to: `"tag"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/response.rs:136:26 [INFO] [stdout] | [INFO] [stdout] 136 | .get(&"tag"), [INFO] [stdout] | ^^^^^^ help: change this to: `"tag"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/headers/generic_params.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | / match GenericParam::parse(input_str.as_bytes()) { [INFO] [stdout] 162 | | Ok((_, _)) => panic!(), [INFO] [stdout] 163 | | Err(_) => {} [INFO] [stdout] 164 | | } [INFO] [stdout] | |_________^ help: try: `if let Ok((_, _)) = GenericParam::parse(input_str.as_bytes()) { panic!() }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/headers/sipuri.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | if input.len() == 0 || input[0] != b'=' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `input.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/headers/sipuri.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | if input.len() == 0 || input[0] != b'&' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `input.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/sipuri.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | return Ok((input, Some(params))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 144 - return Ok((input, Some(params))); [INFO] [stdout] 144 + Ok((input, Some(params))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/sipuri.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | return Err(e); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 147 - return Err(e); [INFO] [stdout] 147 + Err(e) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/sipuri.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | return Ok((input, Some(headers))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 160 - return Ok((input, Some(headers))); [INFO] [stdout] 160 + Ok((input, Some(headers))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/sipuri.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | return Err(e); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 163 - return Err(e); [INFO] [stdout] 163 + Err(e) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/headers/sipuri.rs:286:43 [INFO] [stdout] | [INFO] [stdout] 286 | sip_uri.params().unwrap().get(&"transport"), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `"transport"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/headers/sipuri.rs:301:50 [INFO] [stdout] | [INFO] [stdout] 301 | assert_eq!(sip_uri.params().unwrap().get(&"user"), Some(&Some("phone"))); [INFO] [stdout] | ^^^^^^^ help: change this to: `"user"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:54:48 [INFO] [stdout] | [INFO] [stdout] 54 | request_line.uri.params().unwrap().get(&"unknownparam"), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `"unknownparam"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | to_hdr.params().unwrap().get(&"tag"), [INFO] [stdout] | ^^^^^^ help: change this to: `"tag"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:83:40 [INFO] [stdout] | [INFO] [stdout] 83 | from_hdr.params().unwrap().get(&"tag"), [INFO] [stdout] | ^^^^^^ help: change this to: `"tag"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/headers/sipuri.rs:350:43 [INFO] [stdout] | [INFO] [stdout] 350 | sip_uri.params().unwrap().get(&"method"), [INFO] [stdout] | ^^^^^^^^^ help: change this to: `"method"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:128:41 [INFO] [stdout] | [INFO] [stdout] 128 | first_via.params().unwrap().get(&"branch"), [INFO] [stdout] | ^^^^^^^^^ help: change this to: `"branch"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/name_addr.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | return NameAddrValueType::TokenDisplayName; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 41 - return NameAddrValueType::TokenDisplayName; [INFO] [stdout] 41 + NameAddrValueType::TokenDisplayName [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:163:41 [INFO] [stdout] | [INFO] [stdout] 163 | seond_via.params().unwrap().get(&"branch"), [INFO] [stdout] | ^^^^^^^^^ help: change this to: `"branch"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/headers/name_addr.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 64 | ) -> nom::IResult<&'a [u8], (&[u8], HeaderTags<'a>, Option), SipParseError<'a>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:192:37 [INFO] [stdout] | [INFO] [stdout] 192 | assert_eq!(route_uri_params.get(&"lr"), Some(&None)); [INFO] [stdout] | ^^^^^ help: change this to: `"lr"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:193:37 [INFO] [stdout] | [INFO] [stdout] 193 | assert_eq!(route_uri_params.get(&"unknownwith"), Some(&Some("value"))); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `"unknownwith"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:194:37 [INFO] [stdout] | [INFO] [stdout] 194 | assert_eq!(route_uri_params.get(&"unknown-no-value"), Some(&None)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: change this to: `"unknown-no-value"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/accept.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | return false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 51 - return false; [INFO] [stdout] 51 + false [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:195:37 [INFO] [stdout] | [INFO] [stdout] 195 | assert_eq!(route_uri_params.get(&"missing_param"), None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `"missing_param"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:207:35 [INFO] [stdout] | [INFO] [stdout] 207 | assert_eq!(contact_params.get(&"newparam"), Some(&Some("newvalue"))); [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `"newparam"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:208:35 [INFO] [stdout] | [INFO] [stdout] 208 | assert_eq!(contact_params.get(&"secondparam"), Some(&None)); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `"secondparam"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/rfc4475.rs:209:35 [INFO] [stdout] | [INFO] [stdout] 209 | assert_eq!(contact_params.get(&"q"), Some(&Some("0.33"))); [INFO] [stdout] | ^^^^ help: change this to: `"q"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/parsers/accept.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | assert_eq!(AcceptParser::validate_q_param(""), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 95 - assert_eq!(AcceptParser::validate_q_param(""), false); [INFO] [stdout] 95 + assert!(!AcceptParser::validate_q_param("")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/parsers/accept.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | assert_eq!(AcceptParser::validate_q_param("1.1"), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 96 - assert_eq!(AcceptParser::validate_q_param("1.1"), false); [INFO] [stdout] 96 + assert!(!AcceptParser::validate_q_param("1.1")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/parsers/accept.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | assert_eq!(AcceptParser::validate_q_param("9"), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 97 - assert_eq!(AcceptParser::validate_q_param("9"), false); [INFO] [stdout] 97 + assert!(!AcceptParser::validate_q_param("9")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/parsers/accept.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(AcceptParser::validate_q_param("00"), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 98 - assert_eq!(AcceptParser::validate_q_param("00"), false); [INFO] [stdout] 98 + assert!(!AcceptParser::validate_q_param("00")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/parsers/accept.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(AcceptParser::validate_q_param("0.001"), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 99 - assert_eq!(AcceptParser::validate_q_param("0.001"), true); [INFO] [stdout] 99 + assert!(AcceptParser::validate_q_param("0.001")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/parsers/accept.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | assert_eq!(AcceptParser::validate_q_param("0.01"), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 100 - assert_eq!(AcceptParser::validate_q_param("0.01"), true); [INFO] [stdout] 100 + assert!(AcceptParser::validate_q_param("0.01")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/parsers/accept.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | assert_eq!(AcceptParser::validate_q_param("0.1"), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 101 - assert_eq!(AcceptParser::validate_q_param("0.1"), true); [INFO] [stdout] 101 + assert!(AcceptParser::validate_q_param("0.1")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/parsers/accept.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | assert_eq!(AcceptParser::validate_q_param("0."), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 102 - assert_eq!(AcceptParser::validate_q_param("0."), true); [INFO] [stdout] 102 + assert!(AcceptParser::validate_q_param("0.")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/parsers/accept.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | assert_eq!(AcceptParser::validate_q_param("1."), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 103 - assert_eq!(AcceptParser::validate_q_param("1."), true); [INFO] [stdout] 103 + assert!(AcceptParser::validate_q_param("1.")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/headers/parsers/accept.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | assert_eq!(AcceptParser::validate_q_param("1.000"), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 104 - assert_eq!(AcceptParser::validate_q_param("1.000"), true); [INFO] [stdout] 104 + assert!(AcceptParser::validate_q_param("1.000")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/request.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | .get(&"branch"), [INFO] [stdout] | ^^^^^^^^^ help: change this to: `"branch"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/request.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 72 | .get(&"tag"), [INFO] [stdout] | ^^^^^^ help: change this to: `"tag"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/request.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | .get(&"onemore"), [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `"onemore"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to one [INFO] [stdout] --> src/headers/parsers/accept_language.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | if left_part.len() < 1 || left_part.len() > 8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `left_part.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/request.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 133 | .get(&"q"), [INFO] [stdout] | ^^^^ help: change this to: `"q"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to one [INFO] [stdout] --> src/headers/parsers/accept_language.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | if right_part.len() < 1 || right_part.len() > 8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `right_part.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/request.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 193 | .get(&"transport"), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `"transport"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/headers/parsers/alertinfo.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | / match AlertInfoParser::take_value("random word\r\n".as_bytes()) { [INFO] [stdout] 55 | | Ok((_, _)) => { [INFO] [stdout] 56 | | panic!(); [INFO] [stdout] ... | [INFO] [stdout] 59 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 54 ~ if let Ok((_, _)) = AlertInfoParser::take_value("random word\r\n".as_bytes()) { [INFO] [stdout] 55 + panic!(); [INFO] [stdout] 56 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/authentication_info.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | b"nextnonce" => return true, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 18 - b"nextnonce" => return true, [INFO] [stdout] 18 + b"nextnonce" => true, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/authentication_info.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | _ => return false, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 23 - _ => return false, [INFO] [stdout] 23 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/request.rs:221:45 [INFO] [stdout] | [INFO] [stdout] 221 | assert_eq!(rl.uri.params().unwrap().get(&"unknownparam"), Some(&None)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `"unknownparam"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/callid.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | return Ok((input, hdr_val)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 36 - return Ok((input, hdr_val)); [INFO] [stdout] 36 + Ok((input, hdr_val)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/headers/parsers/callid.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | if expected_host_value != None { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `Option::is_some()` instead: `expected_host_value.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/headers/parsers/contact.rs:152:58 [INFO] [stdout] | [INFO] [stdout] 152 | val.sip_uri().unwrap().params().unwrap().get(&"line"), [INFO] [stdout] | ^^^^^^^ help: change this to: `"line"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/headers/parsers/contact.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 210 | .get(&"unknownparam"), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `"unknownparam"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/date.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | b"Mon" => return true, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 32 - b"Mon" => return true, [INFO] [stdout] 32 + b"Mon" => true, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/date.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | _ => return false, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 39 - _ => return false, [INFO] [stdout] 39 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/date.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | b"Jan" => return true, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 45 - b"Jan" => return true, [INFO] [stdout] 45 + b"Jan" => true, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/date.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 57 | _ => return false, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 57 - _ => return false, [INFO] [stdout] 57 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/headers/parsers/retry_after.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | return Ok((input, hdr_val)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 39 - return Ok((input, hdr_val)); [INFO] [stdout] 39 + Ok((input, hdr_val)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/headers/parsers/via.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | if port != None { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `Option::is_some()` instead: `port.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/headers/auth_params.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | if !tag_type.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `tag_type.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `tag_type` after checking its variant with `is_none` [INFO] [stdout] --> src/headers/auth_params.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 64 | if !tag_type.is_none() { [INFO] [stdout] | ------------------ the check is happening here [INFO] [stdout] 65 | let tt = tag_type.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/headers/auth_params.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | / if tt == HeaderTagType::NonceCount { [INFO] [stdout] 67 | | if param_value.len() != 8 { [INFO] [stdout] 68 | | return sip_parse_error!(2, "Invalid nonce len"); [INFO] [stdout] 69 | | } [INFO] [stdout] 70 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 66 ~ if tt == HeaderTagType::NonceCount [INFO] [stdout] 67 ~ && param_value.len() != 8 { [INFO] [stdout] 68 | return sip_parse_error!(2, "Invalid nonce len"); [INFO] [stdout] 69 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/common/errorparse.rs:54:56 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(code: u32, message: Option<&'a str>) -> SipParseError { [INFO] [stdout] | -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(code: u32, message: Option<&'a str>) -> SipParseError<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/common/hostport.rs:23:60 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn take_ipv6_host(input: &'a [u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 23 | pub fn take_ipv6_host(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a [u8], SipParseError<'a>> { [INFO] [stdout] | ++ ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/common/hostport.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 31 | input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 32 | ) -> nom::IResult<&[u8], (&[u8], Option<&[u8]>), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 32 | ) -> nom::IResult<&'a [u8], (&'a [u8], Option<&'a [u8]>), SipParseError<'a>> { [INFO] [stdout] | ++ ++ ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/common/hostport.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], HostPort, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 53 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], HostPort<'a>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 18 | is_fun: fn(c: u8) -> bool, [INFO] [stdout] 19 | ) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 19 | ) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | source_input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 37 | ) -> nom::IResult<&[u8] /* it shoud be quote, otherwise - error */, &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | the same lifetime is elided here the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 37 | ) -> nom::IResult<&[u8] /* it shoud be quote, otherwise - error */, &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | source_input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 55 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 55 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:63:31 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn take_lws(source_input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 63 | pub fn take_lws(source_input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn take_sws(source_input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 71 | pub fn take_sws(source_input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 98 | cond_fun: fn(c: u8) -> bool, [INFO] [stdout] 99 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 99 | ) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/nom_wrappers.rs:104:25 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn from_utf8_nom(v: &[u8]) -> nom::IResult<&str, &str, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^ ^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 104 | pub fn from_utf8_nom(v: &[u8]) -> nom::IResult<&str, &str, SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/common/traits.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError>; [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 5 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>>; [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn star(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | pub fn star(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn slash(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 31 | pub fn slash(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn equal(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | pub fn equal(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn lparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 37 | pub fn lparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn rparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 40 | pub fn rparen(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn comma(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 44 | pub fn comma(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn semi(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 47 | pub fn semi(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn colon(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | | | [INFO] [stdout] | | | | | the same lifetime is elided here [INFO] [stdout] | | | | the same lifetime is elided here [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn colon(input: &[u8]) -> nom::IResult<&[u8], (&[u8], &[u8], &[u8]), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn raquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 54 | pub fn raquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn laquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | pub fn laquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn ldquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 62 | pub fn ldquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/common/take_sws_token.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn rdquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 66 | pub fn rdquot(input: &[u8]) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/userinfo.rs:23:71 [INFO] [stdout] | [INFO] [stdout] 23 | fn take_user(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a [u8], SipParseError> { [INFO] [stdout] | -- -- -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 23 | fn take_user(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a [u8], SipParseError<'a>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/userinfo.rs:27:75 [INFO] [stdout] | [INFO] [stdout] 27 | fn take_password(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a [u8], SipParseError> { [INFO] [stdout] | -- -- -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 27 | fn take_password(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a [u8], SipParseError<'a>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/userinfo.rs:31:50 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn from_bytes(input: &'a [u8]) -> Result> { [INFO] [stdout] | -- ^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 31 | pub fn from_bytes(input: &'a [u8]) -> Result, nom::Err>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/request.rs:34:51 [INFO] [stdout] | [INFO] [stdout] 34 | fn parse(buf_input: &'a [u8]) -> nom::IResult<&[u8], Request, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 34 | fn parse(buf_input: &'a [u8]) -> nom::IResult<&'a [u8], Request<'a>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | fn parse(rl: &[u8]) -> nom::IResult<&[u8], RequestLine, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 55 | fn parse(rl: &[u8]) -> nom::IResult<&[u8], RequestLine<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/response.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | fn parse(sl: &[u8]) -> nom::IResult<&[u8], StatusLine, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 32 | fn parse(sl: &[u8]) -> nom::IResult<&[u8], StatusLine<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/response.rs:78:51 [INFO] [stdout] | [INFO] [stdout] 78 | fn parse(buf_input: &'a [u8]) -> nom::IResult<&[u8], Response, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 78 | fn parse(buf_input: &'a [u8]) -> nom::IResult<&'a [u8], Response<'a>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/headers.rs:120:47 [INFO] [stdout] | [INFO] [stdout] 120 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 120 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/header.rs:188:55 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn take_name(input: &'a [u8]) -> nom::IResult<&[u8], &'a str, SipParseError> { [INFO] [stdout] | -- ^^^^^ -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 188 | pub fn take_name(input: &'a [u8]) -> nom::IResult<&'a [u8], &'a str, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/header.rs:245:47 [INFO] [stdout] | [INFO] [stdout] 245 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 245 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/traits.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError>; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 8 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>>; [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/generic_params.rs:23:47 [INFO] [stdout] | [INFO] [stdout] 23 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 23 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/generic_params.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 71 | ) -> nom::IResult<&[u8], (Ascii<&str>, Option<&str>), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^ ^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is elided here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 71 | ) -> nom::IResult<&[u8], (Ascii<&str>, Option<&str>), SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/generic_params.rs:81:47 [INFO] [stdout] | [INFO] [stdout] 81 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 81 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn from_bytes(s: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 19 | pub fn from_bytes(s: &[u8]) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | fn parse_header(input: &[u8]) -> nom::IResult<&[u8], SipUriHeader, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 49 | fn parse_header(input: &[u8]) -> nom::IResult<&[u8], SipUriHeader<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:81:47 [INFO] [stdout] | [INFO] [stdout] 81 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 81 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:138:23 [INFO] [stdout] | [INFO] [stdout] 137 | input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 138 | ) -> nom::IResult<&[u8], Option>, SipParseError> { [INFO] [stdout] | ^^^^^ -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 138 | ) -> nom::IResult<&'a [u8], Option>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:154:23 [INFO] [stdout] | [INFO] [stdout] 153 | input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 154 | ) -> nom::IResult<&[u8], Option>, SipParseError> { [INFO] [stdout] | ^^^^^ -- -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 154 | ) -> nom::IResult<&'a [u8], Option>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:172:23 [INFO] [stdout] | [INFO] [stdout] 170 | input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 171 | parse_with_parameters: bool, [INFO] [stdout] 172 | ) -> nom::IResult<&[u8], SipUri<'a>, SipParseError> { [INFO] [stdout] | ^^^^^ -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 172 | ) -> nom::IResult<&'a [u8], SipUri<'a>, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/sipuri.rs:245:47 [INFO] [stdout] | [INFO] [stdout] 245 | fn parse(input: &'a [u8]) -> nom::IResult<&[u8], Self::ParseResult, SipParseError> { [INFO] [stdout] | -- ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 245 | fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self::ParseResult, SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/name_addr.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | source_input: &[u8], [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 46 | display_name_type: NameAddrValueType, [INFO] [stdout] 47 | ) -> nom::IResult<&[u8], &[u8], SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 47 | ) -> nom::IResult<&[u8], &[u8], SipParseError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/name_addr.rs:64:30 [INFO] [stdout] | [INFO] [stdout] 63 | source_input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 64 | ) -> nom::IResult<&'a [u8], (&[u8], HeaderTags<'a>, Option), SipParseError<'a>> { [INFO] [stdout] | -- ^^^^^ -- ^^^^^^ -- the same lifetime is named here [INFO] [stdout] | | | | | [INFO] [stdout] | | | | the same lifetime is hidden here [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 64 | ) -> nom::IResult<&'a [u8], (&'a [u8], HeaderTags<'a>, Option>), SipParseError<'a>> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/accept.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 56 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 56 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/accept_encoding.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 18 | fn take_value(input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/accept_language.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(initial_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(initial_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/alertinfo.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/extension.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 14 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/headers.rs:62:45 [INFO] [stdout] | [INFO] [stdout] 62 | assert_eq!(to_hdr.params().unwrap().get(&"tag"), Some(&Some("99sa0xk"))); [INFO] [stdout] | ^^^^^^ help: change this to: `"tag"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/authentication_info.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 29 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/authorization.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 30 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/callid.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 15 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/contact.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | fn make_star_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 47 | fn make_star_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/contact.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 61 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/cseq.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/date.rs:65:33 [INFO] [stdout] | [INFO] [stdout] 65 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 65 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/from.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 13 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/retry_after.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 15 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/user_agent.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 22 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/mime_version.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 13 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/timestamp.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/via.rs:35:33 [INFO] [stdout] | [INFO] [stdout] 35 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 35 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/warning.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 22 | fn take_value(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/digit_header.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/token_header.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/headers/parsers/utf8_trim_header.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue, SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 7 | pub fn take(source_input: &[u8]) -> nom::IResult<&[u8], HeaderValue<'_>, SipParseError<'_>> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/headers.rs:76:47 [INFO] [stdout] | [INFO] [stdout] 76 | assert_eq!(from_hdr.params().unwrap().get(&"tag"), Some(&Some("323"))); [INFO] [stdout] | ^^^^^^ help: change this to: `"tag"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/headers/auth_params.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 38 | source_input: &'a [u8], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 39 | ) -> nom::IResult<&[u8], (&[u8] /*vstr*/, HeaderTags<'a>), SipParseError> { [INFO] [stdout] | ^^^^^ ^^^^^ -- ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 39 | ) -> nom::IResult<&'a [u8], (&'a [u8] /*vstr*/, HeaderTags<'a>), SipParseError<'a>> { [INFO] [stdout] | ++ ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/headers.rs:123:39 [INFO] [stdout] | [INFO] [stdout] 123 | via_hdr.params().unwrap().get(&"branch"), [INFO] [stdout] | ^^^^^^^^^ help: change this to: `"branch"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/headers.rs:445:47 [INFO] [stdout] | [INFO] [stdout] 445 | retry_after_hdr.params().unwrap().get(&"duration"), [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `"duration"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.48s [INFO] running `Command { std: "docker" "inspect" "f81aa2efdcff2c5b8d350515ba1ae6b098db5abbe664088aa80c5cf589ae099d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f81aa2efdcff2c5b8d350515ba1ae6b098db5abbe664088aa80c5cf589ae099d", kill_on_drop: false }` [INFO] [stdout] f81aa2efdcff2c5b8d350515ba1ae6b098db5abbe664088aa80c5cf589ae099d