[INFO] cloning repository https://github.com/MentorEmbedded/flex_package_source [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MentorEmbedded/flex_package_source" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMentorEmbedded%2Fflex_package_source", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMentorEmbedded%2Fflex_package_source'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f07005bc7a42110640655373d67c236125581c71 [INFO] linting MentorEmbedded/flex_package_source against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMentorEmbedded%2Fflex_package_source" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 41% (5278/12842) Updating files: 42% (5394/12842) Updating files: 43% (5523/12842) Updating files: 44% (5651/12842) Updating files: 45% (5779/12842) Updating files: 46% (5908/12842) Updating files: 47% (6036/12842) Updating files: 48% (6165/12842) Updating files: 49% (6293/12842) Updating files: 50% (6421/12842) Updating files: 51% (6550/12842) Updating files: 52% (6678/12842) Updating files: 53% (6807/12842) Updating files: 54% (6935/12842) Updating files: 55% (7064/12842) Updating files: 56% (7192/12842) Updating files: 57% (7320/12842) Updating files: 58% (7449/12842) Updating files: 59% (7577/12842) Updating files: 60% (7706/12842) Updating files: 61% (7834/12842) Updating files: 62% (7963/12842) Updating files: 63% (8091/12842) Updating files: 64% (8219/12842) Updating files: 65% (8348/12842) Updating files: 66% (8476/12842) Updating files: 67% (8605/12842) Updating files: 68% (8733/12842) Updating files: 69% (8861/12842) Updating files: 70% (8990/12842) Updating files: 71% (9118/12842) Updating files: 72% (9247/12842) Updating files: 73% (9375/12842) Updating files: 74% (9504/12842) Updating files: 75% (9632/12842) Updating files: 76% (9760/12842) Updating files: 77% (9889/12842) Updating files: 78% (10017/12842) Updating files: 79% (10146/12842) Updating files: 80% (10274/12842) Updating files: 80% (10335/12842) Updating files: 81% (10403/12842) Updating files: 82% (10531/12842) Updating files: 83% (10659/12842) Updating files: 84% (10788/12842) Updating files: 85% (10916/12842) Updating files: 86% (11045/12842) Updating files: 87% (11173/12842) Updating files: 88% (11301/12842) Updating files: 89% (11430/12842) Updating files: 90% (11558/12842) Updating files: 91% (11687/12842) Updating files: 92% (11815/12842) Updating files: 93% (11944/12842) Updating files: 94% (12072/12842) Updating files: 95% (12200/12842) Updating files: 96% (12329/12842) Updating files: 97% (12457/12842) Updating files: 98% (12586/12842) Updating files: 99% (12714/12842) Updating files: 100% (12842/12842) Updating files: 100% (12842/12842), done. [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/MentorEmbedded/flex_package_source [INFO] finished tweaking git repo https://github.com/MentorEmbedded/flex_package_source [INFO] tweaked toml for git repo https://github.com/MentorEmbedded/flex_package_source written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MentorEmbedded/flex_package_source 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] crate git repo https://github.com/MentorEmbedded/flex_package_source already has a lockfile, it will not be regenerated [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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded string_cache_codegen v0.5.2 [INFO] [stderr] Downloaded const-cstr v0.3.0 [INFO] [stderr] Downloaded markup5ever v0.10.1 [INFO] [stderr] Downloaded string_cache v0.8.4 [INFO] [stderr] Downloaded yeslogic-fontconfig-sys v2.11.2 [INFO] [stderr] Downloaded xml5ever v0.16.2 [INFO] [stderr] Downloaded dtoa-short v0.3.3 [INFO] [stderr] Downloaded predicates-tree v1.0.5 [INFO] [stderr] Downloaded pangocairo-sys v0.14.0 [INFO] [stderr] Downloaded gdk-pixbuf v0.14.0 [INFO] [stderr] Downloaded termtree v0.2.4 [INFO] [stderr] Downloaded gdk-pixbuf-sys v0.14.0 [INFO] [stderr] Downloaded cairo-sys-rs v0.14.9 [INFO] [stderr] Downloaded assert_cmd v2.0.4 [INFO] [stderr] Downloaded data-url v0.1.1 [INFO] [stderr] Downloaded pango v0.14.8 [INFO] [stderr] Downloaded gio-sys v0.14.0 [INFO] [stderr] Downloaded lopdf v0.26.0 [INFO] [stderr] Downloaded simba v0.6.0 [INFO] [stderr] Downloaded cssparser v0.28.1 [INFO] [stderr] Downloaded selectors v0.23.0 [INFO] [stderr] Downloaded gio v0.14.8 [INFO] [stderr] Downloaded pom v3.2.0 [INFO] [stderr] Downloaded glib v0.14.8 [INFO] [stderr] Downloaded proptest v1.0.0 [INFO] [stderr] Downloaded syn v1.0.93 [INFO] [stderr] Downloaded cfg-expr v0.10.2 [INFO] [stderr] Downloaded system-deps v6.0.2 [INFO] [stderr] Downloaded pango-sys v0.14.0 [INFO] [stderr] Downloaded cfg-expr v0.8.1 [INFO] [stderr] Downloaded predicates v2.1.1 [INFO] [stderr] Downloaded cssparser-macros v0.6.0 [INFO] [stderr] Downloaded nalgebra v0.29.0 [INFO] [stderr] Downloaded locale_config v0.3.0 [INFO] [stderr] Downloaded cairo-rs v0.14.9 [INFO] [stderr] Downloaded glib-macros v0.14.1 [INFO] [stderr] Downloaded rctree v0.4.0 [INFO] [stderr] Downloaded dtoa v0.4.8 [INFO] [stderr] Downloaded test-generator v0.3.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.38 [INFO] [stderr] Downloaded system-deps v3.2.0 [INFO] [stderr] Downloaded pangocairo v0.14.0 [INFO] [stderr] Downloaded predicates-core v1.0.3 [INFO] [stderr] Downloaded rgb v0.8.32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] e5949d60fb991e6e936727bb2267059c9f8b50d8111a6e2331bb17595606640e [INFO] running `Command { std: "docker" "start" "-a" "e5949d60fb991e6e936727bb2267059c9f8b50d8111a6e2331bb17595606640e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e5949d60fb991e6e936727bb2267059c9f8b50d8111a6e2331bb17595606640e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5949d60fb991e6e936727bb2267059c9f8b50d8111a6e2331bb17595606640e", kill_on_drop: false }` [INFO] [stdout] e5949d60fb991e6e936727bb2267059c9f8b50d8111a6e2331bb17595606640e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] eef94007e03cdbfa00b0570c0a8519b0450b464b2942ac9ef46fbe697bc94044 [INFO] running `Command { std: "docker" "start" "-a" "eef94007e03cdbfa00b0570c0a8519b0450b464b2942ac9ef46fbe697bc94044", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.38 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling syn v1.0.93 [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling strum v0.21.0 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling cfg-expr v0.8.1 [INFO] [stderr] Checking futures-channel v0.3.21 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling semver v1.0.9 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Checking bytemuck v1.9.1 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling rayon-core v1.9.2 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking safe_arch v0.6.0 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling cfg-expr v0.10.2 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking parking_lot_core v0.9.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rayon v1.5.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Compiling version-compare v0.1.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling gio v0.14.8 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking num-complex v0.4.1 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Checking wide v0.7.4 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking dtoa-short v0.3.3 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking miniz_oxide v0.5.1 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Checking servo_arc v0.1.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking predicates-core v1.0.3 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking plotters-backend v0.3.2 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking plotters-svg v0.3.1 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking locale_config v0.3.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Checking rgb v0.8.32 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v2.11.2 [INFO] [stderr] Checking data-url v0.1.1 [INFO] [stderr] Compiling selectors v0.23.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking termtree v0.2.4 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking rctree v0.4.0 [INFO] [stderr] Checking deflate v1.0.0 [INFO] [stderr] Compiling markup5ever v0.10.1 [INFO] [stderr] Checking predicates-tree v1.0.5 [INFO] [stderr] Checking predicates v2.1.1 [INFO] [stderr] Checking bit-set v0.5.2 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Checking criterion-plot v0.4.4 [INFO] [stderr] Checking plotters v0.3.1 [INFO] [stderr] Checking flate2 v1.0.23 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking const-cstr v0.3.0 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Checking pom v3.2.0 [INFO] [stderr] Checking png v0.17.5 [INFO] [stderr] Checking simba v0.6.0 [INFO] [stderr] Checking proptest v1.0.0 [INFO] [stderr] Compiling test-generator v0.3.0 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling phf_macros v0.8.0 [INFO] [stderr] Compiling cssparser v0.28.1 [INFO] [stderr] Compiling cssparser-macros v0.6.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Checking nalgebra v0.29.0 [INFO] [stderr] Checking lopdf v0.26.0 [INFO] [stderr] Checking string_cache v0.8.4 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking serde_json v1.0.81 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking assert_cmd v2.0.4 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking xml5ever v0.16.2 [INFO] [stderr] Checking criterion v0.3.5 [INFO] [stderr] Compiling system-deps v3.2.0 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling system-deps v6.0.2 [INFO] [stderr] Compiling glib-macros v0.14.1 [INFO] [stderr] Compiling librsvg v2.52.10 (/opt/rustwide/workdir) [INFO] [stderr] Compiling glib-sys v0.14.0 [INFO] [stderr] Compiling gobject-sys v0.14.0 [INFO] [stderr] Compiling gio-sys v0.14.0 [INFO] [stderr] Compiling cairo-sys-rs v0.14.9 [INFO] [stderr] Compiling pango-sys v0.14.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.14.0 [INFO] [stderr] Compiling pangocairo-sys v0.14.0 [INFO] [stderr] Checking glib v0.14.8 [INFO] [stderr] Checking pango v0.14.8 [INFO] [stderr] Checking cairo-rs v0.14.9 [INFO] [stderr] Checking pangocairo v0.14.0 [INFO] [stderr] Checking gdk-pixbuf v0.14.0 [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> src/node.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | crate::element::Element::$element_type(_) [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] = note: `#[warn(clippy::crate_in_macro_def)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> src/node.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | crate::element::Element::$element_type(ref e) => &*e, [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> src/property_macros.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | impl crate::parsers::Parse for $name { [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsvg_log` [INFO] [stdout] --> src/c_api/handle.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | rsvg_log, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:145:46 [INFO] [stdout] | [INFO] [stdout] 145 | #![warn(nonstandard_style, rust_2018_idioms, unused)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `ignore` [INFO] [stdout] --> src/element.rs:810:7 [INFO] [stdout] | [INFO] [stdout] 810 | #[cfg(ignore)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ignore)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(ignore)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/element.rs:312:1 [INFO] [stdout] | [INFO] [stdout] 312 | / /// the size of a pointer. [INFO] [stdout] 313 | | [INFO] [stdout] | |_^ [INFO] [stdout] 314 | pub enum Element { [INFO] [stdout] | ---------------- the comment documents this enum [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] [INFO] [stdout] [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> src/node.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | crate::element::Element::$element_type(_) [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] = note: `#[warn(clippy::crate_in_macro_def)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> src/node.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | crate::element::Element::$element_type(ref e) => &*e, [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> src/property_macros.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | impl crate::parsers::Parse for $name { [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsvg_log` [INFO] [stdout] --> src/c_api/handle.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | rsvg_log, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:145:46 [INFO] [stdout] | [INFO] [stdout] 145 | #![warn(nonstandard_style, rust_2018_idioms, unused)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `ignore` [INFO] [stdout] --> src/element.rs:810:7 [INFO] [stdout] | [INFO] [stdout] 810 | #[cfg(ignore)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ignore)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(ignore)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/element.rs:312:1 [INFO] [stdout] | [INFO] [stdout] 312 | / /// the size of a pointer. [INFO] [stdout] 313 | | [INFO] [stdout] | |_^ [INFO] [stdout] 314 | pub enum Element { [INFO] [stdout] | ---------------- the comment documents this enum [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] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/surface_utils/mod.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | / /// if pixel = 0x00020202, pixel' = 0x02...... [INFO] [stdout] 223 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn to_luminance_mask(&self) -> Self { [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] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 223 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/surface_utils/mod.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | / /// if pixel = 0x00020202, pixel' = 0x02...... [INFO] [stdout] 223 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn to_luminance_mask(&self) -> Self { [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] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 223 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CAIRO_MAGIC_NUMBER_FIXED` is never used [INFO] [stdout] --> src/float_eq_cairo.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const CAIRO_MAGIC_NUMBER_FIXED: f64 = (1u64 << (52 - CAIRO_FIXED_FRAC_BITS)) as f64 * 1.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cairo_magic_double` is never used [INFO] [stdout] --> src/float_eq_cairo.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn cairo_magic_double(d: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cairo_fixed_from_double` is never used [INFO] [stdout] --> src/float_eq_cairo.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn cairo_fixed_from_double(d: f64) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FixedEqCairo` is never used [INFO] [stdout] --> src/float_eq_cairo.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait FixedEqCairo { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/css.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | Selector(selectors::parser::SelectorParseErrorKind<'i>), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 157 - Selector(selectors::parser::SelectorParseErrorKind<'i>), [INFO] [stdout] 157 + Selector(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transform` is never constructed [INFO] [stdout] --> src/property_defs.rs:1061:5 [INFO] [stdout] | [INFO] [stdout] 1061 | Transform, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `make_property` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | //! include raster image data, encoded as base-64, directly in an SVG [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 105 | //! include raster image data, encoded as base-64, directly in an SVG [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | //! file. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 106 | //! file. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | //! example, this means that if you load an SVG with [`Loader::read_stream`] [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 111 | //! example, this means that if you load an SVG with [`Loader::read_stream`] [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | //! without providing a `base_file`, then any referenced files will not [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 112 | //! without providing a `base_file`, then any referenced files will not [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | //! be allowed (e.g. raster images to be loaded from other files will [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 113 | //! be allowed (e.g. raster images to be loaded from other files will [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | //! not work). [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 114 | //! not work). [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | //! they must have the same scheme as the base URL. For example, if [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 117 | //! they must have the same scheme as the base URL. For example, if [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | //! the base URL has a "`file`" scheme, then all URL references inside [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 118 | //! the base URL has a "`file`" scheme, then all URL references inside [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | //! the SVG must also have the "`file`" scheme, or be relative [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 119 | //! the SVG must also have the "`file`" scheme, or be relative [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | //! references which will be resolved against the base URL. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 120 | //! references which will be resolved against the base URL. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | //! are included into your binary program with GLib's resource [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 123 | //! are included into your binary program with GLib's resource [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | //! mechanism, they are allowed to be loaded (provided that the base [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 124 | //! mechanism, they are allowed to be loaded (provided that the base [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | //! URL is also a "`resource`", per the previous rule). [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 125 | //! URL is also a "`resource`", per the previous rule). [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | //! librsvg will not load `http` resources, to keep malicious SVG data [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 128 | //! librsvg will not load `http` resources, to keep malicious SVG data [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | //! from "phoning home". [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 129 | //! from "phoning home". [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | //! URL, or to one of its subdirectories. Librsvg will canonicalize [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 132 | //! URL, or to one of its subdirectories. Librsvg will canonicalize [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | //! filenames, by removing "`..`" path components and resolving symbolic [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 133 | //! filenames, by removing "`..`" path components and resolving symbolic [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | //! links, to decide whether files meet these conditions. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 134 | //! links, to decide whether files meet these conditions. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually take no `self` [INFO] [stdout] --> src/node.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn new(&self, node: &'a Node) -> CascadedValues<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] = note: `#[warn(clippy::wrong_self_convention)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/node.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | &*v, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] = note: `#[warn(clippy::borrow_deref_ref)]` on by default [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 129 - &*v, [INFO] [stdout] 129 + v, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 129 | &**v, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/node.rs:179:49 [INFO] [stdout] | [INFO] [stdout] 179 | CascadedInner::FromValues(ref v) => &*v, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 179 - CascadedInner::FromValues(ref v) => &*v, [INFO] [stdout] 179 + CascadedInner::FromValues(ref v) => v, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 179 | CascadedInner::FromValues(ref v) => &**v, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_macros.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | /// inherits from the parent element, and how the property derives its [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 34 | /// inherits from the parent element, and how the property derives its [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_macros.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | /// computed value. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 35 | /// computed value. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/accept_language.rs:138:57 [INFO] [stdout] | [INFO] [stdout] 138 | ... && decimals.chars().all(|c| c.is_digit(10))) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix [INFO] [stdout] = note: `#[warn(clippy::is_digit_ascii_radix)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/api.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | /// SVG documents could cause the XML parser to consume very large amounts of memory. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 44 | /// SVG documents could cause the XML parser to consume very large amounts of memory. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/api.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | /// `false`. You may only need this if rendering to Cairo [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 47 | /// `false`. You may only need this if rendering to Cairo [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/api.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | /// surfaces that support including image data in compressed [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 48 | /// surfaces that support including image data in compressed [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/api.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | /// formats, like PDF. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 49 | /// formats, like PDF. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary map of the identity function [INFO] [stdout] --> src/api.rs:434:98 [INFO] [stdout] | [INFO] [stdout] 434 | .get_geometry_for_layer(id, viewport, &self.user_language, self.dpi, self.is_testing) [INFO] [stdout] | __________________________________________________________________________________________________^ [INFO] [stdout] 435 | | .map(|(i, l)| (i, l)) [INFO] [stdout] | |_________________________________^ help: remove the call to `map` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity [INFO] [stdout] = note: `#[warn(clippy::map_identity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary map of the identity function [INFO] [stdout] --> src/api.rs:509:90 [INFO] [stdout] | [INFO] [stdout] 509 | .get_geometry_for_element(id, &self.user_language, self.dpi, self.is_testing) [INFO] [stdout] | __________________________________________________________________________________________^ [INFO] [stdout] 510 | | .map(|(i, l)| (i, l)) [INFO] [stdout] | |_________________________________^ help: remove the call to `map` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/bbox.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | if self.rect.as_ref().map_or(true, |r| r.is_empty()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 80 - if self.rect.as_ref().map_or(true, |r| r.is_empty()) { [INFO] [stdout] 80 + if self.rect.as_ref().is_none_or(|r| r.is_empty()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/c_api/handle.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | //! `GObjectClass`. These are coded explicitly, instead of using [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 7 | //! `GObjectClass`. These are coded explicitly, instead of using [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/c_api/handle.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | //! [`glib::subclass::prelude::InstanceStruct`] and [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 8 | //! [`glib::subclass::prelude::InstanceStruct`] and [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/c_api/handle.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | //! [`glib::subclass::prelude::ClassStruct`], as the structs need need to be kept [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 9 | //! [`glib::subclass::prelude::ClassStruct`], as the structs need need to be kept [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/c_api/handle.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | //! ABI-compatible with the traditional C API/ABI. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 10 | //! ABI-compatible with the traditional C API/ABI. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/c_api/handle.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | //! parlance) is in [`CHandle`]. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 13 | //! parlance) is in [`CHandle`]. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/c_api/handle.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 28 | use std::{f64, i32}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `i32::` 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: deref on an immutable reference [INFO] [stdout] --> src/c_api/handle.rs:761:41 [INFO] [stdout] | [INFO] [stdout] 761 | let bytes = Bytes::from(&*buffer); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 761 - let bytes = Bytes::from(&*buffer); [INFO] [stdout] 761 + let bytes = Bytes::from(buffer); [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 761 | let bytes = Bytes::from(&**buffer); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/c_api/handle.rs:934:28 [INFO] [stdout] | [INFO] [stdout] 934 | CairoRenderer::new(&*handle_ref) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 934 - CairoRenderer::new(&*handle_ref) [INFO] [stdout] 934 + CairoRenderer::new(handle_ref) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 934 | CairoRenderer::new(&**handle_ref) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/c_api/handle.rs:1312:9 [INFO] [stdout] | [INFO] [stdout] 1312 | (!buf.is_null() && count != 0) || (count == 0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: try [INFO] [stdout] | [INFO] [stdout] 1312 - (!buf.is_null() && count != 0) || (count == 0), [INFO] [stdout] 1312 + !(buf.is_null() && count != 0), [INFO] [stdout] | [INFO] [stdout] 1312 - (!buf.is_null() && count != 0) || (count == 0), [INFO] [stdout] 1312 + !buf.is_null() || count == 0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/c_api/handle.rs:1646:9 [INFO] [stdout] | [INFO] [stdout] 1646 | (!data.is_null() && data_len != 0) || (data_len == 0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1646 - (!data.is_null() && data_len != 0) || (data_len == 0), [INFO] [stdout] 1646 + !(data.is_null() && data_len != 0), [INFO] [stdout] | [INFO] [stdout] 1646 - (!data.is_null() && data_len != 0) || (data_len == 0), [INFO] [stdout] 1646 + !data.is_null() || data_len == 0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/c_api/handle.rs:1647:21 [INFO] [stdout] | [INFO] [stdout] 1647 | data_len <= std::isize::MAX as usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1647 - data_len <= std::isize::MAX as usize, [INFO] [stdout] 1647 + data_len <= isize::MAX as usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/c_api/handle.rs:1661:25 [INFO] [stdout] | [INFO] [stdout] 1661 | assert!(data_len <= std::isize::MAX as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1661 - assert!(data_len <= std::isize::MAX as usize); [INFO] [stdout] 1661 + assert!(data_len <= isize::MAX as usize); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `length::RsvgLength` [INFO] [stdout] --> src/c_api/handle.rs:1763:47 [INFO] [stdout] | [INFO] [stdout] 1763 | set_out_param(out_has_width, out_width, &w.map(Into::into)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: consider removing [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `length::RsvgLength` [INFO] [stdout] --> src/c_api/handle.rs:1764:49 [INFO] [stdout] | [INFO] [stdout] 1764 | set_out_param(out_has_height, out_height, &h.map(Into::into)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: consider removing [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/css.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | //! parse CSS rules and declarations. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 46 | //! parse CSS rules and declarations. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/css.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | //! selector lists, and for the matching engine. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 49 | //! selector lists, and for the matching engine. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/css.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | //! `ParsedProperty::Fill(...)`. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 59 | //! `ParsedProperty::Fill(...)`. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/css.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | //! `selectors` crate. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 62 | //! `selectors` crate. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/css.rs:646:49 [INFO] [stdout] | [INFO] [stdout] 646 | NonTSPseudoClass::Lang(css_lang) => self [INFO] [stdout] | _________________________________________________^ [INFO] [stdout] 647 | | .0 [INFO] [stdout] 648 | | .borrow_element() [INFO] [stdout] 649 | | .get_computed_values() [INFO] [stdout] ... | [INFO] [stdout] 652 | | .as_ref() [INFO] [stdout] 653 | | .map_or(false, |e_lang| css_lang.iter().any(|l| l.matches(e_lang))), [INFO] [stdout] | |___________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 653 - .map_or(false, |e_lang| css_lang.iter().any(|l| l.matches(e_lang))), [INFO] [stdout] 653 + .is_some_and(|e_lang| css_lang.iter().any(|l| l.matches(e_lang))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/document.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | Some(p) if p == 0 => (None, Some(&href[1..])), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] = note: `#[warn(clippy::redundant_guards)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 47 - Some(p) if p == 0 => (None, Some(&href[1..])), [INFO] [stdout] 47 + Some(0) => (None, Some(&href[1..])), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/document.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | self.0.iter().any(|n| *n == *node) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.0.contains(node)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains [INFO] [stdout] = note: `#[warn(clippy::manual_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/drawing_ctx.rs:507:53 [INFO] [stdout] | [INFO] [stdout] 507 | clip_to_rectangle(&self.cr, &*vbox); [INFO] [stdout] | ^^^^^^ help: try: `&vbox` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/css.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | Selector(selectors::parser::SelectorParseErrorKind<'i>), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` implied by `#[warn(unused)]` [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 157 - Selector(selectors::parser::SelectorParseErrorKind<'i>), [INFO] [stdout] 157 + Selector(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transform` is never constructed [INFO] [stdout] --> src/property_defs.rs:1061:5 [INFO] [stdout] | [INFO] [stdout] 1061 | Transform, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `make_property` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | //! include raster image data, encoded as base-64, directly in an SVG [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 105 | //! include raster image data, encoded as base-64, directly in an SVG [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | //! file. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 106 | //! file. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | //! example, this means that if you load an SVG with [`Loader::read_stream`] [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 111 | //! example, this means that if you load an SVG with [`Loader::read_stream`] [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | //! without providing a `base_file`, then any referenced files will not [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 112 | //! without providing a `base_file`, then any referenced files will not [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | //! be allowed (e.g. raster images to be loaded from other files will [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 113 | //! be allowed (e.g. raster images to be loaded from other files will [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | //! not work). [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 114 | //! not work). [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | //! they must have the same scheme as the base URL. For example, if [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 117 | //! they must have the same scheme as the base URL. For example, if [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | //! the base URL has a "`file`" scheme, then all URL references inside [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 118 | //! the base URL has a "`file`" scheme, then all URL references inside [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | //! the SVG must also have the "`file`" scheme, or be relative [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 119 | //! the SVG must also have the "`file`" scheme, or be relative [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | //! references which will be resolved against the base URL. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 120 | //! references which will be resolved against the base URL. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | //! are included into your binary program with GLib's resource [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 123 | //! are included into your binary program with GLib's resource [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | //! mechanism, they are allowed to be loaded (provided that the base [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 124 | //! mechanism, they are allowed to be loaded (provided that the base [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | //! URL is also a "`resource`", per the previous rule). [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 125 | //! URL is also a "`resource`", per the previous rule). [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | //! librsvg will not load `http` resources, to keep malicious SVG data [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 128 | //! librsvg will not load `http` resources, to keep malicious SVG data [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | //! from "phoning home". [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 129 | //! from "phoning home". [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | //! URL, or to one of its subdirectories. Librsvg will canonicalize [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 132 | //! URL, or to one of its subdirectories. Librsvg will canonicalize [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | //! filenames, by removing "`..`" path components and resolving symbolic [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 133 | //! filenames, by removing "`..`" path components and resolving symbolic [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | //! links, to decide whether files meet these conditions. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 134 | //! links, to decide whether files meet these conditions. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually take no `self` [INFO] [stdout] --> src/node.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn new(&self, node: &'a Node) -> CascadedValues<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] = note: `#[warn(clippy::wrong_self_convention)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/node.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | &*v, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] = note: `#[warn(clippy::borrow_deref_ref)]` on by default [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 129 - &*v, [INFO] [stdout] 129 + v, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 129 | &**v, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/node.rs:179:49 [INFO] [stdout] | [INFO] [stdout] 179 | CascadedInner::FromValues(ref v) => &*v, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 179 - CascadedInner::FromValues(ref v) => &*v, [INFO] [stdout] 179 + CascadedInner::FromValues(ref v) => v, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 179 | CascadedInner::FromValues(ref v) => &**v, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_macros.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | /// inherits from the parent element, and how the property derives its [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 34 | /// inherits from the parent element, and how the property derives its [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_macros.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | /// computed value. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 35 | /// computed value. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/accept_language.rs:138:57 [INFO] [stdout] | [INFO] [stdout] 138 | ... && decimals.chars().all(|c| c.is_digit(10))) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix [INFO] [stdout] = note: `#[warn(clippy::is_digit_ascii_radix)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/api.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | /// SVG documents could cause the XML parser to consume very large amounts of memory. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 44 | /// SVG documents could cause the XML parser to consume very large amounts of memory. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/api.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | /// `false`. You may only need this if rendering to Cairo [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 47 | /// `false`. You may only need this if rendering to Cairo [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/api.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | /// surfaces that support including image data in compressed [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 48 | /// surfaces that support including image data in compressed [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/api.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | /// formats, like PDF. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 49 | /// formats, like PDF. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary map of the identity function [INFO] [stdout] --> src/api.rs:434:98 [INFO] [stdout] | [INFO] [stdout] 434 | .get_geometry_for_layer(id, viewport, &self.user_language, self.dpi, self.is_testing) [INFO] [stdout] | __________________________________________________________________________________________________^ [INFO] [stdout] 435 | | .map(|(i, l)| (i, l)) [INFO] [stdout] | |_________________________________^ help: remove the call to `map` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity [INFO] [stdout] = note: `#[warn(clippy::map_identity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary map of the identity function [INFO] [stdout] --> src/api.rs:509:90 [INFO] [stdout] | [INFO] [stdout] 509 | .get_geometry_for_element(id, &self.user_language, self.dpi, self.is_testing) [INFO] [stdout] | __________________________________________________________________________________________^ [INFO] [stdout] 510 | | .map(|(i, l)| (i, l)) [INFO] [stdout] | |_________________________________^ help: remove the call to `map` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/filter_func.rs:632:9 [INFO] [stdout] | [INFO] [stdout] 632 | return Err(loc.new_custom_error(ValueErrorKind::parse_error("expected filter function"))); [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] 632 - return Err(loc.new_custom_error(ValueErrorKind::parse_error("expected filter function"))); [INFO] [stdout] 632 + Err(loc.new_custom_error(ValueErrorKind::parse_error("expected filter function"))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/filter_func.rs:613:18 [INFO] [stdout] | [INFO] [stdout] 613 | let fns: Vec<(&str, &dyn Fn(&mut Parser<'i, '_>) -> _)> = vec![ [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: this call to `as_ref.map(...)` does nothing [INFO] [stdout] --> src/filters/context.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | res.as_ref().map(|s| s.clone()).map_err(|e| e.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `res.clone()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref [INFO] [stdout] = note: `#[warn(clippy::useless_asref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `as_ref.map(...)` does nothing [INFO] [stdout] --> src/filters/context.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | res.as_ref().map(|s| s.clone()).map_err(|e| e.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `res.clone()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `as_ref.map(...)` does nothing [INFO] [stdout] --> src/filters/context.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | res.as_ref().map(|s| s.clone()).map_err(|e| e.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `res.clone()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/bbox.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | if self.rect.as_ref().map_or(true, |r| r.is_empty()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 80 - if self.rect.as_ref().map_or(true, |r| r.is_empty()) { [INFO] [stdout] 80 + if self.rect.as_ref().is_none_or(|r| r.is_empty()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/c_api/handle.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | //! `GObjectClass`. These are coded explicitly, instead of using [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 7 | //! `GObjectClass`. These are coded explicitly, instead of using [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/c_api/handle.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | //! [`glib::subclass::prelude::InstanceStruct`] and [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 8 | //! [`glib::subclass::prelude::InstanceStruct`] and [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/c_api/handle.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | //! [`glib::subclass::prelude::ClassStruct`], as the structs need need to be kept [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 9 | //! [`glib::subclass::prelude::ClassStruct`], as the structs need need to be kept [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/c_api/handle.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | //! ABI-compatible with the traditional C API/ABI. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 10 | //! ABI-compatible with the traditional C API/ABI. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/c_api/handle.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | //! parlance) is in [`CHandle`]. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 13 | //! parlance) is in [`CHandle`]. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/c_api/handle.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 28 | use std::{f64, i32}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `i32::` 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: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/filters/component_transfer.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | / if self.table_values.is_empty() { [INFO] [stdout] 241 | | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] ... [INFO] [stdout] 256 | func_x!(FeFuncR, Channel::R); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] = note: this warning originates in the macro `func_x` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 240 ~ if self.table_values.is_empty() => { [INFO] [stdout] 241 | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/filters/component_transfer.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | / if self.table_values.is_empty() { [INFO] [stdout] 241 | | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] ... [INFO] [stdout] 259 | func_x!(FeFuncG, Channel::G); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: this warning originates in the macro `func_x` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 240 ~ if self.table_values.is_empty() => { [INFO] [stdout] 241 | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/c_api/handle.rs:761:41 [INFO] [stdout] | [INFO] [stdout] 761 | let bytes = Bytes::from(&*buffer); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 761 - let bytes = Bytes::from(&*buffer); [INFO] [stdout] 761 + let bytes = Bytes::from(buffer); [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 761 | let bytes = Bytes::from(&**buffer); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/filters/component_transfer.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | / if self.table_values.is_empty() { [INFO] [stdout] 241 | | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] ... [INFO] [stdout] 262 | func_x!(FeFuncB, Channel::B); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: this warning originates in the macro `func_x` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 240 ~ if self.table_values.is_empty() => { [INFO] [stdout] 241 | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/c_api/handle.rs:934:28 [INFO] [stdout] | [INFO] [stdout] 934 | CairoRenderer::new(&*handle_ref) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 934 - CairoRenderer::new(&*handle_ref) [INFO] [stdout] 934 + CairoRenderer::new(handle_ref) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 934 | CairoRenderer::new(&**handle_ref) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/filters/component_transfer.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | / if self.table_values.is_empty() { [INFO] [stdout] 241 | | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] ... [INFO] [stdout] 265 | func_x!(FeFuncA, Channel::A); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: this warning originates in the macro `func_x` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 240 ~ if self.table_values.is_empty() => { [INFO] [stdout] 241 | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/c_api/handle.rs:1312:9 [INFO] [stdout] | [INFO] [stdout] 1312 | (!buf.is_null() && count != 0) || (count == 0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: try [INFO] [stdout] | [INFO] [stdout] 1312 - (!buf.is_null() && count != 0) || (count == 0), [INFO] [stdout] 1312 + !(buf.is_null() && count != 0), [INFO] [stdout] | [INFO] [stdout] 1312 - (!buf.is_null() && count != 0) || (count == 0), [INFO] [stdout] 1312 + !buf.is_null() || count == 0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/c_api/handle.rs:1646:9 [INFO] [stdout] | [INFO] [stdout] 1646 | (!data.is_null() && data_len != 0) || (data_len == 0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1646 - (!data.is_null() && data_len != 0) || (data_len == 0), [INFO] [stdout] 1646 + !(data.is_null() && data_len != 0), [INFO] [stdout] | [INFO] [stdout] 1646 - (!data.is_null() && data_len != 0) || (data_len == 0), [INFO] [stdout] 1646 + !data.is_null() || data_len == 0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/c_api/handle.rs:1647:21 [INFO] [stdout] | [INFO] [stdout] 1647 | data_len <= std::isize::MAX as usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1647 - data_len <= std::isize::MAX as usize, [INFO] [stdout] 1647 + data_len <= isize::MAX as usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/c_api/handle.rs:1661:25 [INFO] [stdout] | [INFO] [stdout] 1661 | assert!(data_len <= std::isize::MAX as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1661 - assert!(data_len <= std::isize::MAX as usize); [INFO] [stdout] 1661 + assert!(data_len <= isize::MAX as usize); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `length::RsvgLength` [INFO] [stdout] --> src/c_api/handle.rs:1763:47 [INFO] [stdout] | [INFO] [stdout] 1763 | set_out_param(out_has_width, out_width, &w.map(Into::into)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: consider removing [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `length::RsvgLength` [INFO] [stdout] --> src/c_api/handle.rs:1764:49 [INFO] [stdout] | [INFO] [stdout] 1764 | set_out_param(out_has_height, out_height, &h.map(Into::into)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: consider removing [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/cond.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / assert_eq!( [INFO] [stdout] 175 | | SystemLanguage::from_attribute("fr") [INFO] [stdout] 176 | | .unwrap() [INFO] [stdout] 177 | | .eval(&user_language), [INFO] [stdout] 178 | | false [INFO] [stdout] 179 | | ); [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] 174 ~ assert!( [INFO] [stdout] 175 ~ !SystemLanguage::from_attribute("fr") [INFO] [stdout] 176 | .unwrap() [INFO] [stdout] 177 ~ .eval(&user_language) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/cond.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | / assert_eq!( [INFO] [stdout] 182 | | SystemLanguage::from_attribute("en") [INFO] [stdout] 183 | | .unwrap() [INFO] [stdout] 184 | | .eval(&user_language), [INFO] [stdout] 185 | | false [INFO] [stdout] 186 | | ); [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] 181 ~ assert!( [INFO] [stdout] 182 ~ !SystemLanguage::from_attribute("en") [INFO] [stdout] 183 | .unwrap() [INFO] [stdout] 184 ~ .eval(&user_language) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/cond.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | / assert_eq!( [INFO] [stdout] 189 | | SystemLanguage::from_attribute("de") [INFO] [stdout] 190 | | .unwrap() [INFO] [stdout] 191 | | .eval(&user_language), [INFO] [stdout] 192 | | true [INFO] [stdout] 193 | | ); [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] 188 ~ assert!( [INFO] [stdout] 189 | SystemLanguage::from_attribute("de") [INFO] [stdout] 190 | .unwrap() [INFO] [stdout] 191 ~ .eval(&user_language) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/cond.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | / assert_eq!( [INFO] [stdout] 196 | | SystemLanguage::from_attribute("en-US") [INFO] [stdout] 197 | | .unwrap() [INFO] [stdout] 198 | | .eval(&user_language), [INFO] [stdout] 199 | | true [INFO] [stdout] 200 | | ); [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] 195 ~ assert!( [INFO] [stdout] 196 | SystemLanguage::from_attribute("en-US") [INFO] [stdout] 197 | .unwrap() [INFO] [stdout] 198 ~ .eval(&user_language) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/cond.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | / assert_eq!( [INFO] [stdout] 203 | | SystemLanguage::from_attribute("en-GB") [INFO] [stdout] 204 | | .unwrap() [INFO] [stdout] 205 | | .eval(&user_language), [INFO] [stdout] 206 | | false [INFO] [stdout] 207 | | ); [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] 202 ~ assert!( [INFO] [stdout] 203 ~ !SystemLanguage::from_attribute("en-GB") [INFO] [stdout] 204 | .unwrap() [INFO] [stdout] 205 ~ .eval(&user_language) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/cond.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | / assert_eq!( [INFO] [stdout] 210 | | SystemLanguage::from_attribute("DE") [INFO] [stdout] 211 | | .unwrap() [INFO] [stdout] 212 | | .eval(&user_language), [INFO] [stdout] 213 | | true [INFO] [stdout] 214 | | ); [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] 209 ~ assert!( [INFO] [stdout] 210 | SystemLanguage::from_attribute("DE") [INFO] [stdout] 211 | .unwrap() [INFO] [stdout] 212 ~ .eval(&user_language) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/cond.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | / assert_eq!( [INFO] [stdout] 217 | | SystemLanguage::from_attribute("de-LU") [INFO] [stdout] 218 | | .unwrap() [INFO] [stdout] 219 | | .eval(&user_language), [INFO] [stdout] 220 | | true [INFO] [stdout] 221 | | ); [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] 216 ~ assert!( [INFO] [stdout] 217 | SystemLanguage::from_attribute("de-LU") [INFO] [stdout] 218 | .unwrap() [INFO] [stdout] 219 ~ .eval(&user_language) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/cond.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | / assert_eq!( [INFO] [stdout] 224 | | SystemLanguage::from_attribute("fr, de") [INFO] [stdout] 225 | | .unwrap() [INFO] [stdout] 226 | | .eval(&user_language), [INFO] [stdout] 227 | | true [INFO] [stdout] 228 | | ); [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] 223 ~ assert!( [INFO] [stdout] 224 | SystemLanguage::from_attribute("fr, de") [INFO] [stdout] 225 | .unwrap() [INFO] [stdout] 226 ~ .eval(&user_language) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/css.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | //! parse CSS rules and declarations. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 46 | //! parse CSS rules and declarations. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/css.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | //! selector lists, and for the matching engine. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 49 | //! selector lists, and for the matching engine. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/css.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | //! `ParsedProperty::Fill(...)`. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 59 | //! `ParsedProperty::Fill(...)`. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/css.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | //! `selectors` crate. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 62 | //! `selectors` crate. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/css.rs:646:49 [INFO] [stdout] | [INFO] [stdout] 646 | NonTSPseudoClass::Lang(css_lang) => self [INFO] [stdout] | _________________________________________________^ [INFO] [stdout] 647 | | .0 [INFO] [stdout] 648 | | .borrow_element() [INFO] [stdout] 649 | | .get_computed_values() [INFO] [stdout] ... | [INFO] [stdout] 652 | | .as_ref() [INFO] [stdout] 653 | | .map_or(false, |e_lang| css_lang.iter().any(|l| l.matches(e_lang))), [INFO] [stdout] | |___________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 653 - .map_or(false, |e_lang| css_lang.iter().any(|l| l.matches(e_lang))), [INFO] [stdout] 653 + .is_some_and(|e_lang| css_lang.iter().any(|l| l.matches(e_lang))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/filters/morphology.rs:124:40 [INFO] [stdout] | [INFO] [stdout] 124 | Operator::Erode => u8::max_value(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 124 - Operator::Erode => u8::max_value(), [INFO] [stdout] 124 + Operator::Erode => u8::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/filters/morphology.rs:125:41 [INFO] [stdout] | [INFO] [stdout] 125 | Operator::Dilate => u8::min_value(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 125 - Operator::Dilate => u8::min_value(), [INFO] [stdout] 125 + Operator::Dilate => u8::MIN, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable [INFO] [stdout] --> src/dasharray.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | l.iter() [INFO] [stdout] | ______________^ [INFO] [stdout] 50 | | .cloned() [INFO] [stdout] 51 | | .collect::>>() [INFO] [stdout] | |________________________________________________^ help: try: `.to_vec()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect [INFO] [stdout] = note: `#[warn(clippy::iter_cloned_collect)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/document.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | Some(p) if p == 0 => (None, Some(&href[1..])), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] = note: `#[warn(clippy::redundant_guards)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 47 - Some(p) if p == 0 => (None, Some(&href[1..])), [INFO] [stdout] 47 + Some(0) => (None, Some(&href[1..])), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/filters/turbulence.rs:94:35 [INFO] [stdout] | [INFO] [stdout] 94 | f64::from(i32::min_value()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 94 - f64::from(i32::min_value()), [INFO] [stdout] 94 + f64::from(i32::MIN), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/filters/turbulence.rs:95:35 [INFO] [stdout] | [INFO] [stdout] 95 | f64::from(i32::max_value()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 95 - f64::from(i32::max_value()), [INFO] [stdout] 95 + f64::from(i32::MAX), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/document.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | self.0.iter().any(|n| *n == *node) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.0.contains(node)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains [INFO] [stdout] = note: `#[warn(clippy::manual_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/filters/mod.rs:249:23 [INFO] [stdout] | [INFO] [stdout] 249 | let filter_node = &*filter_node; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `filter_node` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/drawing_ctx.rs:507:53 [INFO] [stdout] | [INFO] [stdout] 507 | clip_to_rectangle(&self.cr, &*vbox); [INFO] [stdout] | ^^^^^^ help: try: `&vbox` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/font_props.rs:506:20 [INFO] [stdout] | [INFO] [stdout] 506 | if cow == "" { [INFO] [stdout] | ^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `cow.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/iri.rs:26:42 [INFO] [stdout] | [INFO] [stdout] 26 | Iri::Resource(ref f) => Some(&*f), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 26 - Iri::Resource(ref f) => Some(&*f), [INFO] [stdout] 26 + Iri::Resource(ref f) => Some(f), [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 26 | Iri::Resource(ref f) => Some(&**f), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/length.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | //! they will be normalized with respect to the current viewport's width and height, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 32 | //! they will be normalized with respect to the current viewport's width and height, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/length.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | //! respectively. If the SVG document specified ``, the values [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 33 | //! respectively. If the SVG document specified ``, the values [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/length.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | //! would be normalized to be at 50% of the the viewport's width, and 30% of the viewport's [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 34 | //! would be normalized to be at 50% of the the viewport's width, and 30% of the viewport's [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/length.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | //! height. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 35 | //! height. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/length.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | //! of the current viewport. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 38 | //! of the current viewport. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/length.rs:496:1 [INFO] [stdout] | [INFO] [stdout] 496 | / impl Default for LengthOrAuto { [INFO] [stdout] 497 | | fn default() -> Self { [INFO] [stdout] 498 | | LengthOrAuto::Auto [INFO] [stdout] 499 | | } [INFO] [stdout] 500 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 491 + #[derive(Default)] [INFO] [stdout] 492 | pub enum LengthOrAuto { [INFO] [stdout] 493 | Length(CssLength), [INFO] [stdout] 494 ~ #[default] [INFO] [stdout] 495 ~ Auto, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | /// The first one references the second one ten times, the second one [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 12 | /// The first one references the second one ten times, the second one [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | /// references the third one ten times, and so on. In the file given, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 13 | /// references the third one ten times, and so on. In the file given, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | /// this causes 10^17 objects to be rendered. While this does not [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 14 | /// this causes 10^17 objects to be rendered. While this does not [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | /// exhaust memory, it would take a really long time. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 15 | /// exhaust memory, it would take a really long time. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | /// object inside each pattern has an attribute [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 18 | /// object inside each pattern has an attribute [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// fill="url(#next_pattern)", so the number of final rendered objects [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 19 | /// fill="url(#next_pattern)", so the number of final rendered objects [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | /// grows exponentially. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 20 | /// grows exponentially. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/path_builder.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | //! temporary storage for path data. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 7 | //! temporary storage for path data. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/path_builder.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | //! a more compact representation. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 10 | //! a more compact representation. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/path_parser.rs:152:31 [INFO] [stdout] | [INFO] [stdout] 152 | Some((pos, c)) if c == b',' => { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 152 - Some((pos, c)) if c == b',' => { [INFO] [stdout] 152 + Some((pos, b',')) => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/filter_func.rs:632:9 [INFO] [stdout] | [INFO] [stdout] 632 | return Err(loc.new_custom_error(ValueErrorKind::parse_error("expected filter function"))); [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] 632 - return Err(loc.new_custom_error(ValueErrorKind::parse_error("expected filter function"))); [INFO] [stdout] 632 + Err(loc.new_custom_error(ValueErrorKind::parse_error("expected filter function"))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/filter_func.rs:613:18 [INFO] [stdout] | [INFO] [stdout] 613 | let fns: Vec<(&str, &dyn Fn(&mut Parser<'i, '_>) -> _)> = vec![ [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: this call to `as_ref.map(...)` does nothing [INFO] [stdout] --> src/filters/context.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | res.as_ref().map(|s| s.clone()).map_err(|e| e.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `res.clone()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref [INFO] [stdout] = note: `#[warn(clippy::useless_asref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `as_ref.map(...)` does nothing [INFO] [stdout] --> src/filters/context.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | res.as_ref().map(|s| s.clone()).map_err(|e| e.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `res.clone()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `as_ref.map(...)` does nothing [INFO] [stdout] --> src/filters/context.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | res.as_ref().map(|s| s.clone()).map_err(|e| e.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `res.clone()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/pattern.rs:282:14 [INFO] [stdout] | [INFO] [stdout] 282 | (&WithChildren(ref wc), _) => WithChildren(wc.clone()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] = note: `#[warn(clippy::needless_borrowed_reference)]` on by default [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 282 - (&WithChildren(ref wc), _) => WithChildren(wc.clone()), [INFO] [stdout] 282 + (WithChildren(wc), _) => WithChildren(wc.clone()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/pattern.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | (_, &WithChildren(ref wc)) => WithChildren(wc.clone()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 283 - (_, &WithChildren(ref wc)) => WithChildren(wc.clone()), [INFO] [stdout] 283 + (_, WithChildren(wc)) => WithChildren(wc.clone()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | //! `property_defs.rs`; you should cut-and-paste from the existing property definitions or [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 6 | //! `property_defs.rs`; you should cut-and-paste from the existing property definitions or [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | //! read the documentation of the [`make_property`] macro. You should read the [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 7 | //! read the documentation of the [`make_property`] macro. You should read the [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | //! documentation for the [`property_defs`][crate::property_defs] module to see all that [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 8 | //! documentation for the [`property_defs`][crate::property_defs] module to see all that [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | //! is involved in creating a type for a property. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 9 | //! is involved in creating a type for a property. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | //! property's name. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 12 | //! property's name. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | //! This is available in methods that take an argument of type [`ComputedValues`]. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 15 | //! This is available in methods that take an argument of type [`ComputedValues`]. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/filters/component_transfer.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | / if self.table_values.is_empty() { [INFO] [stdout] 241 | | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] ... [INFO] [stdout] 256 | func_x!(FeFuncR, Channel::R); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] = note: this warning originates in the macro `func_x` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 240 ~ if self.table_values.is_empty() => { [INFO] [stdout] 241 | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/filters/component_transfer.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | / if self.table_values.is_empty() { [INFO] [stdout] 241 | | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] ... [INFO] [stdout] 259 | func_x!(FeFuncG, Channel::G); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: this warning originates in the macro `func_x` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 240 ~ if self.table_values.is_empty() => { [INFO] [stdout] 241 | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/filters/component_transfer.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | / if self.table_values.is_empty() { [INFO] [stdout] 241 | | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] ... [INFO] [stdout] 262 | func_x!(FeFuncB, Channel::B); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: this warning originates in the macro `func_x` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 240 ~ if self.table_values.is_empty() => { [INFO] [stdout] 241 | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/filters/component_transfer.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | / if self.table_values.is_empty() { [INFO] [stdout] 241 | | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] ... [INFO] [stdout] 265 | func_x!(FeFuncA, Channel::A); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: this warning originates in the macro `func_x` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 240 ~ if self.table_values.is_empty() => { [INFO] [stdout] 241 | self.function_type = FunctionType::Identity; [INFO] [stdout] 242 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | //! in this module. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 16 | //! in this module. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | //! [`Default`] trait. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 19 | //! [`Default`] trait. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | //! implementation of the [`Property`] trait and its [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 22 | //! implementation of the [`Property`] trait and its [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | //! [`inherits_automatically`][Property::inherits_automatically] method. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 23 | //! [`inherits_automatically`][Property::inherits_automatically] method. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | //! implementation of the [`Property`] trait and its [`compute`][Property::compute] method. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 26 | //! implementation of the [`Property`] trait and its [`compute`][Property::compute] method. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | //! field-less enum for properties like the `clip-rule` property, which just has [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 29 | //! field-less enum for properties like the `clip-rule` property, which just has [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | //! identifier-based values like `nonzero` and `evenodd`. For general-purpose types like [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 30 | //! identifier-based values like `nonzero` and `evenodd`. For general-purpose types like [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | //! [`Length`], the macro can wrap them in a newtype like `struct` [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 31 | //! [`Length`], the macro can wrap them in a newtype like `struct` [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | //! [`StrokeWidth`]`(`[`Length`]`)`. For custom types, the macro call can be used just to [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 32 | //! [`StrokeWidth`]`(`[`Length`]`)`. For custom types, the macro call can be used just to [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | //! define the initial/default value and whether the property inherits automatically; you [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 33 | //! define the initial/default value and whether the property inherits automatically; you [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | //! should provide the other required trait implementations separately. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 34 | //! should provide the other required trait implementations separately. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/filters/morphology.rs:124:40 [INFO] [stdout] | [INFO] [stdout] 124 | Operator::Erode => u8::max_value(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 124 - Operator::Erode => u8::max_value(), [INFO] [stdout] 124 + Operator::Erode => u8::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/filters/morphology.rs:125:41 [INFO] [stdout] | [INFO] [stdout] 125 | Operator::Dilate => u8::min_value(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 125 - Operator::Dilate => u8::min_value(), [INFO] [stdout] 125 + Operator::Dilate => u8::MIN, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/filters/turbulence.rs:94:35 [INFO] [stdout] | [INFO] [stdout] 94 | f64::from(i32::min_value()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 94 - f64::from(i32::min_value()), [INFO] [stdout] 94 + f64::from(i32::MIN), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/filters/turbulence.rs:95:35 [INFO] [stdout] | [INFO] [stdout] 95 | f64::from(i32::max_value()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 95 - f64::from(i32::max_value()), [INFO] [stdout] 95 + f64::from(i32::MAX), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/filters/mod.rs:249:23 [INFO] [stdout] | [INFO] [stdout] 249 | let filter_node = &*filter_node; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `filter_node` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/font_props.rs:506:20 [INFO] [stdout] | [INFO] [stdout] 506 | if cow == "" { [INFO] [stdout] | ^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `cow.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/iri.rs:26:42 [INFO] [stdout] | [INFO] [stdout] 26 | Iri::Resource(ref f) => Some(&*f), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 26 - Iri::Resource(ref f) => Some(&*f), [INFO] [stdout] 26 + Iri::Resource(ref f) => Some(f), [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 26 | Iri::Resource(ref f) => Some(&**f), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/length.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | //! they will be normalized with respect to the current viewport's width and height, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 32 | //! they will be normalized with respect to the current viewport's width and height, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/length.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | //! respectively. If the SVG document specified ``, the values [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 33 | //! respectively. If the SVG document specified ``, the values [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/length.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | //! would be normalized to be at 50% of the the viewport's width, and 30% of the viewport's [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 34 | //! would be normalized to be at 50% of the the viewport's width, and 30% of the viewport's [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/length.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | //! height. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 35 | //! height. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/length.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | //! of the current viewport. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 38 | //! of the current viewport. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting the result of `i32::abs()` to u8 [INFO] [stdout] --> src/surface_utils/mod.rs:201:27 [INFO] [stdout] | [INFO] [stdout] 201 | .map(|(l, r)| (l as i32 - r as i32).abs() as u8) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `(l as i32 - r as i32).unsigned_abs()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_abs_to_unsigned [INFO] [stdout] = note: `#[warn(clippy::cast_abs_to_unsigned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/surface_utils/mod.rs:261:6 [INFO] [stdout] | [INFO] [stdout] 261 | impl<'a> ImageSurfaceDataExt for &'a mut [u8] {} [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 261 - impl<'a> ImageSurfaceDataExt for &'a mut [u8] {} [INFO] [stdout] 261 + impl ImageSurfaceDataExt for &mut [u8] {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/length.rs:496:1 [INFO] [stdout] | [INFO] [stdout] 496 | / impl Default for LengthOrAuto { [INFO] [stdout] 497 | | fn default() -> Self { [INFO] [stdout] 498 | | LengthOrAuto::Auto [INFO] [stdout] 499 | | } [INFO] [stdout] 500 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 491 + #[derive(Default)] [INFO] [stdout] 492 | pub enum LengthOrAuto { [INFO] [stdout] 493 | Length(CssLength), [INFO] [stdout] 494 ~ #[default] [INFO] [stdout] 495 ~ Auto, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/text.rs:643:45 [INFO] [stdout] | [INFO] [stdout] 643 | self.ensure_normalized_string(node, &*values); [INFO] [stdout] | ^^^^^^^^ help: try: `&values` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/text.rs:659:17 [INFO] [stdout] | [INFO] [stdout] 659 | chunks: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 659 - chunks: &mut Vec, [INFO] [stdout] 659 + chunks: &mut [Chunk], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | /// The first one references the second one ten times, the second one [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 12 | /// The first one references the second one ten times, the second one [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | /// references the third one ten times, and so on. In the file given, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 13 | /// references the third one ten times, and so on. In the file given, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | /// this causes 10^17 objects to be rendered. While this does not [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 14 | /// this causes 10^17 objects to be rendered. While this does not [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | /// exhaust memory, it would take a really long time. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 15 | /// exhaust memory, it would take a really long time. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | /// object inside each pattern has an attribute [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 18 | /// object inside each pattern has an attribute [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// fill="url(#next_pattern)", so the number of final rendered objects [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 19 | /// fill="url(#next_pattern)", so the number of final rendered objects [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/limits.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | /// grows exponentially. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 20 | /// grows exponentially. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/transform.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | //! grammar than the `transform` property from SVG2. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 10 | //! grammar than the `transform` property from SVG2. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/transform.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | / impl Default for TransformProperty { [INFO] [stdout] 52 | | fn default() -> Self { [INFO] [stdout] 53 | | TransformProperty::None [INFO] [stdout] 54 | | } [INFO] [stdout] 55 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 40 + #[derive(Default)] [INFO] [stdout] 41 | pub enum TransformProperty { [INFO] [stdout] 42 ~ #[default] [INFO] [stdout] 43 ~ None, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/url_resolver.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | if segments [INFO] [stdout] | ________________^ [INFO] [stdout] 91 | | .last() [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] = note: `#[warn(clippy::double_ended_iterator_last)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 89 ~ if let Some(mut segments) = url.path_segments() { [INFO] [stdout] 90 | if segments [INFO] [stdout] 91 ~ .next_back() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/path_builder.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | //! temporary storage for path data. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 7 | //! temporary storage for path data. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/path_builder.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | //! a more compact representation. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 10 | //! a more compact representation. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/path_parser.rs:152:31 [INFO] [stdout] | [INFO] [stdout] 152 | Some((pos, c)) if c == b',' => { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 152 - Some((pos, c)) if c == b',' => { [INFO] [stdout] 152 + Some((pos, b',')) => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/xml/xml2_load.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | Box::from_raw(ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` implied by `#[warn(unused)]` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 371 | let _ = Box::from_raw(ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/pattern.rs:282:14 [INFO] [stdout] | [INFO] [stdout] 282 | (&WithChildren(ref wc), _) => WithChildren(wc.clone()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] = note: `#[warn(clippy::needless_borrowed_reference)]` on by default [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 282 - (&WithChildren(ref wc), _) => WithChildren(wc.clone()), [INFO] [stdout] 282 + (WithChildren(wc), _) => WithChildren(wc.clone()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/pattern.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | (_, &WithChildren(ref wc)) => WithChildren(wc.clone()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 283 - (_, &WithChildren(ref wc)) => WithChildren(wc.clone()), [INFO] [stdout] 283 + (_, WithChildren(wc)) => WithChildren(wc.clone()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | //! `property_defs.rs`; you should cut-and-paste from the existing property definitions or [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 6 | //! `property_defs.rs`; you should cut-and-paste from the existing property definitions or [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | //! read the documentation of the [`make_property`] macro. You should read the [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 7 | //! read the documentation of the [`make_property`] macro. You should read the [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | //! documentation for the [`property_defs`][crate::property_defs] module to see all that [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 8 | //! documentation for the [`property_defs`][crate::property_defs] module to see all that [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | //! is involved in creating a type for a property. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 9 | //! is involved in creating a type for a property. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | //! property's name. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 12 | //! property's name. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/properties.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | //! This is available in methods that take an argument of type [`ComputedValues`]. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 15 | //! This is available in methods that take an argument of type [`ComputedValues`]. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/properties.rs:1068:9 [INFO] [stdout] | [INFO] [stdout] 1068 | assert_eq!(::inherits_automatically(), 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] 1068 - assert_eq!(::inherits_automatically(), false); [INFO] [stdout] 1068 + assert!(!::inherits_automatically()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | //! in this module. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 16 | //! in this module. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | //! [`Default`] trait. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 19 | //! [`Default`] trait. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | //! implementation of the [`Property`] trait and its [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 22 | //! implementation of the [`Property`] trait and its [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | //! [`inherits_automatically`][Property::inherits_automatically] method. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 23 | //! [`inherits_automatically`][Property::inherits_automatically] method. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | //! implementation of the [`Property`] trait and its [`compute`][Property::compute] method. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 26 | //! implementation of the [`Property`] trait and its [`compute`][Property::compute] method. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | //! field-less enum for properties like the `clip-rule` property, which just has [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 29 | //! field-less enum for properties like the `clip-rule` property, which just has [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | //! identifier-based values like `nonzero` and `evenodd`. For general-purpose types like [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 30 | //! identifier-based values like `nonzero` and `evenodd`. For general-purpose types like [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | //! [`Length`], the macro can wrap them in a newtype like `struct` [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 31 | //! [`Length`], the macro can wrap them in a newtype like `struct` [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | //! [`StrokeWidth`]`(`[`Length`]`)`. For custom types, the macro call can be used just to [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 32 | //! [`StrokeWidth`]`(`[`Length`]`)`. For custom types, the macro call can be used just to [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | //! define the initial/default value and whether the property inherits automatically; you [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 33 | //! define the initial/default value and whether the property inherits automatically; you [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/property_defs.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | //! should provide the other required trait implementations separately. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 34 | //! should provide the other required trait implementations separately. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: statics have by default a `'static` lifetime [INFO] [stdout] --> benches/path_parser.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | static INPUT: &'static str = "M10 20 C 30,40 50 60-70,80,90 100,110 120,130,140"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [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: statics have by default a `'static` lifetime [INFO] [stdout] --> benches/path_parser.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | static BYTES: &'static [u8; 49] = b"M10 20 C 30,40 50 60-70,80,90 100,110 120,130,140"; [INFO] [stdout] | -^^^^^^^--------- help: consider removing `'static`: `&[u8; 49]` [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: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> benches/path_parser.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | let _ = builder.parse(&input); [INFO] [stdout] | ^^^^^^ help: change this to: `input` [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: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:171:11 [INFO] [stdout] | [INFO] [stdout] 171 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:173:11 [INFO] [stdout] | [INFO] [stdout] 173 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> src/bin/rsvg-convert.rs:175:11 [INFO] [stdout] | [INFO] [stdout] 175 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:185:19 [INFO] [stdout] | [INFO] [stdout] 185 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:187:19 [INFO] [stdout] | [INFO] [stdout] 187 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> src/bin/rsvg-convert.rs:189:19 [INFO] [stdout] | [INFO] [stdout] 189 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:219:11 [INFO] [stdout] | [INFO] [stdout] 219 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:228:15 [INFO] [stdout] | [INFO] [stdout] 228 | #[cfg(not(system_deps_have_cairo_pdf))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:233:11 [INFO] [stdout] | [INFO] [stdout] 233 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:240:15 [INFO] [stdout] | [INFO] [stdout] 240 | #[cfg(not(system_deps_have_cairo_ps))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> src/bin/rsvg-convert.rs:245:11 [INFO] [stdout] | [INFO] [stdout] 245 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> src/bin/rsvg-convert.rs:262:15 [INFO] [stdout] | [INFO] [stdout] 262 | #[cfg(not(system_deps_have_cairo_svg))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:622:31 [INFO] [stdout] | [INFO] [stdout] 622 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:634:31 [INFO] [stdout] | [INFO] [stdout] 634 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:722:15 [INFO] [stdout] | [INFO] [stdout] 722 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:724:15 [INFO] [stdout] | [INFO] [stdout] 724 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:726:15 [INFO] [stdout] | [INFO] [stdout] 726 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> src/bin/rsvg-convert.rs:728:15 [INFO] [stdout] | [INFO] [stdout] 728 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:171:11 [INFO] [stdout] | [INFO] [stdout] 171 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:173:11 [INFO] [stdout] | [INFO] [stdout] 173 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> src/bin/rsvg-convert.rs:175:11 [INFO] [stdout] | [INFO] [stdout] 175 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:185:19 [INFO] [stdout] | [INFO] [stdout] 185 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:187:19 [INFO] [stdout] | [INFO] [stdout] 187 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> src/bin/rsvg-convert.rs:189:19 [INFO] [stdout] | [INFO] [stdout] 189 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:219:11 [INFO] [stdout] | [INFO] [stdout] 219 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:228:15 [INFO] [stdout] | [INFO] [stdout] 228 | #[cfg(not(system_deps_have_cairo_pdf))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:233:11 [INFO] [stdout] | [INFO] [stdout] 233 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:240:15 [INFO] [stdout] | [INFO] [stdout] 240 | #[cfg(not(system_deps_have_cairo_ps))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> src/bin/rsvg-convert.rs:245:11 [INFO] [stdout] | [INFO] [stdout] 245 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> src/bin/rsvg-convert.rs:262:15 [INFO] [stdout] | [INFO] [stdout] 262 | #[cfg(not(system_deps_have_cairo_svg))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:622:31 [INFO] [stdout] | [INFO] [stdout] 622 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:634:31 [INFO] [stdout] | [INFO] [stdout] 634 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> src/bin/rsvg-convert.rs:722:15 [INFO] [stdout] | [INFO] [stdout] 722 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:724:15 [INFO] [stdout] | [INFO] [stdout] 724 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> src/bin/rsvg-convert.rs:726:15 [INFO] [stdout] | [INFO] [stdout] 726 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> src/bin/rsvg-convert.rs:728:15 [INFO] [stdout] | [INFO] [stdout] 728 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/bin/rsvg-convert.rs:176:28 [INFO] [stdout] | [INFO] [stdout] 176 | Svg(cairo::SvgSurface, Size), [INFO] [stdout] | --- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 176 - Svg(cairo::SvgSurface, Size), [INFO] [stdout] 176 + Svg(cairo::SvgSurface, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> benches/pixel_iterators.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 38 | r += data[base + 0] as usize; [INFO] [stdout] | ^^^^^^^^ help: consider reducing it to: `base` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] = note: `#[warn(clippy::identity_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting the result of `i32::abs()` to u8 [INFO] [stdout] --> src/surface_utils/mod.rs:201:27 [INFO] [stdout] | [INFO] [stdout] 201 | .map(|(l, r)| (l as i32 - r as i32).abs() as u8) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `(l as i32 - r as i32).unsigned_abs()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_abs_to_unsigned [INFO] [stdout] = note: `#[warn(clippy::cast_abs_to_unsigned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/surface_utils/mod.rs:261:6 [INFO] [stdout] | [INFO] [stdout] 261 | impl<'a> ImageSurfaceDataExt for &'a mut [u8] {} [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 261 - impl<'a> ImageSurfaceDataExt for &'a mut [u8] {} [INFO] [stdout] 261 + impl ImageSurfaceDataExt for &mut [u8] {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual checked division [INFO] [stdout] --> src/surface_utils/mod.rs:297:16 [INFO] [stdout] | [INFO] [stdout] 297 | if pixel.a == 0 { [INFO] [stdout] | ^^^^^^^^^^^^ check performed here [INFO] [stdout] ... [INFO] [stdout] 301 | let tolerance = 0xff / pixel.a; [INFO] [stdout] | -------------- division performed here [INFO] [stdout] | [INFO] [stdout] = help: consider using `checked_div` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_checked_ops [INFO] [stdout] = note: `#[warn(clippy::manual_checked_ops)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/text.rs:643:45 [INFO] [stdout] | [INFO] [stdout] 643 | self.ensure_normalized_string(node, &*values); [INFO] [stdout] | ^^^^^^^^ help: try: `&values` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/text.rs:659:17 [INFO] [stdout] | [INFO] [stdout] 659 | chunks: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 659 - chunks: &mut Vec, [INFO] [stdout] 659 + chunks: &mut [Chunk], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/transform.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | //! grammar than the `transform` property from SVG2. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 10 | //! grammar than the `transform` property from SVG2. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/transform.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | / impl Default for TransformProperty { [INFO] [stdout] 52 | | fn default() -> Self { [INFO] [stdout] 53 | | TransformProperty::None [INFO] [stdout] 54 | | } [INFO] [stdout] 55 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 40 + #[derive(Default)] [INFO] [stdout] 41 | pub enum TransformProperty { [INFO] [stdout] 42 ~ #[default] [INFO] [stdout] 43 ~ None, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/bin/rsvg-convert.rs:176:28 [INFO] [stdout] | [INFO] [stdout] 176 | Svg(cairo::SvgSurface, Size), [INFO] [stdout] | --- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 176 - Svg(cairo::SvgSurface, Size), [INFO] [stdout] 176 + Svg(cairo::SvgSurface, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/api.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/api.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | use libc; [INFO] [stdout] | ^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/bugs.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:113:7 [INFO] [stdout] | [INFO] [stdout] 113 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:123:7 [INFO] [stdout] | [INFO] [stdout] 123 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:133:7 [INFO] [stdout] | [INFO] [stdout] 133 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:143:7 [INFO] [stdout] | [INFO] [stdout] 143 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:154:7 [INFO] [stdout] | [INFO] [stdout] 154 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:172:7 [INFO] [stdout] | [INFO] [stdout] 172 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_svg` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:190:7 [INFO] [stdout] | [INFO] [stdout] 190 | #[cfg(system_deps_have_cairo_svg)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_svg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_svg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:306:7 [INFO] [stdout] | [INFO] [stdout] 306 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_ps` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:320:7 [INFO] [stdout] | [INFO] [stdout] 320 | #[cfg(system_deps_have_cairo_ps)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_ps)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_ps)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:334:7 [INFO] [stdout] | [INFO] [stdout] 334 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:356:7 [INFO] [stdout] | [INFO] [stdout] 356 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:386:7 [INFO] [stdout] | [INFO] [stdout] 386 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:398:7 [INFO] [stdout] | [INFO] [stdout] 398 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:414:7 [INFO] [stdout] | [INFO] [stdout] 414 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:430:7 [INFO] [stdout] | [INFO] [stdout] 430 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:444:7 [INFO] [stdout] | [INFO] [stdout] 444 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:458:7 [INFO] [stdout] | [INFO] [stdout] 458 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:472:7 [INFO] [stdout] | [INFO] [stdout] 472 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:732:7 [INFO] [stdout] | [INFO] [stdout] 732 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:742:7 [INFO] [stdout] | [INFO] [stdout] 742 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:754:7 [INFO] [stdout] | [INFO] [stdout] 754 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:767:7 [INFO] [stdout] | [INFO] [stdout] 767 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:779:7 [INFO] [stdout] | [INFO] [stdout] 779 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_cairo_pdf` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:803:7 [INFO] [stdout] | [INFO] [stdout] 803 | #[cfg(system_deps_have_cairo_pdf)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_cairo_pdf)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_cairo_pdf)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/errors.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/filters.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/intrinsic_dimensions.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/legacy_sizing.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> tests/src/predicates/file.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / /// Predicates to check that some output ([u8]) is of a certain file type [INFO] [stdout] 9 | | [INFO] [stdout] | |_^ [INFO] [stdout] 10 | pub fn is_png() -> PngPredicate { [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] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:14:28 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn with_page_count(self: Self, num_pages: usize) -> DetailPredicate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] = note: `#[warn(clippy::needless_arbitrary_self_type)]` on by default [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 14 - pub fn with_page_count(self: Self, num_pages: usize) -> DetailPredicate { [INFO] [stdout] 14 + pub fn with_page_count(self, num_pages: usize) -> DetailPredicate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | self: Self, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 22 - self: Self, [INFO] [stdout] 22 + self, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn with_creation_date(self: Self, when: DateTime) -> DetailPredicate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 40 - pub fn with_creation_date(self: Self, when: DateTime) -> DetailPredicate { [INFO] [stdout] 40 + pub fn with_creation_date(self, when: DateTime) -> DetailPredicate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn with_link(self: Self, link: &str) -> DetailPredicate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 47 - pub fn with_link(self: Self, link: &str) -> DetailPredicate { [INFO] [stdout] 47 + pub fn with_link(self, link: &str) -> DetailPredicate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn with_text(self: Self, text: &str) -> DetailPredicate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 54 - pub fn with_text(self: Self, text: &str) -> DetailPredicate { [INFO] [stdout] 54 + pub fn with_text(self, text: &str) -> DetailPredicate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:119:24 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn width_in_pt(self: &Self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 119 - pub fn width_in_pt(self: &Self) -> f64 { [INFO] [stdout] 119 + pub fn width_in_pt(&self) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn height_in_pt(self: &Self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 123 - pub fn height_in_pt(self: &Self) -> f64 { [INFO] [stdout] 123 + pub fn height_in_pt(&self) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:156:29 [INFO] [stdout] | [INFO] [stdout] 156 | fn get_from_trailer<'a>(self: &'a Self, key: &[u8]) -> lopdf::Result<&'a lopdf::Object>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 156 - fn get_from_trailer<'a>(self: &'a Self, key: &[u8]) -> lopdf::Result<&'a lopdf::Object>; [INFO] [stdout] 156 + fn get_from_trailer<'a>(&'a self, key: &[u8]) -> lopdf::Result<&'a lopdf::Object>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | self: &'a Self, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 158 - self: &'a Self, [INFO] [stdout] 158 + &'a self, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:230:23 [INFO] [stdout] | [INFO] [stdout] 230 | fn get_page_count(self: &Self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 230 - fn get_page_count(self: &Self) -> usize { [INFO] [stdout] 230 + fn get_page_count(&self) -> usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:234:22 [INFO] [stdout] | [INFO] [stdout] 234 | fn get_page_size(self: &Self, idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 234 - fn get_page_size(self: &Self, idx: usize) -> Option { [INFO] [stdout] 234 + fn get_page_size(&self, idx: usize) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:247:26 [INFO] [stdout] | [INFO] [stdout] 247 | fn get_creation_date(self: &Self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 247 - fn get_creation_date(self: &Self) -> Option> { [INFO] [stdout] 247 + fn get_creation_date(&self) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:254:29 [INFO] [stdout] | [INFO] [stdout] 254 | fn get_from_trailer<'a>(self: &'a Self, key: &[u8]) -> lopdf::Result<&'a lopdf::Object> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 254 - fn get_from_trailer<'a>(self: &'a Self, key: &[u8]) -> lopdf::Result<&'a lopdf::Object> { [INFO] [stdout] 254 + fn get_from_trailer<'a>(&'a self, key: &[u8]) -> lopdf::Result<&'a lopdf::Object> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/pdf.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | self: &'a Self, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 260 - self: &'a Self, [INFO] [stdout] 260 + &'a self, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/predicates/png.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use png; [INFO] [stdout] | ^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/png.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn with_size(self: Self, w: u32, h: u32) -> SizePredicate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 18 - pub fn with_size(self: Self, w: u32, h: u32) -> SizePredicate { [INFO] [stdout] 18 + pub fn with_size(self, w: u32, h: u32) -> SizePredicate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/png.rs:22:42 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn with_contents>(self: Self, reference: P) -> ReferencePredicate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 22 - pub fn with_contents>(self: Self, reference: P) -> ReferencePredicate { [INFO] [stdout] 22 + pub fn with_contents>(self, reference: P) -> ReferencePredicate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/svg.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn with_size(self: Self, width: Length, height: Length) -> DetailPredicate { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 16 - pub fn with_size(self: Self, width: Length, height: Length) -> DetailPredicate { [INFO] [stdout] 16 + pub fn with_size(self, width: Length, height: Length) -> DetailPredicate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/svg.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn width(self: &Self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 74 - pub fn width(self: &Self) -> f64 { [INFO] [stdout] 74 + pub fn width(&self) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type of the `self` parameter does not need to be arbitrary [INFO] [stdout] --> tests/src/predicates/svg.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn height(self: &Self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type [INFO] [stdout] help: remove the type [INFO] [stdout] | [INFO] [stdout] 78 - pub fn height(self: &Self) -> f64 { [INFO] [stdout] 78 + pub fn height(&self) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/primitive_geometries.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/primitives.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/reference.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/url_resolver.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | if segments [INFO] [stdout] | ________________^ [INFO] [stdout] 91 | | .last() [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] = note: `#[warn(clippy::double_ended_iterator_last)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 89 ~ if let Some(mut segments) = url.path_segments() { [INFO] [stdout] 90 | if segments [INFO] [stdout] 91 ~ .next_back() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/reference_utils.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> tests/src/reference_utils.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | crate::utils::setup_font_map(); [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] = note: `#[warn(clippy::crate_in_macro_def)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> tests/src/reference_utils.rs:248:17 [INFO] [stdout] | [INFO] [stdout] 248 | use crate::utils::setup_font_map; [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/render_crash.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/text.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_pangoft2` [INFO] [stdout] --> tests/src/utils.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | #[cfg(system_deps_have_pangoft2)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_pangoft2)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_pangoft2)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_pangoft2` [INFO] [stdout] --> tests/src/utils.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | #[cfg(system_deps_have_pangoft2)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_pangoft2)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_pangoft2)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `system_deps_have_pangoft2` [INFO] [stdout] --> tests/src/utils.rs:106:11 [INFO] [stdout] | [INFO] [stdout] 106 | #[cfg(not(system_deps_have_pangoft2))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(system_deps_have_pangoft2)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(system_deps_have_pangoft2)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/utils.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | use cairo; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/utils.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | use gio; [INFO] [stdout] | ^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/utils.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | use glib; [INFO] [stdout] | ^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> tests/src/utils.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | use libc; [INFO] [stdout] | ^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/xml/attributes.rs:161:37 [INFO] [stdout] | [INFO] [stdout] 161 | .unwrap_or_else(|| ptr::null()), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ptr::null` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/xml/attributes.rs:166:37 [INFO] [stdout] | [INFO] [stdout] 166 | .unwrap_or_else(|| ptr::null()), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ptr::null` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stdout] --> src/xml/attributes.rs:170:36 [INFO] [stdout] | [INFO] [stdout] 170 | let val_end = unsafe { val_start.offset(val.as_bytes().len() as isize) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stdout] = note: `#[warn(clippy::ptr_offset_with_cast)]` on by default [INFO] [stdout] help: use `add` instead [INFO] [stdout] | [INFO] [stdout] 170 - let val_end = unsafe { val_start.offset(val.as_bytes().len() as isize) }; [INFO] [stdout] 170 + let val_end = unsafe { val_start.add(val.as_bytes().len()) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/xml/attributes.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | assert!(v == ""); [INFO] [stdout] | ^^^^^^^ help: using `is_empty` is clearer and more explicit: `v.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:959:13 [INFO] [stdout] | [INFO] [stdout] 959 | &vec![moveto(10.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:966:13 [INFO] [stdout] | [INFO] [stdout] 966 | &vec![moveto(-10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(-10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:973:13 [INFO] [stdout] | [INFO] [stdout] 973 | &vec![moveto(0.10, 0.20)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(0.10, 0.20)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:980:13 [INFO] [stdout] | [INFO] [stdout] 980 | &vec![moveto(-0.10, -0.20)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(-0.10, -0.20)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:987:13 [INFO] [stdout] | [INFO] [stdout] 987 | &vec![moveto(-0.10, -0.20)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(-0.10, -0.20)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:994:13 [INFO] [stdout] | [INFO] [stdout] 994 | &vec![moveto(10.5, 0.50)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.5, 0.50)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1001:13 [INFO] [stdout] | [INFO] [stdout] 1001 | &vec![moveto(0.10, 0.20)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(0.10, 0.20)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1008:13 [INFO] [stdout] | [INFO] [stdout] 1008 | &vec![moveto(1.0, 0.000020)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(1.0, 0.000020)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1015:13 [INFO] [stdout] | [INFO] [stdout] 1015 | &vec![moveto(-1.0, -0.20)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(-1.0, -0.20)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1022:13 [INFO] [stdout] | [INFO] [stdout] 1022 | &vec![moveto(1010.0, -200.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(1010.0, -200.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1029:13 [INFO] [stdout] | [INFO] [stdout] 1029 | &vec![moveto(-1010.0, -0.00020)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(-1010.0, -0.00020)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1036:13 [INFO] [stdout] | [INFO] [stdout] 1036 | &vec![moveto(100.0, 0.5)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(100.0, 0.5)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1043:13 [INFO] [stdout] | [INFO] [stdout] 1043 | &vec![moveto(0.01, 0.5)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(0.01, 0.5)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1050:13 [INFO] [stdout] | [INFO] [stdout] 1050 | &vec![moveto(100.0, 0.5)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(100.0, 0.5)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1060:13 [INFO] [stdout] | [INFO] [stdout] 1060 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1067:13 [INFO] [stdout] | [INFO] [stdout] 1067 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1074:13 [INFO] [stdout] | [INFO] [stdout] 1074 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1081:13 [INFO] [stdout] | [INFO] [stdout] 1081 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1088:13 [INFO] [stdout] | [INFO] [stdout] 1088 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1095:13 [INFO] [stdout] | [INFO] [stdout] 1095 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1102:13 [INFO] [stdout] | [INFO] [stdout] 1102 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1112:13 [INFO] [stdout] | [INFO] [stdout] 1112 | &vec![moveto(10.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1119:13 [INFO] [stdout] | [INFO] [stdout] 1119 | &vec![moveto(-10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(-10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1126:13 [INFO] [stdout] | [INFO] [stdout] 1126 | &vec![moveto(0.10, 0.20)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(0.10, 0.20)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1133:13 [INFO] [stdout] | [INFO] [stdout] 1133 | &vec![moveto(-0.10, -0.20)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(-0.10, -0.20)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1140:13 [INFO] [stdout] | [INFO] [stdout] 1140 | &vec![moveto(-0.10, -0.20)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(-0.10, -0.20)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1147:13 [INFO] [stdout] | [INFO] [stdout] 1147 | &vec![moveto(0.10, 0.20)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(0.10, 0.20)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1154:13 [INFO] [stdout] | [INFO] [stdout] 1154 | &vec![moveto(1.0, 0.000020)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(1.0, 0.000020)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1161:13 [INFO] [stdout] | [INFO] [stdout] 1161 | &vec![moveto(-0.0010, -0.20)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(-0.0010, -0.20)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1168:13 [INFO] [stdout] | [INFO] [stdout] 1168 | &vec![moveto(1010.0, -200.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(1010.0, -200.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1175:13 [INFO] [stdout] | [INFO] [stdout] 1175 | &vec![moveto(-1010.0, -0.00020)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(-1010.0, -0.00020)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1185:13 [INFO] [stdout] | [INFO] [stdout] 1185 | &vec![moveto(10.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1192:13 [INFO] [stdout] | [INFO] [stdout] 1192 | &vec![moveto(10.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1199:13 [INFO] [stdout] | [INFO] [stdout] 1199 | &vec![moveto(10.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1206:13 [INFO] [stdout] | [INFO] [stdout] 1206 | &vec![moveto(10.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1216:13 [INFO] [stdout] | [INFO] [stdout] 1216 | &vec![moveto(10.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1226:13 [INFO] [stdout] | [INFO] [stdout] 1226 | &vec![moveto(10.0, 20.0), lineto(30.0, 40.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(30.0, 40.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1233:13 [INFO] [stdout] | [INFO] [stdout] 1233 | &vec![moveto(10.0, 20.0), lineto(30.0, 40.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(30.0, 40.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1240:13 [INFO] [stdout] | [INFO] [stdout] 1240 | &vec![moveto(0.1, -2.0), lineto(300.0, -4.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(0.1, -2.0), lineto(300.0, -4.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1250:13 [INFO] [stdout] | [INFO] [stdout] 1250 | &vec![moveto(10.0, 20.0), lineto(40.0, 60.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(40.0, 60.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1261:13 [INFO] [stdout] | [INFO] [stdout] 1261 | / &vec![moveto(46.0, 447.0), lineto(46.0, 447.5), lineto(45.0, 447.5), [INFO] [stdout] 1262 | | lineto(44.0, 447.5), lineto(44.0, 448.5), lineto(44.0, 460.5)], [INFO] [stdout] | |________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1261 ~ &[moveto(46.0, 447.0), lineto(46.0, 447.5), lineto(45.0, 447.5), [INFO] [stdout] 1262 ~ lineto(44.0, 447.5), lineto(44.0, 448.5), lineto(44.0, 460.5)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1272:13 [INFO] [stdout] | [INFO] [stdout] 1272 | &vec![moveto(10.0, 20.0), lineto(30.0, 40.0), lineto(50.0, 60.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(30.0, 40.0), lineto(50.0, 60.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1282:13 [INFO] [stdout] | [INFO] [stdout] 1282 | &vec![moveto(10.0, 20.0), lineto(40.0, 60.0), lineto(90.0, 120.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(40.0, 60.0), lineto(90.0, 120.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1292:13 [INFO] [stdout] | [INFO] [stdout] 1292 | &vec![moveto(10.0, 20.0), moveto(30.0, 40.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), moveto(30.0, 40.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1302:13 [INFO] [stdout] | [INFO] [stdout] 1302 | &vec![moveto(10.0, 20.0), moveto(40.0, 60.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), moveto(40.0, 60.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1312:13 [INFO] [stdout] | [INFO] [stdout] 1312 | &vec![moveto(10.0, 20.0), lineto(40.0, 60.0), moveto(90.0, 120.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(40.0, 60.0), moveto(90.0, 120.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1322:13 [INFO] [stdout] | [INFO] [stdout] 1322 | &vec![moveto(10.0, 20.0), lineto(30.0, 40.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(30.0, 40.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1332:13 [INFO] [stdout] | [INFO] [stdout] 1332 | &vec![moveto(10.0, 20.0), lineto(40.0, 60.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(40.0, 60.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1342:13 [INFO] [stdout] | [INFO] [stdout] 1342 | / &vec![ [INFO] [stdout] 1343 | | moveto(10.0, 20.0), [INFO] [stdout] 1344 | | lineto(40.0, 60.0), [INFO] [stdout] 1345 | | lineto(70.0, 100.0), [INFO] [stdout] 1346 | | lineto(120.0, 160.0), [INFO] [stdout] 1347 | | lineto(200.0, 300.0), [INFO] [stdout] 1348 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1342 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1343 + lineto(40.0, 60.0), [INFO] [stdout] 1344 + lineto(70.0, 100.0), [INFO] [stdout] 1345 + lineto(120.0, 160.0), [INFO] [stdout] 1346 ~ lineto(200.0, 300.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1358:13 [INFO] [stdout] | [INFO] [stdout] 1358 | &vec![moveto(10.0, 20.0), lineto(30.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(30.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1365:13 [INFO] [stdout] | [INFO] [stdout] 1365 | &vec![moveto(10.0, 20.0), lineto(30.0, 20.0), lineto(40.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(30.0, 20.0), lineto(40.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1372:13 [INFO] [stdout] | [INFO] [stdout] 1372 | / &vec![ [INFO] [stdout] 1373 | | moveto(10.0, 20.0), [INFO] [stdout] 1374 | | lineto(30.0, 20.0), [INFO] [stdout] 1375 | | lineto(40.0, 20.0), [INFO] [stdout] 1376 | | lineto(-50.0, 20.0), [INFO] [stdout] 1377 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1372 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1373 + lineto(30.0, 20.0), [INFO] [stdout] 1374 + lineto(40.0, 20.0), [INFO] [stdout] 1375 ~ lineto(-50.0, 20.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1384:13 [INFO] [stdout] | [INFO] [stdout] 1384 | / &vec![ [INFO] [stdout] 1385 | | moveto(10.0, 20.0), [INFO] [stdout] 1386 | | lineto(40.0, 20.0), [INFO] [stdout] 1387 | | lineto(80.0, 20.0), [INFO] [stdout] 1388 | | lineto(30.0, 20.0), [INFO] [stdout] 1389 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1384 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1385 + lineto(40.0, 20.0), [INFO] [stdout] 1386 + lineto(80.0, 20.0), [INFO] [stdout] 1387 ~ lineto(30.0, 20.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1399:13 [INFO] [stdout] | [INFO] [stdout] 1399 | &vec![moveto(10.0, 20.0), lineto(10.0, 30.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(10.0, 30.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1406:13 [INFO] [stdout] | [INFO] [stdout] 1406 | &vec![moveto(10.0, 20.0), lineto(10.0, 30.0), lineto(10.0, 40.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), lineto(10.0, 30.0), lineto(10.0, 40.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1413:13 [INFO] [stdout] | [INFO] [stdout] 1413 | / &vec![ [INFO] [stdout] 1414 | | moveto(10.0, 20.0), [INFO] [stdout] 1415 | | lineto(10.0, 30.0), [INFO] [stdout] 1416 | | lineto(10.0, 40.0), [INFO] [stdout] 1417 | | lineto(10.0, -50.0), [INFO] [stdout] 1418 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1413 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1414 + lineto(10.0, 30.0), [INFO] [stdout] 1415 + lineto(10.0, 40.0), [INFO] [stdout] 1416 ~ lineto(10.0, -50.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1425:13 [INFO] [stdout] | [INFO] [stdout] 1425 | / &vec![ [INFO] [stdout] 1426 | | moveto(10.0, 20.0), [INFO] [stdout] 1427 | | lineto(10.0, 50.0), [INFO] [stdout] 1428 | | lineto(10.0, 90.0), [INFO] [stdout] 1429 | | lineto(10.0, 40.0), [INFO] [stdout] 1430 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1425 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1426 + lineto(10.0, 50.0), [INFO] [stdout] 1427 + lineto(10.0, 90.0), [INFO] [stdout] 1428 ~ lineto(10.0, 40.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1440:13 [INFO] [stdout] | [INFO] [stdout] 1440 | / &vec![ [INFO] [stdout] 1441 | | moveto(10.0, 20.0), [INFO] [stdout] 1442 | | curveto(30.0, 40.0, 50.0, 60.0, -70.0, 80.0), [INFO] [stdout] 1443 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1440 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1441 ~ curveto(30.0, 40.0, 50.0, 60.0, -70.0, 80.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1450:13 [INFO] [stdout] | [INFO] [stdout] 1450 | / &vec![ [INFO] [stdout] 1451 | | moveto(10.0, 20.0), [INFO] [stdout] 1452 | | curveto(30.0, 40.0, 50.0, 60.0, -70.0, 80.0), [INFO] [stdout] 1453 | | curveto(90.0, 100.0, 110.0, 120.0, 130.0, 140.0), [INFO] [stdout] 1454 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1450 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1451 + curveto(30.0, 40.0, 50.0, 60.0, -70.0, 80.0), [INFO] [stdout] 1452 ~ curveto(90.0, 100.0, 110.0, 120.0, 130.0, 140.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1461:13 [INFO] [stdout] | [INFO] [stdout] 1461 | / &vec![ [INFO] [stdout] 1462 | | moveto(10.0, 20.0), [INFO] [stdout] 1463 | | curveto(40.0, 60.0, 60.0, 80.0, -60.0, 100.0), [INFO] [stdout] 1464 | | curveto(30.0, 200.0, 50.0, 220.0, 70.0, 240.0), [INFO] [stdout] 1465 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1461 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1462 + curveto(40.0, 60.0, 60.0, 80.0, -60.0, 100.0), [INFO] [stdout] 1463 ~ curveto(30.0, 200.0, 50.0, 220.0, 70.0, 240.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1472:13 [INFO] [stdout] | [INFO] [stdout] 1472 | / &vec![ [INFO] [stdout] 1473 | | moveto(10.0, 20.0), [INFO] [stdout] 1474 | | curveto(40.0, 60.0, 60.0, 80.0, -60.0, 100.0), [INFO] [stdout] 1475 | | curveto(30.0, 200.0, 50.0, 220.0, 70.0, 240.0), [INFO] [stdout] 1476 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1472 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1473 + curveto(40.0, 60.0, 60.0, 80.0, -60.0, 100.0), [INFO] [stdout] 1474 ~ curveto(30.0, 200.0, 50.0, 220.0, 70.0, 240.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1486:13 [INFO] [stdout] | [INFO] [stdout] 1486 | / &vec![ [INFO] [stdout] 1487 | | moveto(10.0, 20.0), [INFO] [stdout] 1488 | | curveto(10.0, 20.0, 30.0, 40.0, -50.0, 60.0), [INFO] [stdout] 1489 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1486 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1487 ~ curveto(10.0, 20.0, 30.0, 40.0, -50.0, 60.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1496:13 [INFO] [stdout] | [INFO] [stdout] 1496 | / &vec![ [INFO] [stdout] 1497 | | moveto(10.0, 20.0), [INFO] [stdout] 1498 | | curveto(10.0, 20.0, 30.0, 40.0, 50.0, 60.0), [INFO] [stdout] 1499 | | curveto(70.0, 80.0, -70.0, 80.0, 90.0, 100.0), [INFO] [stdout] 1500 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1496 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1497 + curveto(10.0, 20.0, 30.0, 40.0, 50.0, 60.0), [INFO] [stdout] 1498 ~ curveto(70.0, 80.0, -70.0, 80.0, 90.0, 100.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1507:13 [INFO] [stdout] | [INFO] [stdout] 1507 | / &vec![ [INFO] [stdout] 1508 | | moveto(10.0, 20.0), [INFO] [stdout] 1509 | | curveto(10.0, 20.0, 40.0, 60.0, 60.0, 80.0), [INFO] [stdout] 1510 | | curveto(80.0, 100.0, -10.0, 160.0, 150.0, 180.0), [INFO] [stdout] 1511 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1507 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1508 + curveto(10.0, 20.0, 40.0, 60.0, 60.0, 80.0), [INFO] [stdout] 1509 ~ curveto(80.0, 100.0, -10.0, 160.0, 150.0, 180.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1521:13 [INFO] [stdout] | [INFO] [stdout] 1521 | / &vec![ [INFO] [stdout] 1522 | | moveto(10.0, 20.0), [INFO] [stdout] 1523 | | curveto( [INFO] [stdout] 1524 | | 70.0 / 3.0, [INFO] [stdout] ... | [INFO] [stdout] 1530 | | ), [INFO] [stdout] 1531 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1521 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1522 + curveto( [INFO] [stdout] 1523 + 70.0 / 3.0, [INFO] [stdout] 1524 + 100.0 / 3.0, [INFO] [stdout] 1525 + 110.0 / 3.0, [INFO] [stdout] 1526 + 140.0 / 3.0, [INFO] [stdout] 1527 + 50.0, [INFO] [stdout] 1528 + 60.0, [INFO] [stdout] 1529 ~ )], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1538:13 [INFO] [stdout] | [INFO] [stdout] 1538 | / &vec![ [INFO] [stdout] 1539 | | moveto(10.0, 20.0), [INFO] [stdout] 1540 | | curveto( [INFO] [stdout] 1541 | | 70.0 / 3.0, [INFO] [stdout] ... | [INFO] [stdout] 1555 | | ), [INFO] [stdout] 1556 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1538 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1539 + curveto( [INFO] [stdout] 1540 + 70.0 / 3.0, [INFO] [stdout] 1541 + 100.0 / 3.0, [INFO] [stdout] 1542 + 110.0 / 3.0, [INFO] [stdout] 1543 + 140.0 / 3.0, [INFO] [stdout] 1544 + 50.0, [INFO] [stdout] 1545 + 60.0, [INFO] [stdout] 1546 + ), [INFO] [stdout] 1547 + curveto( [INFO] [stdout] 1548 + 190.0 / 3.0, [INFO] [stdout] 1549 + 220.0 / 3.0, [INFO] [stdout] 1550 + 50.0 / 3.0, [INFO] [stdout] 1551 + 260.0 / 3.0, [INFO] [stdout] 1552 + -90.0, [INFO] [stdout] 1553 + 100.0, [INFO] [stdout] 1554 ~ )], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1563:13 [INFO] [stdout] | [INFO] [stdout] 1563 | / &vec![ [INFO] [stdout] 1564 | | moveto(10.0, 20.0), [INFO] [stdout] 1565 | | curveto( [INFO] [stdout] 1566 | | 90.0 / 3.0, [INFO] [stdout] ... | [INFO] [stdout] 1580 | | ), [INFO] [stdout] 1581 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1563 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1564 + curveto( [INFO] [stdout] 1565 + 90.0 / 3.0, [INFO] [stdout] 1566 + 140.0 / 3.0, [INFO] [stdout] 1567 + 140.0 / 3.0, [INFO] [stdout] 1568 + 200.0 / 3.0, [INFO] [stdout] 1569 + 60.0, [INFO] [stdout] 1570 + 80.0, [INFO] [stdout] 1571 + ), [INFO] [stdout] 1572 + curveto( [INFO] [stdout] 1573 + 40.0 / 3.0, [INFO] [stdout] 1574 + 400.0 / 3.0, [INFO] [stdout] 1575 + 130.0 / 3.0, [INFO] [stdout] 1576 + 500.0 / 3.0, [INFO] [stdout] 1577 + 150.0, [INFO] [stdout] 1578 + 180.0, [INFO] [stdout] 1579 ~ )], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1591:13 [INFO] [stdout] | [INFO] [stdout] 1591 | / &vec![ [INFO] [stdout] 1592 | | moveto(10.0, 20.0), [INFO] [stdout] 1593 | | curveto(10.0, 20.0, 50.0 / 3.0, 80.0 / 3.0, 30.0, 40.0), [INFO] [stdout] 1594 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1591 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1592 ~ curveto(10.0, 20.0, 50.0 / 3.0, 80.0 / 3.0, 30.0, 40.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1601:13 [INFO] [stdout] | [INFO] [stdout] 1601 | / &vec![ [INFO] [stdout] 1602 | | moveto(10.0, 20.0), [INFO] [stdout] 1603 | | curveto( [INFO] [stdout] 1604 | | 70.0 / 3.0, [INFO] [stdout] ... | [INFO] [stdout] 1611 | | curveto(190.0 / 3.0, 220.0 / 3.0, 70.0, 80.0, 70.0, 80.0), [INFO] [stdout] 1612 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1601 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1602 + curveto( [INFO] [stdout] 1603 + 70.0 / 3.0, [INFO] [stdout] 1604 + 100.0 / 3.0, [INFO] [stdout] 1605 + 110.0 / 3.0, [INFO] [stdout] 1606 + 140.0 / 3.0, [INFO] [stdout] 1607 + 50.0, [INFO] [stdout] 1608 + 60.0, [INFO] [stdout] 1609 + ), [INFO] [stdout] 1610 ~ curveto(190.0 / 3.0, 220.0 / 3.0, 70.0, 80.0, 70.0, 80.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1619:13 [INFO] [stdout] | [INFO] [stdout] 1619 | / &vec![ [INFO] [stdout] 1620 | | moveto(10.0, 20.0), [INFO] [stdout] 1621 | | curveto( [INFO] [stdout] 1622 | | 90.0 / 3.0, [INFO] [stdout] ... | [INFO] [stdout] 1629 | | curveto(220.0 / 3.0, 280.0 / 3.0, 50.0, 120.0, -10.0, 160.0), [INFO] [stdout] 1630 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1619 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1620 + curveto( [INFO] [stdout] 1621 + 90.0 / 3.0, [INFO] [stdout] 1622 + 140.0 / 3.0, [INFO] [stdout] 1623 + 140.0 / 3.0, [INFO] [stdout] 1624 + 200.0 / 3.0, [INFO] [stdout] 1625 + 60.0, [INFO] [stdout] 1626 + 80.0, [INFO] [stdout] 1627 + ), [INFO] [stdout] 1628 ~ curveto(220.0 / 3.0, 280.0 / 3.0, 50.0, 120.0, -10.0, 160.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1640:21 [INFO] [stdout] | [INFO] [stdout] 1640 | / &vec![moveto(1.0, 2.0), [INFO] [stdout] 1641 | | arc(1.0, 2.0, 3.0, false, false, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | |_______________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1640 ~ &[moveto(1.0, 2.0), [INFO] [stdout] 1641 ~ arc(1.0, 2.0, 3.0, false, false, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1646:21 [INFO] [stdout] | [INFO] [stdout] 1646 | / &vec![moveto(1.0, 2.0), [INFO] [stdout] 1647 | | arc(1.0, 2.0, 3.0, false, true, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | |______________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1646 ~ &[moveto(1.0, 2.0), [INFO] [stdout] 1647 ~ arc(1.0, 2.0, 3.0, false, true, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1652:21 [INFO] [stdout] | [INFO] [stdout] 1652 | / &vec![moveto(1.0, 2.0), [INFO] [stdout] 1653 | | arc(1.0, 2.0, 3.0, true, false, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | |______________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1652 ~ &[moveto(1.0, 2.0), [INFO] [stdout] 1653 ~ arc(1.0, 2.0, 3.0, true, false, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1657:21 [INFO] [stdout] | [INFO] [stdout] 1657 | / &vec![moveto(1.0, 2.0), [INFO] [stdout] 1658 | | arc(1.0, 2.0, 3.0, true, true, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | |_____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1657 ~ &[moveto(1.0, 2.0), [INFO] [stdout] 1658 ~ arc(1.0, 2.0, 3.0, true, true, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1662:21 [INFO] [stdout] | [INFO] [stdout] 1662 | / &vec![moveto(1.0, 2.0), [INFO] [stdout] 1663 | | arc(1.0, 2.0, 3.0, true, true, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | |_____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1662 ~ &[moveto(1.0, 2.0), [INFO] [stdout] 1663 ~ arc(1.0, 2.0, 3.0, true, true, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1667:21 [INFO] [stdout] | [INFO] [stdout] 1667 | / &vec![moveto(1.0, 2.0), [INFO] [stdout] 1668 | | arc(1.0, 2.0, 3.0, true, true, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | |_____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1667 ~ &[moveto(1.0, 2.0), [INFO] [stdout] 1668 ~ arc(1.0, 2.0, 3.0, true, true, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1672:21 [INFO] [stdout] | [INFO] [stdout] 1672 | / &vec![moveto(1.0, 2.0), [INFO] [stdout] 1673 | | arc(1.0, 2.0, 3.0, true, true, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | |_____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1672 ~ &[moveto(1.0, 2.0), [INFO] [stdout] 1673 ~ arc(1.0, 2.0, 3.0, true, true, 1.0, 2.0, 6.0, 7.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1679:37 [INFO] [stdout] | [INFO] [stdout] 1679 | test_parser("M10 20 Z", "", &vec![moveto(10.0, 20.0), closepath()], None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 20.0), closepath()]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1684:13 [INFO] [stdout] | [INFO] [stdout] 1684 | / &vec![ [INFO] [stdout] 1685 | | moveto(10.0, 20.0), [INFO] [stdout] 1686 | | lineto(40.0, 60.0), [INFO] [stdout] 1687 | | moveto(90.0, 120.0), [INFO] [stdout] ... | [INFO] [stdout] 1690 | | closepath(), [INFO] [stdout] 1691 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 1684 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 1685 + lineto(40.0, 60.0), [INFO] [stdout] 1686 + moveto(90.0, 120.0), [INFO] [stdout] 1687 + lineto(160.0, 200.0), [INFO] [stdout] 1688 + lineto(250.0, 300.0), [INFO] [stdout] 1689 ~ closepath()], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1701:13 [INFO] [stdout] | [INFO] [stdout] 1701 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1711:13 [INFO] [stdout] | [INFO] [stdout] 1711 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1718:13 [INFO] [stdout] | [INFO] [stdout] 1718 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1725:13 [INFO] [stdout] | [INFO] [stdout] 1725 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1732:13 [INFO] [stdout] | [INFO] [stdout] 1732 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1739:13 [INFO] [stdout] | [INFO] [stdout] 1739 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1746:13 [INFO] [stdout] | [INFO] [stdout] 1746 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1756:13 [INFO] [stdout] | [INFO] [stdout] 1756 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1763:13 [INFO] [stdout] | [INFO] [stdout] 1763 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1770:13 [INFO] [stdout] | [INFO] [stdout] 1770 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1780:13 [INFO] [stdout] | [INFO] [stdout] 1780 | &vec![moveto(10.0, -20.0), closepath()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0), closepath()]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1787:13 [INFO] [stdout] | [INFO] [stdout] 1787 | &vec![moveto(10.0, -20.0), closepath()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0), closepath()]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1797:13 [INFO] [stdout] | [INFO] [stdout] 1797 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1804:13 [INFO] [stdout] | [INFO] [stdout] 1804 | &vec![moveto(10.0, 10.0), lineto(20.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 10.0), lineto(20.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1811:13 [INFO] [stdout] | [INFO] [stdout] 1811 | &vec![moveto(10.0, 10.0), lineto(20.0, 20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, 10.0), lineto(20.0, 20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1821:13 [INFO] [stdout] | [INFO] [stdout] 1821 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1828:13 [INFO] [stdout] | [INFO] [stdout] 1828 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1835:13 [INFO] [stdout] | [INFO] [stdout] 1835 | &vec![moveto(10.0, -20.0), lineto(30.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0), lineto(30.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1845:13 [INFO] [stdout] | [INFO] [stdout] 1845 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1852:13 [INFO] [stdout] | [INFO] [stdout] 1852 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1859:13 [INFO] [stdout] | [INFO] [stdout] 1859 | &vec![moveto(10.0, -20.0), lineto(10.0, 10.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0), lineto(10.0, 10.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1869:13 [INFO] [stdout] | [INFO] [stdout] 1869 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1875:13 [INFO] [stdout] | [INFO] [stdout] 1875 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1882:13 [INFO] [stdout] | [INFO] [stdout] 1882 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1888:13 [INFO] [stdout] | [INFO] [stdout] 1888 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1895:13 [INFO] [stdout] | [INFO] [stdout] 1895 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1901:13 [INFO] [stdout] | [INFO] [stdout] 1901 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1907:13 [INFO] [stdout] | [INFO] [stdout] 1907 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1914:13 [INFO] [stdout] | [INFO] [stdout] 1914 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1920:13 [INFO] [stdout] | [INFO] [stdout] 1920 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1926:13 [INFO] [stdout] | [INFO] [stdout] 1926 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1933:13 [INFO] [stdout] | [INFO] [stdout] 1933 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1939:13 [INFO] [stdout] | [INFO] [stdout] 1939 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1945:13 [INFO] [stdout] | [INFO] [stdout] 1945 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1952:13 [INFO] [stdout] | [INFO] [stdout] 1952 | &vec![moveto(10.0, -20.0), curveto(1.0, 2.0, 3.0, 4.0, 5.0, 6.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0), curveto(1.0, 2.0, 3.0, 4.0, 5.0, 6.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1962:13 [INFO] [stdout] | [INFO] [stdout] 1962 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1968:13 [INFO] [stdout] | [INFO] [stdout] 1968 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1975:13 [INFO] [stdout] | [INFO] [stdout] 1975 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1981:13 [INFO] [stdout] | [INFO] [stdout] 1981 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1988:13 [INFO] [stdout] | [INFO] [stdout] 1988 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:1994:13 [INFO] [stdout] | [INFO] [stdout] 1994 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2000:13 [INFO] [stdout] | [INFO] [stdout] 2000 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2007:13 [INFO] [stdout] | [INFO] [stdout] 2007 | / &vec![ [INFO] [stdout] 2008 | | moveto(10.0, -20.0), [INFO] [stdout] 2009 | | curveto(10.0, -20.0, 1.0, 2.0, 3.0, 4.0), [INFO] [stdout] 2010 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 2007 ~ &[moveto(10.0, -20.0), [INFO] [stdout] 2008 ~ curveto(10.0, -20.0, 1.0, 2.0, 3.0, 4.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2020:13 [INFO] [stdout] | [INFO] [stdout] 2020 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2026:13 [INFO] [stdout] | [INFO] [stdout] 2026 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2033:13 [INFO] [stdout] | [INFO] [stdout] 2033 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2039:13 [INFO] [stdout] | [INFO] [stdout] 2039 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2046:13 [INFO] [stdout] | [INFO] [stdout] 2046 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2052:13 [INFO] [stdout] | [INFO] [stdout] 2052 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2058:13 [INFO] [stdout] | [INFO] [stdout] 2058 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2065:13 [INFO] [stdout] | [INFO] [stdout] 2065 | / &vec![ [INFO] [stdout] 2066 | | moveto(10.0, 20.0), [INFO] [stdout] 2067 | | curveto( [INFO] [stdout] 2068 | | 70.0 / 3.0, [INFO] [stdout] ... | [INFO] [stdout] 2074 | | ), [INFO] [stdout] 2075 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 2065 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 2066 + curveto( [INFO] [stdout] 2067 + 70.0 / 3.0, [INFO] [stdout] 2068 + 100.0 / 3.0, [INFO] [stdout] 2069 + 110.0 / 3.0, [INFO] [stdout] 2070 + 140.0 / 3.0, [INFO] [stdout] 2071 + 50.0, [INFO] [stdout] 2072 + 60.0, [INFO] [stdout] 2073 ~ )], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2085:13 [INFO] [stdout] | [INFO] [stdout] 2085 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2091:13 [INFO] [stdout] | [INFO] [stdout] 2091 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2098:13 [INFO] [stdout] | [INFO] [stdout] 2098 | / &vec![ [INFO] [stdout] 2099 | | moveto(10.0, 20.0), [INFO] [stdout] 2100 | | curveto(10.0, 20.0, 50.0 / 3.0, 80.0 / 3.0, 30.0, 40.0), [INFO] [stdout] 2101 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 2098 ~ &[moveto(10.0, 20.0), [INFO] [stdout] 2099 ~ curveto(10.0, 20.0, 50.0 / 3.0, 80.0 / 3.0, 30.0, 40.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2111:13 [INFO] [stdout] | [INFO] [stdout] 2111 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2117:13 [INFO] [stdout] | [INFO] [stdout] 2117 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2124:13 [INFO] [stdout] | [INFO] [stdout] 2124 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2130:13 [INFO] [stdout] | [INFO] [stdout] 2130 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2137:13 [INFO] [stdout] | [INFO] [stdout] 2137 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2143:13 [INFO] [stdout] | [INFO] [stdout] 2143 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2150:13 [INFO] [stdout] | [INFO] [stdout] 2150 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2157:13 [INFO] [stdout] | [INFO] [stdout] 2157 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2163:13 [INFO] [stdout] | [INFO] [stdout] 2163 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2170:13 [INFO] [stdout] | [INFO] [stdout] 2170 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2177:13 [INFO] [stdout] | [INFO] [stdout] 2177 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2183:13 [INFO] [stdout] | [INFO] [stdout] 2183 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2190:13 [INFO] [stdout] | [INFO] [stdout] 2190 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2196:13 [INFO] [stdout] | [INFO] [stdout] 2196 | &vec![moveto(10.0, -20.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(10.0, -20.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2203:21 [INFO] [stdout] | [INFO] [stdout] 2203 | &vec![moveto(1.0, 2.0)], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[moveto(1.0, 2.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2208:21 [INFO] [stdout] | [INFO] [stdout] 2208 | / &vec![moveto(10.0, -20.0), [INFO] [stdout] 2209 | | arc(1.0, 2.0, 3.0, true, true, 10.0, -20.0, 6.0, 7.0)], [INFO] [stdout] | |________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 2208 ~ &[moveto(10.0, -20.0), [INFO] [stdout] 2209 ~ arc(1.0, 2.0, 3.0, true, true, 10.0, -20.0, 6.0, 7.0)], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/path_parser.rs:2219:13 [INFO] [stdout] | [INFO] [stdout] 2219 | &vec![], [INFO] [stdout] | ^^^^^^^ help: you can use a slice directly: `&[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/xml/xml2_load.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | Box::from_raw(ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` implied by `#[warn(unused)]` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 371 | let _ = Box::from_raw(ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Details` is never used [INFO] [stdout] --> tests/src/predicates/svg.rs:108:7 [INFO] [stdout] | [INFO] [stdout] 108 | trait Details { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Result.and_then(|x| Ok(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> tests/src/api.rs:67:23 [INFO] [stdout] | [INFO] [stdout] 67 | let output_surf = res [INFO] [stdout] | _______________________^ [INFO] [stdout] 68 | | .and_then(|_| Ok(SharedImageSurface::wrap(output, SurfaceType::SRgb).unwrap())) [INFO] [stdout] | |_______________________________________________________________________________________^ help: try: `res.map(|_| SharedImageSurface::wrap(output, SurfaceType::SRgb).unwrap())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] = note: `#[warn(clippy::bind_instead_of_map)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Result.and_then(|x| Ok(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> tests/src/api.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | let output_surf = res [INFO] [stdout] | _______________________^ [INFO] [stdout] 150 | | .and_then(|_| Ok(SharedImageSurface::wrap(output, SurfaceType::SRgb).unwrap())) [INFO] [stdout] | |_______________________________________________________________________________________^ help: try: `res.map(|_| SharedImageSurface::wrap(output, SurfaceType::SRgb).unwrap())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Result.and_then(|x| Ok(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> tests/src/api.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | let output_surf = res [INFO] [stdout] | _______________________^ [INFO] [stdout] 206 | | .and_then(|_| Ok(SharedImageSurface::wrap(output, SurfaceType::SRgb).unwrap())) [INFO] [stdout] | |_______________________________________________________________________________________^ help: try: `res.map(|_| SharedImageSurface::wrap(output, SurfaceType::SRgb).unwrap())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/src/bugs.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | &svg, [INFO] [stdout] | ^^^^ help: change this to: `svg` [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: methods called `new` usually return `Self` [INFO] [stdout] --> tests/src/cmdline/rsvg_convert.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / fn new() -> Command { [INFO] [stdout] 36 | | Command::cargo_bin("rsvg-convert").unwrap() [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> tests/src/geometries.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Ok(serde_json::from_str(&contents).context(format!("could not parse JSON from {:?}", path))?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] = note: `#[warn(clippy::needless_question_mark)]` on by default [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 49 - Ok(serde_json::from_str(&contents).context(format!("could not parse JSON from {:?}", path))?) [INFO] [stdout] 49 + serde_json::from_str(&contents).context(format!("could not parse JSON from {:?}", path)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function call inside of `expect` [INFO] [stdout] --> tests/src/geometries.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | .expect(&format!("getting geometry for {}", id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("getting geometry for {}", id))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call [INFO] [stdout] = note: `#[warn(clippy::expect_fun_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> tests/src/predicates/pdf.rs:168:41 [INFO] [stdout] | [INFO] [stdout] 168 | Detail::PageSize(d, idx) => doc.get_page_size(*idx).map_or(false, |dim| dim == *d), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 168 - Detail::PageSize(d, idx) => doc.get_page_size(*idx).map_or(false, |dim| dim == *d), [INFO] [stdout] 168 + Detail::PageSize(d, idx) => doc.get_page_size(*idx).is_some_and(|dim| dim == *d), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> tests/src/predicates/pdf.rs:169:40 [INFO] [stdout] | [INFO] [stdout] 169 | Detail::CreationDate(d) => doc.get_creation_date().map_or(false, |date| date == *d), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] help: use a standard comparison instead [INFO] [stdout] | [INFO] [stdout] 169 - Detail::CreationDate(d) => doc.get_creation_date().map_or(false, |date| date == *d), [INFO] [stdout] 169 + Detail::CreationDate(d) => doc.get_creation_date() == Some(*d), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/src/predicates/pdf.rs:170:58 [INFO] [stdout] | [INFO] [stdout] 170 | Detail::Link(link) => document_has_link(doc, &link), [INFO] [stdout] | ^^^^^ help: change this to: `link` [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/src/predicates/pdf.rs:171:58 [INFO] [stdout] | [INFO] [stdout] 171 | Detail::Text(text) => document_has_text(doc, &text), [INFO] [stdout] | ^^^^^ help: change this to: `text` [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: iterating on a map's values [INFO] [stdout] --> tests/src/predicates/pdf.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | / document [INFO] [stdout] 325 | | .objects [INFO] [stdout] 326 | | .iter() [INFO] [stdout] 327 | | .map(|(_obj_id, object)| object) [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map [INFO] [stdout] = note: `#[warn(clippy::iter_kv_map)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 324 ~ document [INFO] [stdout] 325 + .objects.values() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/src/predicates/png.rs:84:42 [INFO] [stdout] | [INFO] [stdout] 84 | Ok(reader) => self.eval_info(&reader.info()), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `reader.info()` [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/src/predicates/png.rs:129:45 [INFO] [stdout] | [INFO] [stdout] 129 | if let Ok(diff) = reference.compare(&surface) { [INFO] [stdout] | ^^^^^^^^ help: change this to: `surface` [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/src/predicates/png.rs:142:38 [INFO] [stdout] | [INFO] [stdout] 142 | let diff = self.diff_surface(&surface); [INFO] [stdout] | ^^^^^^^^ help: change this to: `surface` [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: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> tests/src/primitive_geometries.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | Ok(serde_json::from_str(&contents).context(format!("could not parse JSON from {:?}", path))?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 69 - Ok(serde_json::from_str(&contents).context(format!("could not parse JSON from {:?}", path))?) [INFO] [stdout] 69 + serde_json::from_str(&contents).context(format!("could not parse JSON from {:?}", path)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function call inside of `expect` [INFO] [stdout] --> tests/src/primitive_geometries.rs:134:14 [INFO] [stdout] | [INFO] [stdout] 134 | .expect(&format!("getting geometry for {}", id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("getting geometry for {}", id))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `to_owned` call clones the `Cow<'_, str>` itself and does not cause its contents to become owned [INFO] [stdout] --> tests/src/reference.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 45 | let path_base_name = path.file_stem().unwrap().to_string_lossy().to_owned(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_to_owned [INFO] [stdout] = note: `#[warn(clippy::suspicious_to_owned)]` on by default [INFO] [stdout] help: depending on intent, either make the `Cow` an `Owned` variant [INFO] [stdout] | [INFO] [stdout] 45 | let path_base_name = path.file_stem().unwrap().to_string_lossy().into_owned(); [INFO] [stdout] | ++ [INFO] [stdout] help: or clone the `Cow` itself [INFO] [stdout] | [INFO] [stdout] 45 - let path_base_name = path.file_stem().unwrap().to_string_lossy().to_owned(); [INFO] [stdout] 45 + let path_base_name = path.file_stem().unwrap().to_string_lossy().clone(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> tests/src/reference.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | fn reference_path(path: &PathBuf) -> PathBuf { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 94 - fn reference_path(path: &PathBuf) -> PathBuf { [INFO] [stdout] 94 + fn reference_path(path: &Path) -> PathBuf { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/src/reference.rs:112:27 [INFO] [stdout] | [INFO] [stdout] 112 | cr.set_source_surface(&source, f64::from(-x), f64::from(-y)) [INFO] [stdout] | ^^^^^^^ help: change this to: `source` [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: match expression looks like `matches!` macro [INFO] [stdout] --> tests/src/reference.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | / match l.unit { [INFO] [stdout] 182 | | Percent | Px | In | Cm | Mm | Pt | Pc => true, [INFO] [stdout] 183 | | _ => false, [INFO] [stdout] 184 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 181 - match l.unit { [INFO] [stdout] 182 - Percent | Px | In | Cm | Mm | Pt | Pc => true, [INFO] [stdout] 183 - _ => false, [INFO] [stdout] 184 - } [INFO] [stdout] 181 + matches!(l.unit, Percent | Px | In | Cm | Mm | Pt | Pc) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tests/src/reference_utils.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | let file = File::open(path).map_err(|e| cairo::IoError::Io(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `cairo::IoError::Io` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> tests/src/reference_utils.rs:103:34 [INFO] [stdout] | [INFO] [stdout] 103 | let path = output_dir().join(&format!("{}-{}.png", output_base_name, suffix)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}-{}.png", output_base_name, suffix)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 12s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: criterion v0.3.5, xml5ever v0.16.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "eef94007e03cdbfa00b0570c0a8519b0450b464b2942ac9ef46fbe697bc94044", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eef94007e03cdbfa00b0570c0a8519b0450b464b2942ac9ef46fbe697bc94044", kill_on_drop: false }` [INFO] [stdout] eef94007e03cdbfa00b0570c0a8519b0450b464b2942ac9ef46fbe697bc94044