[INFO] crate mime-sniffer 0.1.2 is already in cache [INFO] extracting crate mime-sniffer 0.1.2 into work/ex/clippy-test-run/sources/stable/reg/mime-sniffer/0.1.2 [INFO] extracting crate mime-sniffer 0.1.2 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/mime-sniffer/0.1.2 [INFO] validating manifest of mime-sniffer-0.1.2 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of mime-sniffer-0.1.2 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing mime-sniffer-0.1.2 [INFO] finished frobbing mime-sniffer-0.1.2 [INFO] frobbed toml for mime-sniffer-0.1.2 written to work/ex/clippy-test-run/sources/stable/reg/mime-sniffer/0.1.2/Cargo.toml [INFO] started frobbing mime-sniffer-0.1.2 [INFO] finished frobbing mime-sniffer-0.1.2 [INFO] frobbed toml for mime-sniffer-0.1.2 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/mime-sniffer/0.1.2/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting mime-sniffer-0.1.2 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-6/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/mime-sniffer/0.1.2:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] dda42221142efa94c156bbd9ccc4d3ad33544c55bf5bb1dc0d1a59d425c26570 [INFO] running `"docker" "start" "-a" "dda42221142efa94c156bbd9ccc4d3ad33544c55bf5bb1dc0d1a59d425c26570"` [INFO] [stderr] Checking mime-sniffer v0.1.2 (/opt/crater/workdir) [INFO] [stderr] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes [INFO] [stderr] --> src/magic.rs:289:1 [INFO] [stderr] | [INFO] [stderr] 289 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::deprecated_cfg_attr)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stderr] [INFO] [stderr] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes [INFO] [stderr] --> src/magic.rs:353:1 [INFO] [stderr] | [INFO] [stderr] 353 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stderr] [INFO] [stderr] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes [INFO] [stderr] --> src/magic.rs:289:1 [INFO] [stderr] | [INFO] [stderr] 289 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::deprecated_cfg_attr)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stderr] [INFO] [stderr] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes [INFO] [stderr] --> src/magic.rs:353:1 [INFO] [stderr] | [INFO] [stderr] 353 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:49:23 [INFO] [stderr] | [INFO] [stderr] 49 | const MAGIC_NUMBERS: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:111:29 [INFO] [stderr] | [INFO] [stderr] 111 | const EXTRA_MAGIC_NUMBERS: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:263:28 [INFO] [stderr] | [INFO] [stderr] 263 | const UNKNOWN_MIME_TYPES: &'static [&'static str] = [INFO] [stderr] | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:263:38 [INFO] [stderr] | [INFO] [stderr] 263 | const UNKNOWN_MIME_TYPES: &'static [&'static str] = [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:290:24 [INFO] [stderr] | [INFO] [stderr] 290 | const SNIFFABLE_TAGS: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:342:26 [INFO] [stderr] | [INFO] [stderr] 342 | const BYTE_ORDER_MARKS: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:354:27 [INFO] [stderr] | [INFO] [stderr] 354 | const BYTE_LOOKS_BINARY: &'static [u8] = &[ [INFO] [stderr] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:404:17 [INFO] [stderr] | [INFO] [stderr] 404 | const XML_TAG: &'static [u8] = b" src/magic.rs:405:21 [INFO] [stderr] | [INFO] [stderr] 405 | const DOCTYPE_TAG: &'static [u8] = b" src/magic.rs:407:19 [INFO] [stderr] | [INFO] [stderr] 407 | const MAGIC_XML: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:466:32 [INFO] [stderr] | [INFO] [stderr] 466 | const OFFICE_EXTENSION_TYPES: &'static [(OfficeDocType, &'static str)] = &[ [INFO] [stderr] | -^^^^^^^-------------------------------- help: consider removing `'static`: `&[(OfficeDocType, &'static str)]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:466:58 [INFO] [stderr] | [INFO] [stderr] 466 | const OFFICE_EXTENSION_TYPES: &'static [(OfficeDocType, &'static str)] = &[ [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:478:30 [INFO] [stderr] | [INFO] [stderr] 478 | const OFFICE_MAGIC_NUMBERS: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/api.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | const SNIFFABLE_TYPES: &'static [&'static str] = &[ [INFO] [stderr] | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/api.rs:54:35 [INFO] [stderr] | [INFO] [stderr] 54 | const SNIFFABLE_TYPES: &'static [&'static str] = &[ [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead [INFO] [stderr] --> src/magic.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(deprecated)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ascii::AsciiExt` [INFO] [stderr] --> src/magic.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/magic.rs:248:1 [INFO] [stderr] | [INFO] [stderr] 248 | / pub fn sniff_mime_type_from_local_data<'a>(buf: &'a [u8]) -> Option<&str> { [INFO] [stderr] 249 | | // First check the extra table. [INFO] [stderr] 250 | | EXTRA_MAGIC_NUMBERS [INFO] [stderr] 251 | | .iter() [INFO] [stderr] ... | [INFO] [stderr] 260 | | }) [INFO] [stderr] 261 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] warning: use of `or` followed by a function call [INFO] [stderr] --> src/magic.rs:449:26 [INFO] [stderr] | [INFO] [stderr] 449 | .or(Some(type_hint)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try this: `or_else(|| Some(type_hint))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:49:23 [INFO] [stderr] | [INFO] [stderr] 49 | const MAGIC_NUMBERS: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:111:29 [INFO] [stderr] | [INFO] [stderr] 111 | const EXTRA_MAGIC_NUMBERS: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:263:28 [INFO] [stderr] | [INFO] [stderr] 263 | const UNKNOWN_MIME_TYPES: &'static [&'static str] = [INFO] [stderr] | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:263:38 [INFO] [stderr] | [INFO] [stderr] 263 | const UNKNOWN_MIME_TYPES: &'static [&'static str] = [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:290:24 [INFO] [stderr] | [INFO] [stderr] 290 | const SNIFFABLE_TAGS: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:342:26 [INFO] [stderr] | [INFO] [stderr] 342 | const BYTE_ORDER_MARKS: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:354:27 [INFO] [stderr] | [INFO] [stderr] 354 | const BYTE_LOOKS_BINARY: &'static [u8] = &[ [INFO] [stderr] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:404:17 [INFO] [stderr] | [INFO] [stderr] 404 | const XML_TAG: &'static [u8] = b" src/magic.rs:405:21 [INFO] [stderr] | [INFO] [stderr] 405 | const DOCTYPE_TAG: &'static [u8] = b" src/magic.rs:407:19 [INFO] [stderr] | [INFO] [stderr] 407 | const MAGIC_XML: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:466:32 [INFO] [stderr] | [INFO] [stderr] 466 | const OFFICE_EXTENSION_TYPES: &'static [(OfficeDocType, &'static str)] = &[ [INFO] [stderr] | -^^^^^^^-------------------------------- help: consider removing `'static`: `&[(OfficeDocType, &'static str)]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:466:58 [INFO] [stderr] | [INFO] [stderr] 466 | const OFFICE_EXTENSION_TYPES: &'static [(OfficeDocType, &'static str)] = &[ [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/magic.rs:478:30 [INFO] [stderr] | [INFO] [stderr] 478 | const OFFICE_MAGIC_NUMBERS: &'static [Magic] = &[ [INFO] [stderr] | -^^^^^^^-------- help: consider removing `'static`: `&[Magic]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/api.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | const SNIFFABLE_TYPES: &'static [&'static str] = &[ [INFO] [stderr] | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/api.rs:54:35 [INFO] [stderr] | [INFO] [stderr] 54 | const SNIFFABLE_TYPES: &'static [&'static str] = &[ [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead [INFO] [stderr] --> src/magic.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(deprecated)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ascii::AsciiExt` [INFO] [stderr] --> src/magic.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/magic.rs:248:1 [INFO] [stderr] | [INFO] [stderr] 248 | / pub fn sniff_mime_type_from_local_data<'a>(buf: &'a [u8]) -> Option<&str> { [INFO] [stderr] 249 | | // First check the extra table. [INFO] [stderr] 250 | | EXTRA_MAGIC_NUMBERS [INFO] [stderr] 251 | | .iter() [INFO] [stderr] ... | [INFO] [stderr] 260 | | }) [INFO] [stderr] 261 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] warning: use of `or` followed by a function call [INFO] [stderr] --> src/magic.rs:449:26 [INFO] [stderr] | [INFO] [stderr] 449 | .or(Some(type_hint)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try this: `or_else(|| Some(type_hint))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.20s [INFO] running `"docker" "inspect" "dda42221142efa94c156bbd9ccc4d3ad33544c55bf5bb1dc0d1a59d425c26570"` [INFO] running `"docker" "rm" "-f" "dda42221142efa94c156bbd9ccc4d3ad33544c55bf5bb1dc0d1a59d425c26570"` [INFO] [stdout] dda42221142efa94c156bbd9ccc4d3ad33544c55bf5bb1dc0d1a59d425c26570