[INFO] cloning repository https://github.com/fatiservae/simplexpresentation
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fatiservae/simplexpresentation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffatiservae%2Fsimplexpresentation", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffatiservae%2Fsimplexpresentation'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3318c985e10a1622d5572ac0df045cf107960f13
[INFO] linting fatiservae/simplexpresentation against nightly for clippy-nonminimal_bool-denied
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffatiservae%2Fsimplexpresentation" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/fatiservae/simplexpresentation
[INFO] finished tweaking git repo https://github.com/fatiservae/simplexpresentation
[INFO] tweaked toml for git repo https://github.com/fatiservae/simplexpresentation written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/fatiservae/simplexpresentation 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/fatiservae/simplexpresentation 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 5da4827b5c9c862c9b5574cc7fb318ca9e4a3a66eec38da4da5dcc40ad575f89
[INFO] running `Command { std: "docker" "start" "-a" "5da4827b5c9c862c9b5574cc7fb318ca9e4a3a66eec38da4da5dcc40ad575f89", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5da4827b5c9c862c9b5574cc7fb318ca9e4a3a66eec38da4da5dcc40ad575f89", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5da4827b5c9c862c9b5574cc7fb318ca9e4a3a66eec38da4da5dcc40ad575f89", kill_on_drop: false }`
[INFO] [stdout] 5da4827b5c9c862c9b5574cc7fb318ca9e4a3a66eec38da4da5dcc40ad575f89
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 72bba92531830738245d9ea59a31321f8678151a97629b5a70c8a4ac1e205694
[INFO] running `Command { std: "docker" "start" "-a" "72bba92531830738245d9ea59a31321f8678151a97629b5a70c8a4ac1e205694", kill_on_drop: false }`
[INFO] [stderr] Checking anstream v0.6.17
[INFO] [stderr] Compiling clap_derive v4.5.18
[INFO] [stderr] Checking clap_builder v4.5.20
[INFO] [stderr] Checking clap v4.5.20
[INFO] [stderr] Checking sxpres v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: this import is redundant
[INFO] [stdout] --> src/lib.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | base64,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: remove this import
[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] --> src/lib.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | base64,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: remove this import
[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: match expression looks like `matches!` macro
[INFO] [stdout] --> src/lib.rs:109:9
[INFO] [stdout] |
[INFO] [stdout] 109 | / match self {
[INFO] [stdout] 110 | | ElementNature::Heading | ElementNature::Subheading => true,
[INFO] [stdout] 111 | | _ => false,
[INFO] [stdout] 112 | | }
[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] 109 - match self {
[INFO] [stdout] 110 - ElementNature::Heading | ElementNature::Subheading => true,
[INFO] [stdout] 111 - _ => false,
[INFO] [stdout] 112 - }
[INFO] [stdout] 109 + matches!(self, ElementNature::Heading | ElementNature::Subheading)
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: match expression looks like `matches!` macro
[INFO] [stdout] --> src/lib.rs:109:9
[INFO] [stdout] |
[INFO] [stdout] 109 | / match self {
[INFO] [stdout] 110 | | ElementNature::Heading | ElementNature::Subheading => true,
[INFO] [stdout] 111 | | _ => false,
[INFO] [stdout] 112 | | }
[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] 109 - match self {
[INFO] [stdout] 110 - ElementNature::Heading | ElementNature::Subheading => true,
[INFO] [stdout] 111 - _ => false,
[INFO] [stdout] 112 - }
[INFO] [stdout] 109 + matches!(self, ElementNature::Heading | ElementNature::Subheading)
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `write!` args
[INFO] [stdout] --> src/lib.rs:156:13
[INFO] [stdout] |
[INFO] [stdout] 156 | self.content[..20].to_string(),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use this: `&self.content[..20]`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
[INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `write!` args
[INFO] [stdout] --> src/lib.rs:156:13
[INFO] [stdout] |
[INFO] [stdout] 156 | self.content[..20].to_string(),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use this: `&self.content[..20]`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
[INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: length comparison to one
[INFO] [stdout] --> src/lib.rs:173:12
[INFO] [stdout] |
[INFO] [stdout] 173 | if self.len() < 1 {
[INFO] [stdout] | ^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self.is_empty()`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
[INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: length comparison to one
[INFO] [stdout] --> src/lib.rs:173:12
[INFO] [stdout] |
[INFO] [stdout] 173 | if self.len() < 1 {
[INFO] [stdout] | ^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self.is_empty()`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
[INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: useless use of `format!`
[INFO] [stdout] --> src/lib.rs:211:21
[INFO] [stdout] |
[INFO] [stdout] 211 | format!("")
[INFO] [stdout] | ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
[INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: useless use of `format!`
[INFO] [stdout] --> src/lib.rs:211:21
[INFO] [stdout] |
[INFO] [stdout] 211 | format!("")
[INFO] [stdout] | ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
[INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: useless use of `format!`
[INFO] [stdout] --> src/lib.rs:267:27
[INFO] [stdout] |
[INFO] [stdout] 267 | css = format!("");
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"".to_string()`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: useless use of `format!`
[INFO] [stdout] --> src/lib.rs:267:27
[INFO] [stdout] |
[INFO] [stdout] 267 | css = format!("");
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"".to_string()`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this if-then-else expression returns a bool literal
[INFO] [stdout] --> src/lib.rs:308:9
[INFO] [stdout] |
[INFO] [stdout] 308 | / if self.starts_with(COMMENT_MARKER) {
[INFO] [stdout] 309 | | true
[INFO] [stdout] 310 | | } else {
[INFO] [stdout] 311 | | false
[INFO] [stdout] 312 | | }
[INFO] [stdout] | |_________^ help: you can reduce it to: `self.starts_with(COMMENT_MARKER)`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
[INFO] [stdout] = note: `#[warn(clippy::needless_bool)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: this if-then-else expression returns a bool literal
[INFO] [stdout] --> src/lib.rs:308:9
[INFO] [stdout] |
[INFO] [stdout] 308 | / if self.starts_with(COMMENT_MARKER) {
[INFO] [stdout] 309 | | true
[INFO] [stdout] 310 | | } else {
[INFO] [stdout] 311 | | false
[INFO] [stdout] 312 | | }
[INFO] [stdout] | |_________^ help: you can reduce it to: `self.starts_with(COMMENT_MARKER)`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
[INFO] [stdout] = note: `#[warn(clippy::needless_bool)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function call inside of `expect`
[INFO] [stdout] --> src/lib.rs:374:14
[INFO] [stdout] |
[INFO] [stdout] 374 | .expect(&format!("Error trying validate {} as a file path.", &file)),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Error trying validate {} as a file path.", &file))`
[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: function call inside of `expect`
[INFO] [stdout] --> src/lib.rs:371:14
[INFO] [stdout] |
[INFO] [stdout] 371 | .expect(&format!("Error trying to set the filetype of {}", &file))
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|| panic!("Error trying to set the filetype of {}", &file))`
[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: function call inside of `expect`
[INFO] [stdout] --> src/lib.rs:374:14
[INFO] [stdout] |
[INFO] [stdout] 374 | .expect(&format!("Error trying validate {} as a file path.", &file)),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Error trying validate {} as a file path.", &file))`
[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: function call inside of `expect`
[INFO] [stdout] --> src/lib.rs:371:14
[INFO] [stdout] |
[INFO] [stdout] 371 | .expect(&format!("Error trying to set the filetype of {}", &file))
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|| panic!("Error trying to set the filetype of {}", &file))`
[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 boolean expression can be simplified
[INFO] [stdout] --> src/lib.rs:384:15
[INFO] [stdout] |
[INFO] [stdout] 384 | } else if !(*raw_element[0] == format!("{}{}", TAG_MARKER, reference)) {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*raw_element[0] != format!("{}{}", TAG_MARKER, reference))`
[INFO] [stdout] |
[INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
[INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
[INFO] [stdout] --> src/lib.rs:380:35
[INFO] [stdout] |
[INFO] [stdout] 380 | pub fn is_element_ok(raw_element: &Vec
"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `body += ""` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: allocating a new `String` only to create a temporary `&str` from it [INFO] [stdout] --> src/lib.rs:605:11 [INFO] [stdout] | [INFO] [stdout] 605 | + &String::from_utf8(include_bytes!("./script.js").to_vec()) [INFO] [stdout] | ___________^ [INFO] [stdout] 606 | | .expect("Can't include \'script.js\' during compilation.") [INFO] [stdout] | |______________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] = note: `#[warn(clippy::unnecessary_to_owned)]` on by default [INFO] [stdout] help: convert from `&[u8]` to `&str` directly [INFO] [stdout] | [INFO] [stdout] 605 - + &String::from_utf8(include_bytes!("./script.js").to_vec()) [INFO] [stdout] 605 + + core::str::from_utf8(include_bytes!("./script.js")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: allocating a new `String` only to create a temporary `&str` from it [INFO] [stdout] --> src/lib.rs:610:11 [INFO] [stdout] | [INFO] [stdout] 610 | + &String::from_utf8(include_bytes!("./style.css").to_vec()) [INFO] [stdout] | ___________^ [INFO] [stdout] 611 | | .expect("Can't include \'style.css\' during compilation.") [INFO] [stdout] | |______________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] help: convert from `&[u8]` to `&str` directly [INFO] [stdout] | [INFO] [stdout] 610 - + &String::from_utf8(include_bytes!("./style.css").to_vec()) [INFO] [stdout] 610 + + core::str::from_utf8(include_bytes!("./style.css")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to one [INFO] [stdout] --> src/lib.rs:573:8 [INFO] [stdout] | [INFO] [stdout] 573 | if slides.len() < 1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `slides.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/lib.rs:581:5 [INFO] [stdout] | [INFO] [stdout] 581 | body = body + ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `body += ""` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: allocating a new `String` only to create a temporary `&str` from it [INFO] [stdout] --> src/lib.rs:605:11 [INFO] [stdout] | [INFO] [stdout] 605 | + &String::from_utf8(include_bytes!("./script.js").to_vec()) [INFO] [stdout] | ___________^ [INFO] [stdout] 606 | | .expect("Can't include \'script.js\' during compilation.") [INFO] [stdout] | |______________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] = note: `#[warn(clippy::unnecessary_to_owned)]` on by default [INFO] [stdout] help: convert from `&[u8]` to `&str` directly [INFO] [stdout] | [INFO] [stdout] 605 - + &String::from_utf8(include_bytes!("./script.js").to_vec()) [INFO] [stdout] 605 + + core::str::from_utf8(include_bytes!("./script.js")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: allocating a new `String` only to create a temporary `&str` from it [INFO] [stdout] --> src/lib.rs:610:11 [INFO] [stdout] | [INFO] [stdout] 610 | + &String::from_utf8(include_bytes!("./style.css").to_vec()) [INFO] [stdout] | ___________^ [INFO] [stdout] 611 | | .expect("Can't include \'style.css\' during compilation.") [INFO] [stdout] | |______________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] help: convert from `&[u8]` to `&str` directly [INFO] [stdout] | [INFO] [stdout] 610 - + &String::from_utf8(include_bytes!("./style.css").to_vec()) [INFO] [stdout] 610 + + core::str::from_utf8(include_bytes!("./style.css")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/lib.rs:614:13 [INFO] [stdout] | [INFO] [stdout] 614 | Ok(HTML(String::from(format!( [INFO] [stdout] | _____________^ [INFO] [stdout] 615 | | "\n [INFO] [stdout] 616 | | \n [INFO] [stdout] 617 | |
\n [INFO] [stdout] ... | [INFO] [stdout] 633 | | &script [INFO] [stdout] 634 | | )))) [INFO] [stdout] | |______^ [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] help: consider removing `String::from()` [INFO] [stdout] | [INFO] [stdout] 614 ~ Ok(HTML(format!( [INFO] [stdout] 615 + "\n [INFO] [stdout] 616 + \n [INFO] [stdout] 617 +
\n [INFO] [stdout] 618 + {}{}{}{} [INFO] [stdout] 619 +
[INFO] [stdout] 620 +
[INFO] [stdout] 622 +
\n [INFO] [stdout] 623 + {}{} [INFO] [stdout] 624 + ", [INFO] [stdout] 625 + &mermaid_script, [INFO] [stdout] 626 + &css, [INFO] [stdout] 627 + &foot, [INFO] [stdout] 628 + &logo_img, [INFO] [stdout] 629 + &body, [INFO] [stdout] 630 + // `&script` has to be inserted at the end, so that only with [INFO] [stdout] 631 + // the whole page built it can calls to document.ElementById's [INFO] [stdout] 632 + // methods in the /src/script.js. [INFO] [stdout] 633 + &script [INFO] [stdout] 634 ~ ))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/lib.rs:614:13 [INFO] [stdout] | [INFO] [stdout] 614 | Ok(HTML(String::from(format!( [INFO] [stdout] | _____________^ [INFO] [stdout] 615 | | "\n [INFO] [stdout] 616 | | \n [INFO] [stdout] 617 | |
\n [INFO] [stdout] ... | [INFO] [stdout] 633 | | &script [INFO] [stdout] 634 | | )))) [INFO] [stdout] | |______^ [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] help: consider removing `String::from()` [INFO] [stdout] | [INFO] [stdout] 614 ~ Ok(HTML(format!( [INFO] [stdout] 615 + "\n [INFO] [stdout] 616 + \n [INFO] [stdout] 617 +
\n [INFO] [stdout] 618 + {}{}{}{} [INFO] [stdout] 619 +
[INFO] [stdout] 620 +
[INFO] [stdout] 622 +
\n [INFO] [stdout] 623 + {}{} [INFO] [stdout] 624 + ", [INFO] [stdout] 625 + &mermaid_script, [INFO] [stdout] 626 + &css, [INFO] [stdout] 627 + &foot, [INFO] [stdout] 628 + &logo_img, [INFO] [stdout] 629 + &body, [INFO] [stdout] 630 + // `&script` has to be inserted at the end, so that only with [INFO] [stdout] 631 + // the whole page built it can calls to document.ElementById's [INFO] [stdout] 632 + // methods in the /src/script.js. [INFO] [stdout] 633 + &script [INFO] [stdout] 634 ~ ))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/main.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | / match raw_result { [INFO] [stdout] 96 | | Some(result) => { [INFO] [stdout] 97 | | if elements.len() < 4 { [INFO] [stdout] 98 | | elements.push(result); [INFO] [stdout] ... | [INFO] [stdout] 103 | | None => () [INFO] [stdout] 104 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 95 ~ if let Some(result) = raw_result { [INFO] [stdout] 96 + if elements.len() < 4 { [INFO] [stdout] 97 + elements.push(result); [INFO] [stdout] 98 + } else { [INFO] [stdout] 99 + eprintln!("The slide no. {} had to many elements. An element of nature {} was discarded.", slide_no, result.nature) [INFO] [stdout] 100 + } [INFO] [stdout] 101 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/main.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | / match raw_result { [INFO] [stdout] 96 | | Some(result) => { [INFO] [stdout] 97 | | if elements.len() < 4 { [INFO] [stdout] 98 | | elements.push(result); [INFO] [stdout] ... | [INFO] [stdout] 103 | | None => () [INFO] [stdout] 104 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 95 ~ if let Some(result) = raw_result { [INFO] [stdout] 96 + if elements.len() < 4 { [INFO] [stdout] 97 + elements.push(result); [INFO] [stdout] 98 + } else { [INFO] [stdout] 99 + eprintln!("The slide no. {} had to many elements. An element of nature {} was discarded.", slide_no, result.nature) [INFO] [stdout] 100 + } [INFO] [stdout] 101 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.49s [INFO] running `Command { std: "docker" "inspect" "72bba92531830738245d9ea59a31321f8678151a97629b5a70c8a4ac1e205694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72bba92531830738245d9ea59a31321f8678151a97629b5a70c8a4ac1e205694", kill_on_drop: false }` [INFO] [stdout] 72bba92531830738245d9ea59a31321f8678151a97629b5a70c8a4ac1e205694