[INFO] crate vk_generator 0.3.2 is already in cache [INFO] extracting crate vk_generator 0.3.2 into work/ex/clippy-test-run/sources/stable/reg/vk_generator/0.3.2 [INFO] extracting crate vk_generator 0.3.2 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/vk_generator/0.3.2 [INFO] validating manifest of vk_generator-0.3.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 vk_generator-0.3.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 vk_generator-0.3.2 [INFO] finished frobbing vk_generator-0.3.2 [INFO] frobbed toml for vk_generator-0.3.2 written to work/ex/clippy-test-run/sources/stable/reg/vk_generator/0.3.2/Cargo.toml [INFO] started frobbing vk_generator-0.3.2 [INFO] finished frobbing vk_generator-0.3.2 [INFO] frobbed toml for vk_generator-0.3.2 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/vk_generator/0.3.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 vk_generator-0.3.2 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-4/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/vk_generator/0.3.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] 729c3e167c26cf2d2fa1826a0269cbb058a4e5b82dcee64452cb43622fc2fd19 [INFO] running `"docker" "start" "-a" "729c3e167c26cf2d2fa1826a0269cbb058a4e5b82dcee64452cb43622fc2fd19"` [INFO] [stderr] Compiling vk_generator v0.3.2 (/opt/crater/workdir) [INFO] [stderr] Checking boolinator v0.1.0 [INFO] [stderr] Checking vk_api v1.0.69 [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/crawler.rs:544:13 [INFO] [stderr] | [INFO] [stderr] 544 | attributes: attributes [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `attributes` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/crawler.rs:550:13 [INFO] [stderr] | [INFO] [stderr] 550 | chars: chars, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `chars` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/crawler.rs:551:13 [INFO] [stderr] | [INFO] [stderr] 551 | tags: tags [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `tags` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/mod.rs:404:13 [INFO] [stderr] | [INFO] [stderr] 404 | optional: optional [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `optional` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/mod.rs:453:13 [INFO] [stderr] | [INFO] [stderr] 453 | value: value [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/mod.rs:460:13 [INFO] [stderr] | [INFO] [stderr] 460 | bitpos: bitpos [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `bitpos` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/mod.rs:733:13 [INFO] [stderr] | [INFO] [stderr] 733 | version: version, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `version` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/generator/mod.rs:216:13 [INFO] [stderr] | [INFO] [stderr] 216 | registry: registry, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `registry` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/generator/mod.rs:217:13 [INFO] [stderr] | [INFO] [stderr] 217 | config: config, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `config` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/crawler.rs:544:13 [INFO] [stderr] | [INFO] [stderr] 544 | attributes: attributes [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `attributes` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/crawler.rs:550:13 [INFO] [stderr] | [INFO] [stderr] 550 | chars: chars, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `chars` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/crawler.rs:551:13 [INFO] [stderr] | [INFO] [stderr] 551 | tags: tags [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `tags` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/mod.rs:404:13 [INFO] [stderr] | [INFO] [stderr] 404 | optional: optional [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `optional` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/mod.rs:453:13 [INFO] [stderr] | [INFO] [stderr] 453 | value: value [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/mod.rs:460:13 [INFO] [stderr] | [INFO] [stderr] 460 | bitpos: bitpos [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `bitpos` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/registry/mod.rs:733:13 [INFO] [stderr] | [INFO] [stderr] 733 | version: version, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `version` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/generator/mod.rs:216:13 [INFO] [stderr] | [INFO] [stderr] 216 | registry: registry, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `registry` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/generator/mod.rs:217:13 [INFO] [stderr] | [INFO] [stderr] 217 | config: config, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `config` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/registry/crawler.rs:566:27 [INFO] [stderr] | [INFO] [stderr] 566 | const BASE_VALUE: isize = 1000000000; [INFO] [stderr] | ^^^^^^^^^^ help: consider: `1_000_000_000` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: immediately dereferencing a reference [INFO] [stderr] --> src/generator/mod.rs:613:15 [INFO] [stderr] | [INFO] [stderr] 613 | match *$el { [INFO] [stderr] | ^^^^ help: try this: `p.typ` [INFO] [stderr] ... [INFO] [stderr] 1210 | gen_func_param!(write, &p.typ); [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::deref_addrof)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof [INFO] [stderr] [INFO] [stderr] warning: immediately dereferencing a reference [INFO] [stderr] --> src/generator/mod.rs:613:15 [INFO] [stderr] | [INFO] [stderr] 613 | match *$el { [INFO] [stderr] | ^^^^ help: try this: `c.ret` [INFO] [stderr] ... [INFO] [stderr] 1214 | gen_func_param!(write, &c.ret); [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof [INFO] [stderr] [INFO] [stderr] warning: immediately dereferencing a reference [INFO] [stderr] --> src/generator/mod.rs:613:15 [INFO] [stderr] | [INFO] [stderr] 613 | match *$el { [INFO] [stderr] | ^^^^ help: try this: `p.typ` [INFO] [stderr] ... [INFO] [stderr] 1270 | gen_func_param!(write, &p.typ); [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof [INFO] [stderr] [INFO] [stderr] warning: immediately dereferencing a reference [INFO] [stderr] --> src/generator/mod.rs:613:15 [INFO] [stderr] | [INFO] [stderr] 613 | match *$el { [INFO] [stderr] | ^^^^ help: try this: `c.ret` [INFO] [stderr] ... [INFO] [stderr] 1274 | gen_func_param!(write, &c.ret); [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/registry/crawler.rs:566:27 [INFO] [stderr] | [INFO] [stderr] 566 | const BASE_VALUE: isize = 1000000000; [INFO] [stderr] | ^^^^^^^^^^ help: consider: `1_000_000_000` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: immediately dereferencing a reference [INFO] [stderr] --> src/generator/mod.rs:613:15 [INFO] [stderr] | [INFO] [stderr] 613 | match *$el { [INFO] [stderr] | ^^^^ help: try this: `p.typ` [INFO] [stderr] ... [INFO] [stderr] 1210 | gen_func_param!(write, &p.typ); [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::deref_addrof)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof [INFO] [stderr] [INFO] [stderr] warning: immediately dereferencing a reference [INFO] [stderr] --> src/generator/mod.rs:613:15 [INFO] [stderr] | [INFO] [stderr] 613 | match *$el { [INFO] [stderr] | ^^^^ help: try this: `c.ret` [INFO] [stderr] ... [INFO] [stderr] 1214 | gen_func_param!(write, &c.ret); [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof [INFO] [stderr] [INFO] [stderr] warning: immediately dereferencing a reference [INFO] [stderr] --> src/generator/mod.rs:613:15 [INFO] [stderr] | [INFO] [stderr] 613 | match *$el { [INFO] [stderr] | ^^^^ help: try this: `p.typ` [INFO] [stderr] ... [INFO] [stderr] 1270 | gen_func_param!(write, &p.typ); [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof [INFO] [stderr] [INFO] [stderr] warning: immediately dereferencing a reference [INFO] [stderr] --> src/generator/mod.rs:613:15 [INFO] [stderr] | [INFO] [stderr] 613 | match *$el { [INFO] [stderr] | ^^^^ help: try this: `c.ret` [INFO] [stderr] ... [INFO] [stderr] 1274 | gen_func_param!(write, &c.ret); [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 84 [INFO] [stderr] --> src/registry/crawler.rs:11:1 [INFO] [stderr] | [INFO] [stderr] 11 | / pub fn crawl(xml_events: Events, registry: &mut VkRegistry) { [INFO] [stderr] 12 | | use self::XmlElement::*; [INFO] [stderr] 13 | | [INFO] [stderr] 14 | | // Everything that we're going to put in the registry get stored in temporary buffers before it's | [INFO] [stderr] ... | [INFO] [stderr] 433 | | registry.push_extn(extn_buffer).ok(); [INFO] [stderr] 434 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 84 [INFO] [stderr] --> src/registry/crawler.rs:11:1 [INFO] [stderr] | [INFO] [stderr] 11 | / pub fn crawl(xml_events: Events, registry: &mut VkRegistry) { [INFO] [stderr] 12 | | use self::XmlElement::*; [INFO] [stderr] 13 | | [INFO] [stderr] 14 | | // Everything that we're going to put in the registry get stored in temporary buffers before it's | [INFO] [stderr] ... | [INFO] [stderr] 433 | | registry.push_extn(extn_buffer).ok(); [INFO] [stderr] 434 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/registry/crawler.rs:444:31 [INFO] [stderr] | [INFO] [stderr] 444 | fn find_attribute<'v>(source: &'v Vec, query: &str) -> Option<&'v str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[OwnedAttribute]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: this .into_iter() call is equivalent to .iter() and will not move the Vec [INFO] [stderr] --> src/registry/crawler.rs:445:12 [INFO] [stderr] | [INFO] [stderr] 445 | source.into_iter().skip_while(|attr| &attr.name.local_name != query).next().map(|res| &*res.value) [INFO] [stderr] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::into_iter_on_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stderr] [INFO] [stderr] warning: needlessly taken reference of left operand [INFO] [stderr] --> src/registry/crawler.rs:445:42 [INFO] [stderr] | [INFO] [stderr] 445 | source.into_iter().skip_while(|attr| &attr.name.local_name != query).next().map(|res| &*res.value) [INFO] [stderr] | ---------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: use the left value directly: `attr.name.local_name` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::op_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/registry/crawler.rs:460:26 [INFO] [stderr] | [INFO] [stderr] 460 | fn get_tags(vk_elements: &Vec) -> (*const str, Option<*const str>) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: change this to: `&[XmlElement]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/registry/mod.rs:170:23 [INFO] [stderr] | [INFO] [stderr] 170 | let ptr = self.string_buffer.as_ptr().offset((self.string_buffer.len() - string.len()) as isize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.string_buffer.as_ptr().add((self.string_buffer.len() - string.len()))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_offset_with_cast)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:615:32 [INFO] [stderr] | [INFO] [stderr] 615 | requires: requires.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:843:30 [INFO] [stderr] | [INFO] [stderr] 843 | profile: profile.unwrap_or(null_str()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:850:30 [INFO] [stderr] | [INFO] [stderr] 850 | profile: profile.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:858:30 [INFO] [stderr] | [INFO] [stderr] 858 | profile: profile.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:865:30 [INFO] [stderr] | [INFO] [stderr] 865 | profile: profile.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/registry/crawler.rs:444:31 [INFO] [stderr] | [INFO] [stderr] 444 | fn find_attribute<'v>(source: &'v Vec, query: &str) -> Option<&'v str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[OwnedAttribute]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:871:30 [INFO] [stderr] | [INFO] [stderr] 871 | extends: extends.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] warning: this .into_iter() call is equivalent to .iter() and will not move the Vec [INFO] [stderr] --> src/registry/crawler.rs:445:12 [INFO] [stderr] | [INFO] [stderr] 445 | source.into_iter().skip_while(|attr| &attr.name.local_name != query).next().map(|res| &*res.value) [INFO] [stderr] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::into_iter_on_ref)] on by default [INFO] [stderr] [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:872:30 [INFO] [stderr] | [INFO] [stderr] 872 | profile: profile.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: needlessly taken reference of left operand [INFO] [stderr] --> src/registry/crawler.rs:445:42 [INFO] [stderr] | [INFO] [stderr] 445 | source.into_iter().skip_while(|attr| &attr.name.local_name != query).next().map(|res| &*res.value) [INFO] [stderr] | ---------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: use the left value directly: `attr.name.local_name` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::op_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/registry/crawler.rs:460:26 [INFO] [stderr] | [INFO] [stderr] 460 | fn get_tags(vk_elements: &Vec) -> (*const str, Option<*const str>) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: change this to: `&[XmlElement]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/generator/mod.rs:270:24 [INFO] [stderr] | [INFO] [stderr] 270 | match *self.types.get(extends).unwrap() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&self.types[extends]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::get_unwrap)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/registry/mod.rs:170:23 [INFO] [stderr] | [INFO] [stderr] 170 | let ptr = self.string_buffer.as_ptr().offset((self.string_buffer.len() - string.len()) as isize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.string_buffer.as_ptr().add((self.string_buffer.len() - string.len()))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_offset_with_cast)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/generator/mod.rs:605:19 [INFO] [stderr] | [INFO] [stderr] 605 | let ptr = self.string_buffer.as_ptr().offset(prepushlen as isize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.string_buffer.as_ptr().add(prepushlen)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 68 [INFO] [stderr] --> src/generator/mod.rs:654:5 [INFO] [stderr] | [INFO] [stderr] 654 | / pub fn new(processed: &'a GenPreproc) -> Self { [INFO] [stderr] 655 | | let mut gen_types = GenTypes { [INFO] [stderr] 656 | | config: &processed.config, [INFO] [stderr] 657 | | structs: String::with_capacity(2usize.pow(17)), [INFO] [stderr] ... | [INFO] [stderr] 1113 | | gen_types [INFO] [stderr] 1114 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:615:32 [INFO] [stderr] | [INFO] [stderr] 615 | requires: requires.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:843:30 [INFO] [stderr] | [INFO] [stderr] 843 | profile: profile.unwrap_or(null_str()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:850:30 [INFO] [stderr] | [INFO] [stderr] 850 | profile: profile.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:858:30 [INFO] [stderr] | [INFO] [stderr] 858 | profile: profile.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:865:30 [INFO] [stderr] | [INFO] [stderr] 865 | profile: profile.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:871:30 [INFO] [stderr] | [INFO] [stderr] 871 | extends: extends.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/registry/mod.rs:872:30 [INFO] [stderr] | [INFO] [stderr] 872 | profile: profile.unwrap_or(null_str()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(null_str)` [INFO] [stderr] | [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: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/generator/mod.rs:270:24 [INFO] [stderr] | [INFO] [stderr] 270 | match *self.types.get(extends).unwrap() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&self.types[extends]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::get_unwrap)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/generator/mod.rs:605:19 [INFO] [stderr] | [INFO] [stderr] 605 | let ptr = self.string_buffer.as_ptr().offset(prepushlen as isize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.string_buffer.as_ptr().add(prepushlen)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 68 [INFO] [stderr] --> src/generator/mod.rs:654:5 [INFO] [stderr] | [INFO] [stderr] 654 | / pub fn new(processed: &'a GenPreproc) -> Self { [INFO] [stderr] 655 | | let mut gen_types = GenTypes { [INFO] [stderr] 656 | | config: &processed.config, [INFO] [stderr] 657 | | structs: String::with_capacity(2usize.pow(17)), [INFO] [stderr] ... | [INFO] [stderr] 1113 | | gen_types [INFO] [stderr] 1114 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/generator/mod.rs:670:52 [INFO] [stderr] | [INFO] [stderr] 670 | for t in processed.type_ord.iter().map(|k| processed.types.get(k).unwrap()) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&processed.types[k]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/generator/mod.rs:697:33 [INFO] [stderr] | [INFO] [stderr] 697 | / match wrap_with_option { [INFO] [stderr] 698 | | true => writeln!(structs, "{}: Option<{}>,", &*f.field_name, &*ident), [INFO] [stderr] 699 | | false => writeln!(structs, "{}: {},", &*f.field_name, &*ident) [INFO] [stderr] 700 | | } [INFO] [stderr] | |_________________________________^ help: consider using an if/else expression: `if wrap_with_option { writeln!(structs, "{}: Option<{}>,", &*f.field_name, &*ident) } else { writeln!(structs, "{}: {},", &*f.field_name, &*ident) }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/generator/mod.rs:762:33 [INFO] [stderr] | [INFO] [stderr] 762 | / match f.optional { [INFO] [stderr] 763 | | true => writeln!(structs, ".field(\"{0}\", &(self.{0}.map(|f| f as *const ())))", n), [INFO] [stderr] 764 | | false => writeln!(structs, ".field(\"{0}\", &(self.{0} as *const ()))", n) [INFO] [stderr] 765 | | }.unwrap() [INFO] [stderr] | |_________________________________^ help: consider using an if/else expression: `if f.optional { writeln!(structs, ".field(\"{0}\", &(self.{0}.map(|f| f as *const ())))", n) } else { writeln!(structs, ".field(\"{0}\", &(self.{0} as *const ()))", n) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/generator/mod.rs:670:52 [INFO] [stderr] | [INFO] [stderr] 670 | for t in processed.type_ord.iter().map(|k| processed.types.get(k).unwrap()) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&processed.types[k]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/generator/mod.rs:697:33 [INFO] [stderr] | [INFO] [stderr] 697 | / match wrap_with_option { [INFO] [stderr] 698 | | true => writeln!(structs, "{}: Option<{}>,", &*f.field_name, &*ident), [INFO] [stderr] 699 | | false => writeln!(structs, "{}: {},", &*f.field_name, &*ident) [INFO] [stderr] 700 | | } [INFO] [stderr] | |_________________________________^ help: consider using an if/else expression: `if wrap_with_option { writeln!(structs, "{}: Option<{}>,", &*f.field_name, &*ident) } else { writeln!(structs, "{}: {},", &*f.field_name, &*ident) }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/generator/mod.rs:762:33 [INFO] [stderr] | [INFO] [stderr] 762 | / match f.optional { [INFO] [stderr] 763 | | true => writeln!(structs, ".field(\"{0}\", &(self.{0}.map(|f| f as *const ())))", n), [INFO] [stderr] 764 | | false => writeln!(structs, ".field(\"{0}\", &(self.{0} as *const ()))", n) [INFO] [stderr] 765 | | }.unwrap() [INFO] [stderr] | |_________________________________^ help: consider using an if/else expression: `if f.optional { writeln!(structs, ".field(\"{0}\", &(self.{0}.map(|f| f as *const ())))", n) } else { writeln!(structs, ".field(\"{0}\", &(self.{0} as *const ()))", n) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/generator/mod.rs:906:48 [INFO] [stderr] | [INFO] [stderr] 906 | let flags_name = unsafe{ &*processed.types.get("VkFlags").unwrap().name().unwrap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&processed.types["VkFlags"]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: You are using an explicit closure for cloning elements [INFO] [stderr] --> src/generator/mod.rs:960:35 [INFO] [stderr] | [INFO] [stderr] 960 | let mut typ = processed.const_types.get(name).map(|t| *t).unwrap_or(Unknown); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider calling the dedicated `cloned` method: `processed.const_types.get(name).cloned()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::map_clone)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/generator/mod.rs:906:48 [INFO] [stderr] | [INFO] [stderr] 906 | let flags_name = unsafe{ &*processed.types.get("VkFlags").unwrap().name().unwrap() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&processed.types["VkFlags"]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: you should use the `starts_with` method [INFO] [stderr] --> src/generator/mod.rs:1015:32 [INFO] [stderr] | [INFO] [stderr] 1015 | if '~' == num_expr.chars().next().unwrap() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `num_expr.starts_with('~')` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::chars_next_cmp)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stderr] [INFO] [stderr] warning: You are using an explicit closure for cloning elements [INFO] [stderr] --> src/generator/mod.rs:960:35 [INFO] [stderr] | [INFO] [stderr] 960 | let mut typ = processed.const_types.get(name).map(|t| *t).unwrap_or(Unknown); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider calling the dedicated `cloned` method: `processed.const_types.get(name).cloned()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::map_clone)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stderr] [INFO] [stderr] warning: you should use the `starts_with` method [INFO] [stderr] --> src/generator/mod.rs:1015:32 [INFO] [stderr] | [INFO] [stderr] 1015 | if '~' == num_expr.chars().next().unwrap() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `num_expr.starts_with('~')` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::chars_next_cmp)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::str` [INFO] [stderr] --> tests/lib.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::str; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.66s [INFO] running `"docker" "inspect" "729c3e167c26cf2d2fa1826a0269cbb058a4e5b82dcee64452cb43622fc2fd19"` [INFO] running `"docker" "rm" "-f" "729c3e167c26cf2d2fa1826a0269cbb058a4e5b82dcee64452cb43622fc2fd19"` [INFO] [stdout] 729c3e167c26cf2d2fa1826a0269cbb058a4e5b82dcee64452cb43622fc2fd19