[INFO] cloning repository https://github.com/Kuerbiskosar/math_typechecker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kuerbiskosar/math_typechecker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKuerbiskosar%2Fmath_typechecker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKuerbiskosar%2Fmath_typechecker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac077abdb99742d3f43d50e24b7787128bb0d2f9 [INFO] linting Kuerbiskosar/math_typechecker against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKuerbiskosar%2Fmath_typechecker" "/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/Kuerbiskosar/math_typechecker [INFO] finished tweaking git repo https://github.com/Kuerbiskosar/math_typechecker [INFO] tweaked toml for git repo https://github.com/Kuerbiskosar/math_typechecker written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Kuerbiskosar/math_typechecker 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/Kuerbiskosar/math_typechecker 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] bf25dcdb1bc554ace00d1f6c3796479a1bf782fafc055a006dd1322b0357df42 [INFO] running `Command { std: "docker" "start" "-a" "bf25dcdb1bc554ace00d1f6c3796479a1bf782fafc055a006dd1322b0357df42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf25dcdb1bc554ace00d1f6c3796479a1bf782fafc055a006dd1322b0357df42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf25dcdb1bc554ace00d1f6c3796479a1bf782fafc055a006dd1322b0357df42", kill_on_drop: false }` [INFO] [stdout] bf25dcdb1bc554ace00d1f6c3796479a1bf782fafc055a006dd1322b0357df42 [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] 64f3ed3184477a274659b0bb44f72ab0c096db0a6baec26e5dbdc71bfa873a4c [INFO] running `Command { std: "docker" "start" "-a" "64f3ed3184477a274659b0bb44f72ab0c096db0a6baec26e5dbdc71bfa873a4c", kill_on_drop: false }` [INFO] [stderr] Checking math_typechecker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | quantity: quantity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `quantity` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | quantity: quantity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `quantity` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:300:13 [INFO] [stdout] | [INFO] [stdout] 300 | name: name, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 304 | modifier: modifier } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `modifier` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:316:13 [INFO] [stdout] | [INFO] [stdout] 316 | modifier: modifier } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `modifier` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:351:13 [INFO] [stdout] | [INFO] [stdout] 351 | modifier: modifier, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `modifier` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:358:13 [INFO] [stdout] | [INFO] [stdout] 358 | name: name, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | symbol: symbol, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `symbol` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:471:48 [INFO] [stdout] | [INFO] [stdout] 471 | Quantity { name, symbol: Some(symbol), base_quantity: base_quantity } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `base_quantity` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/term.rs:224:43 [INFO] [stdout] | [INFO] [stdout] 224 | let number = Number { value: 1.0, unit: unit }; [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `unit` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/term.rs:231:43 [INFO] [stdout] | [INFO] [stdout] 231 | let number = Number { value: 1.0, unit: unit }; [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `unit` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/term.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | PTerm { content: content, span: span, evaluated: None, unit: None } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `content` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/term.rs:287:35 [INFO] [stdout] | [INFO] [stdout] 287 | PTerm { content: content, span: span, evaluated: None, unit: None } [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `span` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/pharsers.rs:550:13 [INFO] [stdout] | [INFO] [stdout] 550 | (sucess_fn(to_parse, parse_result)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 550 - (sucess_fn(to_parse, parse_result)) [INFO] [stdout] 550 + sucess_fn(to_parse, parse_result) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/language_parsers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Quantity` [INFO] [stdout] --> src/language_parsers.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::numbersystem::{Number, Quantity}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Spanned`, `ignore_result`, `item`, `some`, and `until` [INFO] [stdout] --> src/language_parsers.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | ...t, Spanned, alt, char, ignore_result, item, item_satisfies, line_space, many, map, nat, obligatory_space, operator, optional, some, space, sym, this_string, token, until, w... [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ASSIGNMENT`, `QUANTITY_DEF_KEYWORD`, and `UNIT_DEF_KEYWORD` [INFO] [stdout] --> src/language_parsers.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::syntax_constants::{ASSIGNMENT, EVALUATE, LINE_COMMENT, QUANTITY_DEF_KEYWORD, UNIT_DEF_KEYWORD}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/language_parsers.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | value: value, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/language_parsers.rs:260:25 [INFO] [stdout] | [INFO] [stdout] 260 | let output = Text { text_type: text_type, span: Span { start: start_pos, end: to_parse.span.start } }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `text_type` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alt`, `item`, `line_space`, `map`, `nat`, `operator`, and `some` [INFO] [stdout] --> src/file_parsers.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | ...nned, alt, char, ignore_result, item, item_satisfies, line_space, many, map, nat, obligatory_space, operator, optional, some, spac... [INFO] [stdout] | ^^^ ^^^^ ^^^^^^^^^^ ^^^ ^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Number` [INFO] [stdout] --> src/file_parsers.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::numbersystem::{Number, Quantity}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Operator`, `PTerm`, `Term`, `TextType`, and `Text` [INFO] [stdout] --> src/file_parsers.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::term::{Environment, Operator, PTerm, Term, Text, TextType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EVALUATE` and `LINE_COMMENT` [INFO] [stdout] --> src/file_parsers.rs:8:43 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::syntax_constants::{ASSIGNMENT, EVALUATE, LINE_COMMENT, QUANTITY_DEF_KEYWORD, UNIT_DEF_KEYWORD}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/file_parsers.rs:54:36 [INFO] [stdout] | [INFO] [stdout] 54 | pos: Span{ start:start, end: end} [INFO] [stdout] | ^^^^^^^^^^^ help: replace it with: `start` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/file_parsers.rs:54:49 [INFO] [stdout] | [INFO] [stdout] 54 | pos: Span{ start:start, end: end} [INFO] [stdout] | ^^^^^^^^ help: replace it with: `end` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | quantity: quantity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `quantity` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | quantity: quantity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `quantity` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:300:13 [INFO] [stdout] | [INFO] [stdout] 300 | name: name, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 304 | modifier: modifier } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `modifier` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:316:13 [INFO] [stdout] | [INFO] [stdout] 316 | modifier: modifier } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `modifier` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:351:13 [INFO] [stdout] | [INFO] [stdout] 351 | modifier: modifier, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `modifier` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:358:13 [INFO] [stdout] | [INFO] [stdout] 358 | name: name, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `name` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | symbol: symbol, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `symbol` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/numbersystem.rs:471:48 [INFO] [stdout] | [INFO] [stdout] 471 | Quantity { name, symbol: Some(symbol), base_quantity: base_quantity } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `base_quantity` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty lines after doc comment [INFO] [stdout] --> src/numbersystem.rs:655:1 [INFO] [stdout] | [INFO] [stdout] 655 | / /// The base unit m is of Quantity "Mass" with Modifier 1 [INFO] [stdout] 656 | | [INFO] [stdout] 657 | | [INFO] [stdout] | |_^ [INFO] [stdout] 658 | #[cfg(test)] [INFO] [stdout] 659 | mod tests { [INFO] [stdout] | --------- the comment documents this module [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 lines are unintentional, remove them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/term.rs:224:43 [INFO] [stdout] | [INFO] [stdout] 224 | let number = Number { value: 1.0, unit: unit }; [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `unit` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/term.rs:231:43 [INFO] [stdout] | [INFO] [stdout] 231 | let number = Number { value: 1.0, unit: unit }; [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `unit` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/term.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | PTerm { content: content, span: span, evaluated: None, unit: None } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `content` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/term.rs:287:35 [INFO] [stdout] | [INFO] [stdout] 287 | PTerm { content: content, span: span, evaluated: None, unit: None } [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `span` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/pharsers.rs:550:13 [INFO] [stdout] | [INFO] [stdout] 550 | (sucess_fn(to_parse, parse_result)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 550 - (sucess_fn(to_parse, parse_result)) [INFO] [stdout] 550 + sucess_fn(to_parse, parse_result) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/language_parsers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Quantity` [INFO] [stdout] --> src/language_parsers.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::numbersystem::{Number, Quantity}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Spanned`, `ignore_result`, `item`, `some`, and `until` [INFO] [stdout] --> src/language_parsers.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | ...t, Spanned, alt, char, ignore_result, item, item_satisfies, line_space, many, map, nat, obligatory_space, operator, optional, some, space, sym, this_string, token, until, w... [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ASSIGNMENT`, `QUANTITY_DEF_KEYWORD`, and `UNIT_DEF_KEYWORD` [INFO] [stdout] --> src/language_parsers.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::syntax_constants::{ASSIGNMENT, EVALUATE, LINE_COMMENT, QUANTITY_DEF_KEYWORD, UNIT_DEF_KEYWORD}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/language_parsers.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | value: value, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/language_parsers.rs:260:25 [INFO] [stdout] | [INFO] [stdout] 260 | let output = Text { text_type: text_type, span: Span { start: start_pos, end: to_parse.span.start } }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `text_type` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/language_parsers.rs:442:9 [INFO] [stdout] | [INFO] [stdout] 442 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alt`, `item`, `line_space`, `map`, `nat`, `operator`, and `some` [INFO] [stdout] --> src/file_parsers.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | ...nned, alt, char, ignore_result, item, item_satisfies, line_space, many, map, nat, obligatory_space, operator, optional, some, spac... [INFO] [stdout] | ^^^ ^^^^ ^^^^^^^^^^ ^^^ ^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TextType` and `Text` [INFO] [stdout] --> src/file_parsers.rs:7:55 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::term::{Environment, Operator, PTerm, Term, Text, TextType}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EVALUATE` and `LINE_COMMENT` [INFO] [stdout] --> src/file_parsers.rs:8:43 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::syntax_constants::{ASSIGNMENT, EVALUATE, LINE_COMMENT, QUANTITY_DEF_KEYWORD, UNIT_DEF_KEYWORD}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/file_parsers.rs:54:36 [INFO] [stdout] | [INFO] [stdout] 54 | pos: Span{ start:start, end: end} [INFO] [stdout] | ^^^^^^^^^^^ help: replace it with: `start` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/file_parsers.rs:54:49 [INFO] [stdout] | [INFO] [stdout] 54 | pos: Span{ start:start, end: end} [INFO] [stdout] | ^^^^^^^^ help: replace it with: `end` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/file_parsers.rs:491:9 [INFO] [stdout] | [INFO] [stdout] 491 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/numbersystem.rs:369:22 [INFO] [stdout] | [INFO] [stdout] 369 | fn funky_derived(name: &str, symbol: &str, base_units: String, quantity_tracker: &mut HashMap src/numbersystem.rs:369:48 [INFO] [stdout] | [INFO] [stdout] 369 | ...: &str, symbol: &str, base_units: String, quantity_tracker: &mut HashMap, i32)>>) -> R... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_units` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity_tracker` [INFO] [stdout] --> src/numbersystem.rs:369:68 [INFO] [stdout] | [INFO] [stdout] 369 | ..._units: String, quantity_tracker: &mut HashMap, i32)>>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity_tracker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/numbersystem.rs:372:13 [INFO] [stdout] | [INFO] [stdout] 372 | let symbol = { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `full` [INFO] [stdout] --> src/pharsers.rs:232:32 [INFO] [stdout] | [INFO] [stdout] 232 | fn string_position(slice:&str, full:&str) -> TextPos { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_full` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pharsers.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | let x = &slice; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pharsers.rs:461:13 [INFO] [stdout] | [INFO] [stdout] 461 | Ok((c, to_parse)) => match this_string(to_parse, iterator.as_str()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/numbersystem.rs:369:22 [INFO] [stdout] | [INFO] [stdout] 369 | fn funky_derived(name: &str, symbol: &str, base_units: String, quantity_tracker: &mut HashMap src/numbersystem.rs:369:48 [INFO] [stdout] | [INFO] [stdout] 369 | ...: &str, symbol: &str, base_units: String, quantity_tracker: &mut HashMap, i32)>>) -> R... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_units` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity_tracker` [INFO] [stdout] --> src/numbersystem.rs:369:68 [INFO] [stdout] | [INFO] [stdout] 369 | ..._units: String, quantity_tracker: &mut HashMap, i32)>>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity_tracker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/numbersystem.rs:372:13 [INFO] [stdout] | [INFO] [stdout] 372 | let symbol = { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op2` [INFO] [stdout] --> src/language_parsers.rs:404:42 [INFO] [stdout] | [INFO] [stdout] 404 | fn check_left_associative(op1:&Operator, op2:&Operator) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_op2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/numbersystem.rs:682:13 [INFO] [stdout] | [INFO] [stdout] 682 | let length = Quantity::new("length", "l", Vec::default()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_unit` [INFO] [stdout] --> src/numbersystem.rs:727:13 [INFO] [stdout] | [INFO] [stdout] 727 | let b_unit = Unit{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_b_unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `velocity` [INFO] [stdout] --> src/numbersystem.rs:749:13 [INFO] [stdout] | [INFO] [stdout] 749 | let velocity = Quantity::new("velocity", "v", vec![(length.clone(), 1), (time.clone(), -1)]); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_velocity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/numbersystem.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 751 | let u = Unit::new_derived("unitless", "-", Vec::default()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/numbersystem.rs:752:13 [INFO] [stdout] | [INFO] [stdout] 752 | let t = Unit::new_test_base("test", "~", &test, 1.0); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_parse` [INFO] [stdout] --> src/file_parsers.rs:244:46 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_parse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `velocity` [INFO] [stdout] --> src/numbersystem.rs:772:13 [INFO] [stdout] | [INFO] [stdout] 772 | let velocity = Quantity::new("velocity", "v", vec![(length.clone(), 1), (time.clone(), -1)]); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_velocity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/numbersystem.rs:774:13 [INFO] [stdout] | [INFO] [stdout] 774 | let u = Unit::new_derived("unitless", "-", Vec::default()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/numbersystem.rs:775:13 [INFO] [stdout] | [INFO] [stdout] 775 | let t = Unit::new_test_base("test", "~", &test, 1.0); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_tracker` [INFO] [stdout] --> src/file_parsers.rs:244:70 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_tracker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_unit_with_exponent` is never used [INFO] [stdout] --> src/numbersystem.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn show_unit_with_exponent(base_unit: &HashMap, i32)>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_test_base`, `new_derived`, and `funky_derived` are never used [INFO] [stdout] --> src/numbersystem.rs:308:12 [INFO] [stdout] | [INFO] [stdout] 294 | impl Unit { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn new_test_base(name: &str, symbol: &str, quantity: &Quantity, modifier: f64) -> Unit { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn new_derived(name: &str, symbol: &str, base_units: Vec<(Unit, i32)>) -> Unit { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 369 | fn funky_derived(name: &str, symbol: &str, base_units: String, quantity_tracker: &mut HashMap src/numbersystem.rs:427:9 [INFO] [stdout] | [INFO] [stdout] 424 | pub struct Quantity [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 427 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quantity` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/numbersystem.rs:434:12 [INFO] [stdout] | [INFO] [stdout] 433 | impl Quantity { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 434 | pub fn new(name: &str, symbol: &str, base_quantitys: Vec<(Quantity, i32)>, /*quantity_tracker: &mut HashMap src/numbersystem.rs:578:7 [INFO] [stdout] | [INFO] [stdout] 578 | const MAX_UNIT_NAME_LENGHT: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Name` is never used [INFO] [stdout] --> src/numbersystem.rs:583:10 [INFO] [stdout] | [INFO] [stdout] 583 | pub enum Name{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `concat_name` is never used [INFO] [stdout] --> src/numbersystem.rs:624:4 [INFO] [stdout] | [INFO] [stdout] 624 | fn concat_name(left: Name, separator: &str, right: Name) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SafeValue` is never constructed [INFO] [stdout] --> src/numbersystem.rs:632:8 [INFO] [stdout] | [INFO] [stdout] 632 | struct SafeValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_quantitys`, `get_units`, `evaluate_and_print_all_variables`, `check_all_equation_equality`, and `print_all_comment_locations` are never used [INFO] [stdout] --> src/term.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Environment { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | fn get_quantitys(&self) -> (&HashMap, &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn get_units(&self) -> (&HashMap, &Vec>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn evaluate_and_print_all_variables(& mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn check_all_equation_equality(& mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn print_all_comment_locations(&self, full: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Empty` is never constructed [INFO] [stdout] --> src/term.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 248 | pub enum Term { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 264 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Term` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `evaluate` is never used [INFO] [stdout] --> src/term.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 285 | impl PTerm { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 291 | pub fn evaluate(&mut self, env_tracker: &Environment) -> Result>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Title` is never constructed [INFO] [stdout] --> src/term.rs:416:5 [INFO] [stdout] | [INFO] [stdout] 408 | pub enum TextType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 416 | Title(usize), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add`, `Sub`, `Mul`, and `Div` are never constructed [INFO] [stdout] --> src/term.rs:423:5 [INFO] [stdout] | [INFO] [stdout] 422 | pub enum Operator { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 423 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 424 | Sub, [INFO] [stdout] | ^^^ [INFO] [stdout] 425 | Mul, [INFO] [stdout] | ^^^ [INFO] [stdout] 426 | Div, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_str_offset`, `add_info`, and `add_warning` are never used [INFO] [stdout] --> src/pharsers.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl<'a> Parsable<'a> { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn with_str_offset(to_parse: &'a str, offset: usize) -> Parsable<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn add_info(mut self, info: Info) -> Parsable<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn add_warning(mut self, info: Info) -> Parsable<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `prettyprint` is never used [INFO] [stdout] --> src/pharsers.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl Info { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 123 | pub fn prettyprint(&self, full: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/pharsers.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 201 | impl Spanned { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_position` is never used [INFO] [stdout] --> src/pharsers.rs:232:4 [INFO] [stdout] | [INFO] [stdout] 232 | fn string_position(slice:&str, full:&str) -> TextPos { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upper` is never used [INFO] [stdout] --> src/pharsers.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn upper<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lower` is never used [INFO] [stdout] --> src/pharsers.rs:305:4 [INFO] [stdout] | [INFO] [stdout] 305 | fn lower<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seq` is never used [INFO] [stdout] --> src/pharsers.rs:375:4 [INFO] [stdout] | [INFO] [stdout] 375 | fn seq<'a, 'b, T>(to_parse: Parsable<'a>, parsers: Vec<&dyn Fn(Parsable<'a>) -> ParseResult<'a, T>>) -> ParseResult<'a, Vec> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `internal_testing` is never used [INFO] [stdout] --> src/pharsers.rs:635:4 [INFO] [stdout] | [INFO] [stdout] 635 | fn internal_testing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_assignment_eqation_evaluate` is never used [INFO] [stdout] --> src/file_parsers.rs:244:4 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `full` [INFO] [stdout] --> src/pharsers.rs:232:32 [INFO] [stdout] | [INFO] [stdout] 232 | fn string_position(slice:&str, full:&str) -> TextPos { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_full` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pharsers.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | let x = &slice; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/numbersystem.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | if denominator == "" && nominator == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `denominator.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: comparison to empty slice [INFO] [stdout] --> src/numbersystem.rs:212:29 [INFO] [stdout] | [INFO] [stdout] 212 | if denominator == "" && nominator == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `nominator.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: comparison to empty slice [INFO] [stdout] --> src/numbersystem.rs:217:15 [INFO] [stdout] | [INFO] [stdout] 217 | } else if denominator == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `denominator.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: comparison to empty slice [INFO] [stdout] --> src/numbersystem.rs:219:15 [INFO] [stdout] | [INFO] [stdout] 219 | } else if nominator == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `nominator.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: unused variable: `c` [INFO] [stdout] --> src/pharsers.rs:461:13 [INFO] [stdout] | [INFO] [stdout] 461 | Ok((c, to_parse)) => match this_string(to_parse, iterator.as_str()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this loop could be written as a `while let` loop [INFO] [stdout] --> src/numbersystem.rs:379:13 [INFO] [stdout] | [INFO] [stdout] 379 | / loop { [INFO] [stdout] 380 | | match iterator.next() { [INFO] [stdout] 381 | | Some(a) => { [INFO] [stdout] 382 | | for base_unit in a.split("*") { [INFO] [stdout] ... | [INFO] [stdout] 397 | | } [INFO] [stdout] | |_____________^ help: try: `while let Some(a) = iterator.next() { .. }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop [INFO] [stdout] = note: `#[warn(clippy::while_let_loop)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/numbersystem.rs:506:9 [INFO] [stdout] | [INFO] [stdout] 506 | format!("{}", self.symbol.to_owned().unwrap_or_else(|| show_unit_pretty(&self.base_quantity, self.symbol.clone()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `self.symbol.to_owned().unwrap_or_else(|| show_unit_pretty(&self.base_quantity, self.symbol.clone())).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] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `arr` [INFO] [stdout] --> src/numbersystem.rs:612:26 [INFO] [stdout] | [INFO] [stdout] 612 | for i in 0..capacity { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 612 - for i in 0..capacity { [INFO] [stdout] 612 + for (i, ) in arr.iter().enumerate().take(capacity) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/numbersystem.rs:625:47 [INFO] [stdout] | [INFO] [stdout] 625 | Name::from_str(&format!("{}{}{}", left.to_string(), separator, right.to_string())) [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [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 `format!` args [INFO] [stdout] --> src/numbersystem.rs:625:77 [INFO] [stdout] | [INFO] [stdout] 625 | Name::from_str(&format!("{}{}{}", left.to_string(), separator, right.to_string())) [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [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] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/term.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | let overwritten_term = self.variables.insert(var, term_index).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.variables.insert(var, term_index)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/term.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | let overwritten_term = self.variables.insert(var, term_index).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.variables.insert(var, term_index)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/term.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let overwritten_term = self.quantity_map.insert(symbol, quantity_index).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.quantity_map.insert(symbol, quantity_index)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/term.rs:133:32 [INFO] [stdout] | [INFO] [stdout] 133 | let overwritten_term = self.unit_map.insert(symbol, unit_index).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.unit_map.insert(symbol, unit_index)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/term.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | return return_value [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] 190 - return return_value [INFO] [stdout] 190 + return_value [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/term.rs:204:29 [INFO] [stdout] | [INFO] [stdout] 204 | Some(result) => return result.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 204 - Some(result) => return result.clone(), [INFO] [stdout] 204 + Some(result) => result.clone(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/term.rs:219:80 [INFO] [stdout] | [INFO] [stdout] 219 | fn first_evaluate(&self, variable_map: &HashMap, variables: &Vec) -> Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[impl Evaluatable]` [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] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op2` [INFO] [stdout] --> src/language_parsers.rs:404:42 [INFO] [stdout] | [INFO] [stdout] 404 | fn check_left_associative(op1:&Operator, op2:&Operator) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_op2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/term.rs:345:20 [INFO] [stdout] | [INFO] [stdout] 345 | val if *val == "*".to_string() => Ok(left * right), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] = note: `#[warn(clippy::cmp_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/term.rs:346:20 [INFO] [stdout] | [INFO] [stdout] 346 | val if *val == "/".to_string() => left / right, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/term.rs:347:20 [INFO] [stdout] | [INFO] [stdout] 347 | val if *val == "+".to_string() => left + right, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/term.rs:348:20 [INFO] [stdout] | [INFO] [stdout] 348 | val if *val == "-".to_string() => left - right, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/pharsers.rs:124:60 [INFO] [stdout] | [INFO] [stdout] 124 | format!("{} at {}", self.msg, self.pos.to_text_pos(&full)) [INFO] [stdout] | ^^^^^ help: change this to: `full` [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: unused variable: `to_parse` [INFO] [stdout] --> src/file_parsers.rs:244:46 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_parse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_tracker` [INFO] [stdout] --> src/file_parsers.rs:244:70 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_tracker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/pharsers.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn to_text_pos(&self, full: &str) -> TextPos { [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: this pattern reimplements `Option::unwrap_or` [INFO] [stdout] --> src/pharsers.rs:159:32 [INFO] [stdout] | [INFO] [stdout] 159 | let current_char = match char_array.nth(0) { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 160 | | Some(c) => c, [INFO] [stdout] ... | [INFO] [stdout] 164 | | }; [INFO] [stdout] | |_____________^ help: replace with: `char_array.nth(0).unwrap_or(' ')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this pattern reimplements `Option::unwrap_or` [INFO] [stdout] --> src/pharsers.rs:177:32 [INFO] [stdout] | [INFO] [stdout] 177 | let current_char = match full.chars().nth(0) { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 178 | | Some(c) => c, [INFO] [stdout] ... | [INFO] [stdout] 182 | | }; [INFO] [stdout] | |_____________^ help: replace with: `full.chars().nth(0).unwrap_or(' ')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:238:48 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn item<'a>(mut to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent [INFO] [stdout] --> src/pharsers.rs:245:11 [INFO] [stdout] | [INFO] [stdout] 245 | match to_parse.content.chars().nth(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `to_parse.content.chars().next()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero [INFO] [stdout] = note: `#[warn(clippy::iter_nth_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:266:87 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn item_satisfies<'a, Predicate>(to_parse: Parsable<'a>, predicate: Predicate) -> ParseResult<'a, char> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:287:46 [INFO] [stdout] | [INFO] [stdout] 287 | fn alphabetic<'a>(to_parse:Parsable<'a> ) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:290:41 [INFO] [stdout] | [INFO] [stdout] 290 | fn digit<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/pharsers.rs:291:33 [INFO] [stdout] | [INFO] [stdout] 291 | item_satisfies(to_parse, |x|x.is_digit(10)) // consider adding pharsers for other common bases [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `x.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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:293:48 [INFO] [stdout] | [INFO] [stdout] 293 | fn alphanumeric<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:296:50 [INFO] [stdout] | [INFO] [stdout] 296 | fn valid_operator<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/pharsers.rs:299:53 [INFO] [stdout] | [INFO] [stdout] 299 | ... !(x == '(') && !(x == ')')) [INFO] [stdout] | ^^^^^^^^^^^ help: try: `(x != '(')` [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: this boolean expression can be simplified [INFO] [stdout] --> src/pharsers.rs:299:68 [INFO] [stdout] | [INFO] [stdout] 299 | ... !(x == '(') && !(x == ')')) [INFO] [stdout] | ^^^^^^^^^^^ help: try: `(x != ')')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:302:41 [INFO] [stdout] | [INFO] [stdout] 302 | fn upper<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:305:41 [INFO] [stdout] | [INFO] [stdout] 305 | fn lower<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:308:65 [INFO] [stdout] | [INFO] [stdout] 308 | pub fn char<'a>(to_parse: Parsable<'a>, char_to_match: char) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:313:71 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn some<'a, Parser, S>(to_parse: Parsable<'a>, parser: Parser) -> ParseResult<'a, String> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:332:71 [INFO] [stdout] | [INFO] [stdout] 332 | pub fn many<'a, Parser, S>(to_parse: Parsable<'a>, parser: Parser) -> ParseResult<'a, String> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:351:106 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn alt<'a, T>(to_parse: Parsable<'a>, pharsers: Vec<&dyn Fn(Parsable<'a>) -> ParseResult<'a, T>>) -> ParseResult<'a, T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/pharsers.rs:375:12 [INFO] [stdout] | [INFO] [stdout] 375 | fn seq<'a, 'b, T>(to_parse: Parsable<'a>, parsers: Vec<&dyn Fn(Parsable<'a>) -> ParseResult<'a, T>>) -> ParseResult<'a, Vec> [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parse_result` [INFO] [stdout] --> src/file_parsers.rs:530:17 [INFO] [stdout] | [INFO] [stdout] 530 | let (_, parse_result) = parse_quantity_definition(to_parse, &mut env_tracker) [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parse_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:375:105 [INFO] [stdout] | [INFO] [stdout] 375 | fn seq<'a, 'b, T>(to_parse: Parsable<'a>, parsers: Vec<&dyn Fn(Parsable<'a>) -> ParseResult<'a, T>>) -> ParseResult<'a, Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:394:13 [INFO] [stdout] | [INFO] [stdout] 394 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 394 - return Err((to_parse,info)) [INFO] [stdout] 394 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:402:44 [INFO] [stdout] | [INFO] [stdout] 402 | pub fn space<'a>(to_parse: Parsable<'a>) ->ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/pharsers.rs:403:20 [INFO] [stdout] | [INFO] [stdout] 403 | many(to_parse, |input| item_satisfies(input, |x| x.is_whitespace())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:406:55 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn obligatory_space<'a>(to_parse: Parsable<'a>) ->ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/pharsers.rs:407:20 [INFO] [stdout] | [INFO] [stdout] 407 | some(to_parse, |input| item_satisfies(input, |x| x.is_whitespace())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_parse` [INFO] [stdout] --> src/file_parsers.rs:589:17 [INFO] [stdout] | [INFO] [stdout] 589 | let (_, to_parse) = parse_unit_definition(to_parse, &mut env_tracker) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_parse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `area` [INFO] [stdout] --> src/file_parsers.rs:592:13 [INFO] [stdout] | [INFO] [stdout] 592 | let area = expected_environment.get_quantity("A").expect("area should be in the environment").get_content().clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:411:49 [INFO] [stdout] | [INFO] [stdout] 411 | pub fn line_space<'a>(to_parse: Parsable<'a>) ->ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/pharsers.rs:412:20 [INFO] [stdout] | [INFO] [stdout] 412 | many(to_parse, |input| item_satisfies(input, |x| x.is_whitespace() && x != (0xA as char))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:418:43 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn nat<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:432:43 [INFO] [stdout] | [INFO] [stdout] 432 | pub fn sym<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:453:65 [INFO] [stdout] | [INFO] [stdout] 453 | pub fn this_string<'a>(to_parse: Parsable<'a>, string: &str) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/file_parsers.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | let length = env_tracker.get_quantity("l").expect("l should exist").get_content().clone(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/file_parsers.rs:634:13 [INFO] [stdout] | [INFO] [stdout] 634 | let time = env_tracker.get_quantity("t").expect("t should exist").get_content().clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 465 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 465 - return Err((to_parse, info)) [INFO] [stdout] 465 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:470:13 [INFO] [stdout] | [INFO] [stdout] 470 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 470 - return Err((to_parse, info)) [INFO] [stdout] 470 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:480:48 [INFO] [stdout] | [INFO] [stdout] 480 | pub fn operator<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_unit_with_exponent` is never used [INFO] [stdout] --> src/numbersystem.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn show_unit_with_exponent(base_unit: &HashMap, i32)>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `funky_derived` is never used [INFO] [stdout] --> src/numbersystem.rs:369:8 [INFO] [stdout] | [INFO] [stdout] 294 | impl Unit { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 369 | fn funky_derived(name: &str, symbol: &str, base_units: String, quantity_tracker: &mut HashMap src/numbersystem.rs:427:9 [INFO] [stdout] | [INFO] [stdout] 424 | pub struct Quantity [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 427 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quantity` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_UNIT_NAME_LENGHT` is never used [INFO] [stdout] --> src/numbersystem.rs:578:7 [INFO] [stdout] | [INFO] [stdout] 578 | const MAX_UNIT_NAME_LENGHT: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Name` is never used [INFO] [stdout] --> src/numbersystem.rs:583:10 [INFO] [stdout] | [INFO] [stdout] 583 | pub enum Name{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `concat_name` is never used [INFO] [stdout] --> src/numbersystem.rs:624:4 [INFO] [stdout] | [INFO] [stdout] 624 | fn concat_name(left: Name, separator: &str, right: Name) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SafeValue` is never constructed [INFO] [stdout] --> src/numbersystem.rs:632:8 [INFO] [stdout] | [INFO] [stdout] 632 | struct SafeValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_quantitys`, `get_units`, `evaluate_and_print_all_variables`, `check_all_equation_equality`, and `print_all_comment_locations` are never used [INFO] [stdout] --> src/term.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Environment { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | fn get_quantitys(&self) -> (&HashMap, &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn get_units(&self) -> (&HashMap, &Vec>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn evaluate_and_print_all_variables(& mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn check_all_equation_equality(& mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn print_all_comment_locations(&self, full: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Empty` is never constructed [INFO] [stdout] --> src/term.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 248 | pub enum Term { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 264 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Term` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `evaluate` is never used [INFO] [stdout] --> src/term.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 285 | impl PTerm { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 291 | pub fn evaluate(&mut self, env_tracker: &Environment) -> Result>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Title` is never constructed [INFO] [stdout] --> src/term.rs:416:5 [INFO] [stdout] | [INFO] [stdout] 408 | pub enum TextType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 416 | Title(usize), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add`, `Sub`, `Mul`, and `Div` are never constructed [INFO] [stdout] --> src/term.rs:423:5 [INFO] [stdout] | [INFO] [stdout] 422 | pub enum Operator { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 423 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 424 | Sub, [INFO] [stdout] | ^^^ [INFO] [stdout] 425 | Mul, [INFO] [stdout] | ^^^ [INFO] [stdout] 426 | Div, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_info` and `add_warning` are never used [INFO] [stdout] --> src/pharsers.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl<'a> Parsable<'a> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn add_info(mut self, info: Info) -> Parsable<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn add_warning(mut self, info: Info) -> Parsable<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `prettyprint` is never used [INFO] [stdout] --> src/pharsers.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl Info { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 123 | pub fn prettyprint(&self, full: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/pharsers.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 201 | impl Spanned { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_position` is never used [INFO] [stdout] --> src/pharsers.rs:232:4 [INFO] [stdout] | [INFO] [stdout] 232 | fn string_position(slice:&str, full:&str) -> TextPos { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upper` is never used [INFO] [stdout] --> src/pharsers.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn upper<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lower` is never used [INFO] [stdout] --> src/pharsers.rs:305:4 [INFO] [stdout] | [INFO] [stdout] 305 | fn lower<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `internal_testing` is never used [INFO] [stdout] --> src/pharsers.rs:635:4 [INFO] [stdout] | [INFO] [stdout] 635 | fn internal_testing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_assignment_eqation_evaluate` is never used [INFO] [stdout] --> src/file_parsers.rs:244:4 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/numbersystem.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | if denominator == "" && nominator == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `denominator.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: comparison to empty slice [INFO] [stdout] --> src/numbersystem.rs:212:29 [INFO] [stdout] | [INFO] [stdout] 212 | if denominator == "" && nominator == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `nominator.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: comparison to empty slice [INFO] [stdout] --> src/numbersystem.rs:217:15 [INFO] [stdout] | [INFO] [stdout] 217 | } else if denominator == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `denominator.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: comparison to empty slice [INFO] [stdout] --> src/numbersystem.rs:219:15 [INFO] [stdout] | [INFO] [stdout] 219 | } else if nominator == "" { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `nominator.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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:512:62 [INFO] [stdout] | [INFO] [stdout] 512 | pub fn token<'a, P, T>(to_parse: Parsable<'a>, parser: P) -> ParseResult<'a, T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 527 - return Err((to_parse,info)) [INFO] [stdout] 527 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:545:97 [INFO] [stdout] | [INFO] [stdout] 545 | pub fn optional<'a, P, S, T, R>(to_parse: Parsable<'a>, parser: P, sucess_fn: S, default: R) -> ParseResult<'a, R> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:557:80 [INFO] [stdout] | [INFO] [stdout] 557 | pub fn map<'a, P, S, T, R>(to_parse: Parsable<'a>, parser: P, sucess_fn: S) -> ParseResult<'a, R> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:565:70 [INFO] [stdout] | [INFO] [stdout] 565 | pub fn ignore_result<'a, P, T>(to_parse: Parsable<'a>, parser: P) -> ParseResult<'a, ()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:575:125 [INFO] [stdout] | [INFO] [stdout] 575 | ..._parser: P, closing_parser: Pc) -> ParseResult<'a, T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:599:13 [INFO] [stdout] | [INFO] [stdout] 599 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 599 - return Err((to_parse,info)) [INFO] [stdout] 599 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:606:62 [INFO] [stdout] | [INFO] [stdout] 606 | pub fn until<'a, P, T>(to_parse: Parsable<'a>, parser: P) -> ParseResult<'a, (String, T)> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:630:13 [INFO] [stdout] | [INFO] [stdout] 630 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 630 - return Err((to_parse, info)) [INFO] [stdout] 630 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: literal with an empty format string [INFO] [stdout] --> src/pharsers.rs:654:38 [INFO] [stdout] | [INFO] [stdout] 654 | println!("actual blackbird: {}", "🐦⬛"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stdout] = note: `#[warn(clippy::print_literal)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 654 - println!("actual blackbird: {}", "🐦⬛"); [INFO] [stdout] 654 + println!("actual blackbird: 🐦⬛"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this loop could be written as a `while let` loop [INFO] [stdout] --> src/numbersystem.rs:379:13 [INFO] [stdout] | [INFO] [stdout] 379 | / loop { [INFO] [stdout] 380 | | match iterator.next() { [INFO] [stdout] 381 | | Some(a) => { [INFO] [stdout] 382 | | for base_unit in a.split("*") { [INFO] [stdout] ... | [INFO] [stdout] 397 | | } [INFO] [stdout] | |_____________^ help: try: `while let Some(a) = iterator.next() { .. }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop [INFO] [stdout] = note: `#[warn(clippy::while_let_loop)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | fn separated_digits<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | return Ok((format!("{a}"), to_parse)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 38 - return Ok((format!("{a}"), to_parse)) [INFO] [stdout] 38 + Ok((format!("{a}"), to_parse)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:28:43 [INFO] [stdout] | [INFO] [stdout] 28 | let (_, to_parse) = many(to_parse,|x|alt(x, vec![&|x|char(x,' '), &|x|char(x,'\'')]))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | let (_, to_parse) = many(to_parse,|x|alt(x, vec![&|x|char(x,' '), &|x|char(x,'\'')]))?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:28:76 [INFO] [stdout] | [INFO] [stdout] 28 | let (_, to_parse) = many(to_parse,|x|alt(x, vec![&|x|char(x,' '), &|x|char(x,'\'')]))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/language_parsers.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | return Ok((format!("{a}"), to_parse)) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: consider using `.to_string()`: `a.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/numbersystem.rs:506:9 [INFO] [stdout] | [INFO] [stdout] 506 | format!("{}", self.symbol.to_owned().unwrap_or_else(|| show_unit_pretty(&self.base_quantity, self.symbol.clone()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `self.symbol.to_owned().unwrap_or_else(|| show_unit_pretty(&self.base_quantity, self.symbol.clone())).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] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:57:48 [INFO] [stdout] | [INFO] [stdout] 57 | fn fin_rational<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, (bool, usize, usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 94 - return Err((to_parse,info)) [INFO] [stdout] 94 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:58:58 [INFO] [stdout] | [INFO] [stdout] 58 | fn fin_rational_inner<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, (bool, usize, usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:59:58 [INFO] [stdout] | [INFO] [stdout] 59 | let (is_negative, to_parse) = optional(to_parse, |x|char(x, '-'), |x, _|Ok((true, x)), false)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:59:75 [INFO] [stdout] | [INFO] [stdout] 59 | let (is_negative, to_parse) = optional(to_parse, |x|char(x, '-'), |x, _|Ok((true, x)), false)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/language_parsers.rs:68:79 [INFO] [stdout] | [INFO] [stdout] 68 | \n The error when converting to a number was: {}", convert_msg.to_string()), [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [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] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:74:60 [INFO] [stdout] | [INFO] [stdout] 74 | ... optional(to_parse, |x|alt(x, vec![&|x|char(x,'.'), &|x|char(x,',')]), |x,_|separated_digits(x), "0".to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:74:76 [INFO] [stdout] | [INFO] [stdout] 74 | ... let (number_string, to_parse) = optional(to_parse, |x|alt(x, vec![&|x|char(x,'.'), &|x|char(x,',')]), |x,_|separated_digits(x)... [INFO] [stdout] | ^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:74:93 [INFO] [stdout] | [INFO] [stdout] 74 | ...se, |x|alt(x, vec![&|x|char(x,'.'), &|x|char(x,',')]), |x,_|separated_digits(x), "0".to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:74:111 [INFO] [stdout] | [INFO] [stdout] 74 | ...char(x,'.'), &|x|char(x,',')]), |x,_|separated_digits(x), "0".to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/language_parsers.rs:80:79 [INFO] [stdout] | [INFO] [stdout] 80 | \n The error when converting to a number was: {}", convert_msg.to_string()), [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [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] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:104:46 [INFO] [stdout] | [INFO] [stdout] 104 | fn e_notation<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, (bool, usize, usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 124 - return Err((to_parse, info)) [INFO] [stdout] 124 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `arr` [INFO] [stdout] --> src/numbersystem.rs:612:26 [INFO] [stdout] | [INFO] [stdout] 612 | for i in 0..capacity { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 612 - for i in 0..capacity { [INFO] [stdout] 612 + for (i, ) in arr.iter().enumerate().take(capacity) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:108:51 [INFO] [stdout] | [INFO] [stdout] 108 | let (_, to_parse) = match alt(to_parse, vec![&|x|char(x, 'e'), &|x|char(x, 'E')]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:108:69 [INFO] [stdout] | [INFO] [stdout] 108 | let (_, to_parse) = match alt(to_parse, vec![&|x|char(x, 'e'), &|x|char(x, 'E')]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/language_parsers.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn number<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [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] 142 - pub fn number<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] 142 + pub fn number<'a>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:142:80 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn number<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 187 - return Err((to_parse,info)) [INFO] [stdout] 187 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/numbersystem.rs:625:47 [INFO] [stdout] | [INFO] [stdout] 625 | Name::from_str(&format!("{}{}{}", left.to_string(), separator, right.to_string())) [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:153:67 [INFO] [stdout] | [INFO] [stdout] 153 | let (exponent, to_parse) = optional(to_parse, e_notation, |a, b|Ok((b, a)), (false, 0, 0, 1))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | |to_parse|unit(to_parse, env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | |to_parse, res|Ok((res, to_parse)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/language_parsers.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | fn unit<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Unit> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 195 - fn unit<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Unit> { [INFO] [stdout] 195 + fn unit<'a> (to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, Unit> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:195:75 [INFO] [stdout] | [INFO] [stdout] 195 | fn unit<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Unit> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:203:31 [INFO] [stdout] | [INFO] [stdout] 203 | Some(unit) => return Ok((unit.get_content().to_owned(), to_parse)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 203 - Some(unit) => return Ok((unit.get_content().to_owned(), to_parse)), [INFO] [stdout] 203 + Some(unit) => Ok((unit.get_content().to_owned(), to_parse)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/numbersystem.rs:625:77 [INFO] [stdout] | [INFO] [stdout] 625 | Name::from_str(&format!("{}{}{}", left.to_string(), separator, right.to_string())) [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [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] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 209 - return Err((to_parse, info)) [INFO] [stdout] 209 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | ... return Ok((unit, to_parse)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 223 - return Ok((unit, to_parse)); [INFO] [stdout] 223 + Ok((unit, to_parse)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:244:21 [INFO] [stdout] | [INFO] [stdout] 244 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 244 - return Err((to_parse, info)) [INFO] [stdout] 244 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:214:36 [INFO] [stdout] | [INFO] [stdout] 214 | match within(to_parse, |x|char(x, '['), [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | |x|parse_expression(x, env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | |x|char(x, ']')) [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:252:52 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn line_comment<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, Text> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:253:41 [INFO] [stdout] | [INFO] [stdout] 253 | let (_, to_parse) = token(to_parse, |x|this_string(x, LINE_COMMENT))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | |x,_|Ok((TextType::Normal, x)), TextType::StrikeThrough).expect("many parser should never be able to fail"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:259:48 [INFO] [stdout] | [INFO] [stdout] 259 | ...se) = (many(to_parse, |x|item_satisfies(x, |c|c!= (0xA as char) ))).expect("many parser should never be able to fail"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:269:64 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn parse_evaluation_pattern<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, Span> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 285 - return Err((to_parse,info)) [INFO] [stdout] 285 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:272:41 [INFO] [stdout] | [INFO] [stdout] 272 | let eq_result = token(to_parse, |x|this_string(x, EVALUATE)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:292:90 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn parse_expression<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:298:10 [INFO] [stdout] | [INFO] [stdout] 298 | &|x|number(x, &env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:298:23 [INFO] [stdout] | [INFO] [stdout] 298 | &|x|number(x, &env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:301:10 [INFO] [stdout] | [INFO] [stdout] 301 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:301:23 [INFO] [stdout] | [INFO] [stdout] 301 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:301:40 [INFO] [stdout] | [INFO] [stdout] 301 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:301:77 [INFO] [stdout] | [INFO] [stdout] 301 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:305:62 [INFO] [stdout] | [INFO] [stdout] 305 | break 'inner parse_expression_prime(to_parse, first, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/language_parsers.rs:316:35 [INFO] [stdout] | [INFO] [stdout] 316 | fn parse_expression_prime<'a, 'b>(to_parse: Parsable<'a>, first: PTerm, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 316 - fn parse_expression_prime<'a, 'b>(to_parse: Parsable<'a>, first: PTerm, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] 316 + fn parse_expression_prime<'a>(to_parse: Parsable<'a>, first: PTerm, env_tracker: &Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:316:110 [INFO] [stdout] | [INFO] [stdout] 316 | fn parse_expression_prime<'a, 'b>(to_parse: Parsable<'a>, first: PTerm, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 338 - return Err((to_parse,info)) [INFO] [stdout] 338 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:325:81 [INFO] [stdout] | [INFO] [stdout] 325 | let rhs_result = parse_expression_rhs(to_parse.restore(shallow_parser), &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:332:59 [INFO] [stdout] | [INFO] [stdout] 332 | parse_expression_prime(to_parse, recursive_first, &env_tracker) [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/language_parsers.rs:345:33 [INFO] [stdout] | [INFO] [stdout] 345 | fn parse_expression_rhs<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 345 - fn parse_expression_rhs<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] 345 + fn parse_expression_rhs<'a>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:345:94 [INFO] [stdout] | [INFO] [stdout] 345 | fn parse_expression_rhs<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 395 - return Err((to_parse,info)) [INFO] [stdout] 395 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:355:18 [INFO] [stdout] | [INFO] [stdout] 355 | &|x|number(x, &env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:355:31 [INFO] [stdout] | [INFO] [stdout] 355 | &|x|number(x, &env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:358:18 [INFO] [stdout] | [INFO] [stdout] 358 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:358:31 [INFO] [stdout] | [INFO] [stdout] 358 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:358:48 [INFO] [stdout] | [INFO] [stdout] 358 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:358:85 [INFO] [stdout] | [INFO] [stdout] 358 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:376:105 [INFO] [stdout] | [INFO] [stdout] 376 | let third_res = parse_expression_rhs(modified_to_parse.restore(shallow_parser), &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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 if-then-else expression returns a bool literal [INFO] [stdout] --> src/language_parsers.rs:413:5 [INFO] [stdout] | [INFO] [stdout] 413 | / if *op1 == Operator::Infix("*".to_string()) || *op1 == Operator::Infix("/".to_string()) { [INFO] [stdout] 414 | | true [INFO] [stdout] 415 | | } else { [INFO] [stdout] 416 | | false [INFO] [stdout] 417 | | } [INFO] [stdout] | |_____^ help: you can reduce it to: `*op1 == Operator::Infix("*".to_string()) || *op1 == Operator::Infix("/".to_string())` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:420:50 [INFO] [stdout] | [INFO] [stdout] 420 | fn parse_variable<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/language_parsers.rs:422:46 [INFO] [stdout] | [INFO] [stdout] 422 | let (var, to_parse) = map(to_parse, sym, |sym|Term::Var(sym))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Term::Var` [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 `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:425:50 [INFO] [stdout] | [INFO] [stdout] 425 | fn parse_infix_op<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, Operator> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/language_parsers.rs:426:30 [INFO] [stdout] | [INFO] [stdout] 426 | map( to_parse, operator, |op|Operator::Infix(op)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Operator::Infix` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:428:50 [INFO] [stdout] | [INFO] [stdout] 428 | fn parse_function<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse_file<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ((), Parsable<'a>) { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 11 - pub fn parse_file<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ((), Parsable<'a>) { [INFO] [stdout] 11 + pub fn parse_file<'a>(to_parse: Parsable<'a>, env_tracker: &mut Environment) -> ((), Parsable<'a>) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | .or_else(|(x, e_assign_eval)|parse_assignment(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 17 | | .or_else(|(x, e_assignment)|parse_equation(x, env_tracker) [INFO] [stdout] 18 | | .or_else(|(x, e_equation)|parse_comment(x, env_tracker) [INFO] [stdout] 19 | | .or_else(|(x, e_comment)|parse_to_evaluate(x, env_tracker) [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |___________________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | .or_else(|(x, e_assignment)|parse_equation(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 18 | | .or_else(|(x, e_equation)|parse_comment(x, env_tracker) [INFO] [stdout] 19 | | .or_else(|(x, e_comment)|parse_to_evaluate(x, env_tracker) [INFO] [stdout] 20 | | .or_else(|(x, e_evaluate)|parse_quantity_definition(x, env_tracker) [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |__________________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/term.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | let overwritten_term = self.variables.insert(var, term_index).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.variables.insert(var, term_index)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/term.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | let overwritten_term = self.variables.insert(var, term_index).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.variables.insert(var, term_index)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | .or_else(|(x, e_equation)|parse_comment(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 19 | | .or_else(|(x, e_comment)|parse_to_evaluate(x, env_tracker) [INFO] [stdout] 20 | | .or_else(|(x, e_evaluate)|parse_quantity_definition(x, env_tracker) [INFO] [stdout] 21 | | .or_else(|(x, e_quantity)|parse_unit_definition(x, env_tracker) [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |_________________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/term.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let overwritten_term = self.quantity_map.insert(symbol, quantity_index).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.quantity_map.insert(symbol, quantity_index)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | .or_else(|(x, e_comment)|parse_to_evaluate(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 20 | | .or_else(|(x, e_evaluate)|parse_quantity_definition(x, env_tracker) [INFO] [stdout] 21 | | .or_else(|(x, e_quantity)|parse_unit_definition(x, env_tracker) [INFO] [stdout] 22 | | .or_else(|(x, e_unit)|ignore_result(x, obligatory_space) // this makes sure that all trailing whitespaces are parsed [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |________________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | .or_else(|(x, e_evaluate)|parse_quantity_definition(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 21 | | .or_else(|(x, e_quantity)|parse_unit_definition(x, env_tracker) [INFO] [stdout] 22 | | .or_else(|(x, e_unit)|ignore_result(x, obligatory_space) // this makes sure that all trailing whitespaces are parsed [INFO] [stdout] 23 | | .or_else( [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |_______________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | .or_else(|(x, e_quantity)|parse_unit_definition(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 22 | | .or_else(|(x, e_unit)|ignore_result(x, obligatory_space) // this makes sure that all trailing whitespaces are parsed [INFO] [stdout] 23 | | .or_else( [INFO] [stdout] 24 | | |(x, e_trailing_space)| { [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |______________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/term.rs:133:32 [INFO] [stdout] | [INFO] [stdout] 133 | let overwritten_term = self.unit_map.insert(symbol, unit_index).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.unit_map.insert(symbol, unit_index)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | .or_else(|(x, e_unit)|ignore_result(x, obligatory_space) // this makes sure that all trailing whitespaces are parsed [INFO] [stdout] | __________________^ [INFO] [stdout] 23 | | .or_else( [INFO] [stdout] 24 | | |(x, e_trailing_space)| { [INFO] [stdout] 25 | | let info = Info { msg: format!("Unexpected pattern. Expected assignment, comment or trailing whitespace. \ [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |_____________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Result.or_else(|x| Err(y))`, which is more succinctly expressed as `map_err(|x| y)` [INFO] [stdout] --> src/file_parsers.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 22 | .or_else(|(x, e_unit)|ignore_result(x, obligatory_space) // this makes sure that all trailing whitespaces are parsed [INFO] [stdout] | _______________________________^ [INFO] [stdout] 23 | | .or_else( [INFO] [stdout] 24 | | |(x, e_trailing_space)| { [INFO] [stdout] 25 | | let info = Info { msg: format!("Unexpected pattern. Expected assignment, comment or trailing whitespace. \ [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |_____________^ [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] help: use `map_err` instead [INFO] [stdout] | [INFO] [stdout] 23 ~ .map_err( [INFO] [stdout] 24 | |(x, e_trailing_space)| { [INFO] [stdout] ... [INFO] [stdout] 37 | }; [INFO] [stdout] 38 ~ (x, info) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | / |(x, e_trailing_space)| { [INFO] [stdout] 25 | | let info = Info { msg: format!("Unexpected pattern. Expected assignment, comment or trailing whitespace. \ [INFO] [stdout] 26 | | The errors of these parsers are the following:\n \ [INFO] [stdout] 27 | | assignment and evaluation: \t{e_assign_eval:?}\n \ [INFO] [stdout] ... | [INFO] [stdout] 38 | | Err((x, info)) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_________________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:50:63 [INFO] [stdout] | [INFO] [stdout] 50 | let (consumed, mut to_parse) = many(to_parse, |x|item_satisfies(x, |c| c != (0xA as char))).ok().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:68:94 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn parse_assignment<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/term.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | return return_value [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] 190 - return return_value [INFO] [stdout] 190 + return_value [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 108 - return Err((to_parse,info)) [INFO] [stdout] 108 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:84:41 [INFO] [stdout] | [INFO] [stdout] 84 | let eq_result = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:87:54 [INFO] [stdout] | [INFO] [stdout] 87 | let expr_result = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | fn parse_comment<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()>{ [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 113 - fn parse_comment<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()>{ [INFO] [stdout] 113 + fn parse_comment<'a>(to_parse: Parsable<'a>, env_tracker: &mut Environment) -> ParseResult<'a, ()>{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:113:87 [INFO] [stdout] | [INFO] [stdout] 113 | fn parse_comment<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:121:95 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn parse_to_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 137 - return Err((to_parse, info)) [INFO] [stdout] 137 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/term.rs:204:29 [INFO] [stdout] | [INFO] [stdout] 204 | Some(result) => return result.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 204 - Some(result) => return result.clone(), [INFO] [stdout] 204 + Some(result) => result.clone(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:124:54 [INFO] [stdout] | [INFO] [stdout] 124 | let expr_result = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:145:88 [INFO] [stdout] | [INFO] [stdout] 145 | fn parse_equation<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/term.rs:219:80 [INFO] [stdout] | [INFO] [stdout] 219 | fn first_evaluate(&self, variable_map: &HashMap, variables: &Vec) -> Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[impl Evaluatable]` [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] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 192 - return Err((to_parse,info)) [INFO] [stdout] 192 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:149:55 [INFO] [stdout] | [INFO] [stdout] 149 | let expr1_result = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:152:41 [INFO] [stdout] | [INFO] [stdout] 152 | let eq_result = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:155:55 [INFO] [stdout] | [INFO] [stdout] 155 | let expr2_result = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:169:45 [INFO] [stdout] | [INFO] [stdout] 169 | let eq_result = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:175:63 [INFO] [stdout] | [INFO] [stdout] 175 | let expr_result = parse_expression(to_parse_loop, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:199:102 [INFO] [stdout] | [INFO] [stdout] 199 | fn parse_assignment_to_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 237 - return Err((to_parse,info)) [INFO] [stdout] 237 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:209:41 [INFO] [stdout] | [INFO] [stdout] 209 | let eq_result = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:212:54 [INFO] [stdout] | [INFO] [stdout] 212 | let expr_result = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:244:42 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 244 - fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] 244 + fn parse_assignment_eqation_evaluate<'a>(to_parse: Parsable<'a>, env_tracker: &mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:244:107 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:248:34 [INFO] [stdout] | [INFO] [stdout] 248 | fn parse_quantity_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 248 - fn parse_quantity_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] 248 + fn parse_quantity_definition<'a>(to_parse: Parsable<'a>, env_tracker: &mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:248:99 [INFO] [stdout] | [INFO] [stdout] 248 | fn parse_quantity_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:326:13 [INFO] [stdout] | [INFO] [stdout] 326 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 326 - return Err((to_parse,info)) [INFO] [stdout] 326 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/file_parsers.rs:252:29 [INFO] [stdout] | [INFO] [stdout] 252 | fn derived_quantity<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, Quantity> { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:252:87 [INFO] [stdout] | [INFO] [stdout] 252 | fn derived_quantity<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, Quantity> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:281:17 [INFO] [stdout] | [INFO] [stdout] 281 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 281 - return Err((to_parse,info)) [INFO] [stdout] 281 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:255:42 [INFO] [stdout] | [INFO] [stdout] 255 | let eq_res = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/term.rs:345:20 [INFO] [stdout] | [INFO] [stdout] 345 | val if *val == "*".to_string() => Ok(left * right), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] = note: `#[warn(clippy::cmp_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:258:55 [INFO] [stdout] | [INFO] [stdout] 258 | let expr_res = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:262:42 [INFO] [stdout] | [INFO] [stdout] 262 | match term.evaluate_quantity(&env_tracker) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | |x|until(x, |x|item_satisfies(x, |c|c == ':' || c == (0xA as char))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/term.rs:346:20 [INFO] [stdout] | [INFO] [stdout] 346 | val if *val == "/".to_string() => left / right, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/term.rs:347:20 [INFO] [stdout] | [INFO] [stdout] 347 | val if *val == "+".to_string() => left + right, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/term.rs:348:20 [INFO] [stdout] | [INFO] [stdout] 348 | val if *val == "-".to_string() => left - right, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:294:25 [INFO] [stdout] | [INFO] [stdout] 294 | |x|until(x, |x|item_satisfies(x, |c|c == ':' || c == (0xA as char))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:295:13 [INFO] [stdout] | [INFO] [stdout] 295 | |x, (quantity_name, _separator)| Ok((Some(quantity_name), x)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:305:13 [INFO] [stdout] | [INFO] [stdout] 305 | |x|derived_quantity(x, env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | |to_parse, quantity|Ok((quantity.base_quantity, to_parse)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:333:30 [INFO] [stdout] | [INFO] [stdout] 333 | fn parse_unit_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 333 - fn parse_unit_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] 333 + fn parse_unit_definition<'a>(to_parse: Parsable<'a>, env_tracker: &mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:333:95 [INFO] [stdout] | [INFO] [stdout] 333 | fn parse_unit_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:483:13 [INFO] [stdout] | [INFO] [stdout] 483 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 483 - return Err((to_parse,info)) [INFO] [stdout] 483 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:337:31 [INFO] [stdout] | [INFO] [stdout] 337 | fn quantity_indicator<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Spanned> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 337 - fn quantity_indicator<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Spanned> { [INFO] [stdout] 337 + fn quantity_indicator<'a> (to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, Spanned> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:337:93 [INFO] [stdout] | [INFO] [stdout] 337 | fn quantity_indicator<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Spanned> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:355:17 [INFO] [stdout] | [INFO] [stdout] 355 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 355 - return Err((to_parse, info)) [INFO] [stdout] 355 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/file_parsers.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | &|x|within(x, |x|char(x, '('), sym, |x|char(x, ')')),)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `|x|within(x, |x|char(x, '('), sym, |x|char(x, ')'))` [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] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:344:14 [INFO] [stdout] | [INFO] [stdout] 344 | &|x|within(x, |x|char(x, '('), sym, |x|char(x, ')')),)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:344:27 [INFO] [stdout] | [INFO] [stdout] 344 | &|x|within(x, |x|char(x, '('), sym, |x|char(x, ')')),)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:344:49 [INFO] [stdout] | [INFO] [stdout] 344 | &|x|within(x, |x|char(x, '('), sym, |x|char(x, ')')),)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/file_parsers.rs:362:25 [INFO] [stdout] | [INFO] [stdout] 362 | fn derived_unit<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, (f64, Unit)> { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:362:83 [INFO] [stdout] | [INFO] [stdout] 362 | fn derived_unit<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, (f64, Unit)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:391:17 [INFO] [stdout] | [INFO] [stdout] 391 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 391 - return Err((to_parse,info)) [INFO] [stdout] 391 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:365:42 [INFO] [stdout] | [INFO] [stdout] 365 | let eq_res = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:368:55 [INFO] [stdout] | [INFO] [stdout] 368 | let expr_res = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:372:38 [INFO] [stdout] | [INFO] [stdout] 372 | match term.evaluate_unit(&env_tracker) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | |x|until(x, |x|item_satisfies(x, |c|c == ':' || c == (0xA as char))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:404:25 [INFO] [stdout] | [INFO] [stdout] 404 | |x|until(x, |x|item_satisfies(x, |c|c == ':' || c == (0xA as char))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | |x, (quantity_name, _separator)| Ok((Some(quantity_name), x)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | |x|quantity_indicator(x, env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/pharsers.rs:124:60 [INFO] [stdout] | [INFO] [stdout] 124 | format!("{} at {}", self.msg, self.pos.to_text_pos(&full)) [INFO] [stdout] | ^^^^^ help: change this to: `full` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:418:13 [INFO] [stdout] | [INFO] [stdout] 418 | |x, sp_quantity|Ok((Some(sp_quantity),x)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:426:13 [INFO] [stdout] | [INFO] [stdout] 426 | |x|derived_unit(x, env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 427 | / |to_parse, (modifier, unit)| { [INFO] [stdout] 428 | | // applies the name and symbol to the derived unit [INFO] [stdout] 429 | | let unit = Unit::new_coded(name.clone(), Some(symbol.clone()), unit.base_unit, modifier, unit.quantity); [INFO] [stdout] 430 | | Ok((Some(unit), to_parse)) [INFO] [stdout] 431 | | }, [INFO] [stdout] | |_____________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/file_parsers.rs:441:39 [INFO] [stdout] | [INFO] [stdout] 441 | let info = Info{ msg: format!("Either a base quantity must be given via 'Unit: name (quantity)', \ [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 442 | | or the unit must be defined with an expression as in 'via Unit: name = unit_expression'"), [INFO] [stdout] | |_________________________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] help: consider using `.to_string()` [INFO] [stdout] | [INFO] [stdout] 441 ~ let info = Info{ msg: "Either a base quantity must be given via 'Unit: name (quantity)', \ [INFO] [stdout] 442 ~ or the unit must be defined with an expression as in 'via Unit: name = unit_expression'".to_string(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/pharsers.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn to_text_pos(&self, full: &str) -> TextPos { [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: this pattern reimplements `Option::unwrap_or` [INFO] [stdout] --> src/pharsers.rs:159:32 [INFO] [stdout] | [INFO] [stdout] 159 | let current_char = match char_array.nth(0) { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 160 | | Some(c) => c, [INFO] [stdout] ... | [INFO] [stdout] 164 | | }; [INFO] [stdout] | |_____________^ help: replace with: `char_array.nth(0).unwrap_or(' ')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/main.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | if parse_errors.len() > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!parse_errors.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: this pattern reimplements `Option::unwrap_or` [INFO] [stdout] --> src/pharsers.rs:177:32 [INFO] [stdout] | [INFO] [stdout] 177 | let current_char = match full.chars().nth(0) { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 178 | | Some(c) => c, [INFO] [stdout] ... | [INFO] [stdout] 182 | | }; [INFO] [stdout] | |_____________^ help: replace with: `full.chars().nth(0).unwrap_or(' ')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:238:48 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn item<'a>(mut to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent [INFO] [stdout] --> src/pharsers.rs:245:11 [INFO] [stdout] | [INFO] [stdout] 245 | match to_parse.content.chars().nth(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `to_parse.content.chars().next()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero [INFO] [stdout] = note: `#[warn(clippy::iter_nth_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:266:87 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn item_satisfies<'a, Predicate>(to_parse: Parsable<'a>, predicate: Predicate) -> ParseResult<'a, char> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:287:46 [INFO] [stdout] | [INFO] [stdout] 287 | fn alphabetic<'a>(to_parse:Parsable<'a> ) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:290:41 [INFO] [stdout] | [INFO] [stdout] 290 | fn digit<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/pharsers.rs:291:33 [INFO] [stdout] | [INFO] [stdout] 291 | item_satisfies(to_parse, |x|x.is_digit(10)) // consider adding pharsers for other common bases [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `x.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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:293:48 [INFO] [stdout] | [INFO] [stdout] 293 | fn alphanumeric<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:296:50 [INFO] [stdout] | [INFO] [stdout] 296 | fn valid_operator<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/pharsers.rs:299:53 [INFO] [stdout] | [INFO] [stdout] 299 | ... !(x == '(') && !(x == ')')) [INFO] [stdout] | ^^^^^^^^^^^ help: try: `(x != '(')` [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: this boolean expression can be simplified [INFO] [stdout] --> src/pharsers.rs:299:68 [INFO] [stdout] | [INFO] [stdout] 299 | ... !(x == '(') && !(x == ')')) [INFO] [stdout] | ^^^^^^^^^^^ help: try: `(x != ')')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:302:41 [INFO] [stdout] | [INFO] [stdout] 302 | fn upper<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:305:41 [INFO] [stdout] | [INFO] [stdout] 305 | fn lower<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:308:65 [INFO] [stdout] | [INFO] [stdout] 308 | pub fn char<'a>(to_parse: Parsable<'a>, char_to_match: char) -> ParseResult<'a, char> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:313:71 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn some<'a, Parser, S>(to_parse: Parsable<'a>, parser: Parser) -> ParseResult<'a, String> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:332:71 [INFO] [stdout] | [INFO] [stdout] 332 | pub fn many<'a, Parser, S>(to_parse: Parsable<'a>, parser: Parser) -> ParseResult<'a, String> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:351:106 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn alt<'a, T>(to_parse: Parsable<'a>, pharsers: Vec<&dyn Fn(Parsable<'a>) -> ParseResult<'a, T>>) -> ParseResult<'a, T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/pharsers.rs:375:12 [INFO] [stdout] | [INFO] [stdout] 375 | fn seq<'a, 'b, T>(to_parse: Parsable<'a>, parsers: Vec<&dyn Fn(Parsable<'a>) -> ParseResult<'a, T>>) -> ParseResult<'a, Vec> [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:375:105 [INFO] [stdout] | [INFO] [stdout] 375 | fn seq<'a, 'b, T>(to_parse: Parsable<'a>, parsers: Vec<&dyn Fn(Parsable<'a>) -> ParseResult<'a, T>>) -> ParseResult<'a, Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:394:13 [INFO] [stdout] | [INFO] [stdout] 394 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 394 - return Err((to_parse,info)) [INFO] [stdout] 394 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:402:44 [INFO] [stdout] | [INFO] [stdout] 402 | pub fn space<'a>(to_parse: Parsable<'a>) ->ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/pharsers.rs:403:20 [INFO] [stdout] | [INFO] [stdout] 403 | many(to_parse, |input| item_satisfies(input, |x| x.is_whitespace())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:406:55 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn obligatory_space<'a>(to_parse: Parsable<'a>) ->ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/pharsers.rs:407:20 [INFO] [stdout] | [INFO] [stdout] 407 | some(to_parse, |input| item_satisfies(input, |x| x.is_whitespace())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:411:49 [INFO] [stdout] | [INFO] [stdout] 411 | pub fn line_space<'a>(to_parse: Parsable<'a>) ->ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/pharsers.rs:412:20 [INFO] [stdout] | [INFO] [stdout] 412 | many(to_parse, |input| item_satisfies(input, |x| x.is_whitespace() && x != (0xA as char))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:418:43 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn nat<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:432:43 [INFO] [stdout] | [INFO] [stdout] 432 | pub fn sym<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:453:65 [INFO] [stdout] | [INFO] [stdout] 453 | pub fn this_string<'a>(to_parse: Parsable<'a>, string: &str) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 465 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 465 - return Err((to_parse, info)) [INFO] [stdout] 465 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:470:13 [INFO] [stdout] | [INFO] [stdout] 470 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 470 - return Err((to_parse, info)) [INFO] [stdout] 470 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:480:48 [INFO] [stdout] | [INFO] [stdout] 480 | pub fn operator<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:512:62 [INFO] [stdout] | [INFO] [stdout] 512 | pub fn token<'a, P, T>(to_parse: Parsable<'a>, parser: P) -> ParseResult<'a, T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 527 - return Err((to_parse,info)) [INFO] [stdout] 527 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:545:97 [INFO] [stdout] | [INFO] [stdout] 545 | pub fn optional<'a, P, S, T, R>(to_parse: Parsable<'a>, parser: P, sucess_fn: S, default: R) -> ParseResult<'a, R> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:557:80 [INFO] [stdout] | [INFO] [stdout] 557 | pub fn map<'a, P, S, T, R>(to_parse: Parsable<'a>, parser: P, sucess_fn: S) -> ParseResult<'a, R> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:565:70 [INFO] [stdout] | [INFO] [stdout] 565 | pub fn ignore_result<'a, P, T>(to_parse: Parsable<'a>, parser: P) -> ParseResult<'a, ()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:575:125 [INFO] [stdout] | [INFO] [stdout] 575 | ..._parser: P, closing_parser: Pc) -> ParseResult<'a, T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:599:13 [INFO] [stdout] | [INFO] [stdout] 599 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 599 - return Err((to_parse,info)) [INFO] [stdout] 599 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/pharsers.rs:606:62 [INFO] [stdout] | [INFO] [stdout] 606 | pub fn until<'a, P, T>(to_parse: Parsable<'a>, parser: P) -> ParseResult<'a, (String, T)> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'a>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'a>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/pharsers.rs:630:13 [INFO] [stdout] | [INFO] [stdout] 630 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 630 - return Err((to_parse, info)) [INFO] [stdout] 630 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: literal with an empty format string [INFO] [stdout] --> src/pharsers.rs:654:38 [INFO] [stdout] | [INFO] [stdout] 654 | println!("actual blackbird: {}", "🐦⬛"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stdout] = note: `#[warn(clippy::print_literal)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 654 - println!("actual blackbird: {}", "🐦⬛"); [INFO] [stdout] 654 + println!("actual blackbird: 🐦⬛"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | fn separated_digits<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | return Ok((format!("{a}"), to_parse)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 38 - return Ok((format!("{a}"), to_parse)) [INFO] [stdout] 38 + Ok((format!("{a}"), to_parse)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:28:43 [INFO] [stdout] | [INFO] [stdout] 28 | let (_, to_parse) = many(to_parse,|x|alt(x, vec![&|x|char(x,' '), &|x|char(x,'\'')]))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | let (_, to_parse) = many(to_parse,|x|alt(x, vec![&|x|char(x,' '), &|x|char(x,'\'')]))?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:28:76 [INFO] [stdout] | [INFO] [stdout] 28 | let (_, to_parse) = many(to_parse,|x|alt(x, vec![&|x|char(x,' '), &|x|char(x,'\'')]))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/language_parsers.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | return Ok((format!("{a}"), to_parse)) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: consider using `.to_string()`: `a.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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:57:48 [INFO] [stdout] | [INFO] [stdout] 57 | fn fin_rational<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, (bool, usize, usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 94 - return Err((to_parse,info)) [INFO] [stdout] 94 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:58:58 [INFO] [stdout] | [INFO] [stdout] 58 | fn fin_rational_inner<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, (bool, usize, usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:59:58 [INFO] [stdout] | [INFO] [stdout] 59 | let (is_negative, to_parse) = optional(to_parse, |x|char(x, '-'), |x, _|Ok((true, x)), false)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:59:75 [INFO] [stdout] | [INFO] [stdout] 59 | let (is_negative, to_parse) = optional(to_parse, |x|char(x, '-'), |x, _|Ok((true, x)), false)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/language_parsers.rs:68:79 [INFO] [stdout] | [INFO] [stdout] 68 | \n The error when converting to a number was: {}", convert_msg.to_string()), [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [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] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:74:60 [INFO] [stdout] | [INFO] [stdout] 74 | ... optional(to_parse, |x|alt(x, vec![&|x|char(x,'.'), &|x|char(x,',')]), |x,_|separated_digits(x), "0".to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:74:76 [INFO] [stdout] | [INFO] [stdout] 74 | ... let (number_string, to_parse) = optional(to_parse, |x|alt(x, vec![&|x|char(x,'.'), &|x|char(x,',')]), |x,_|separated_digits(x)... [INFO] [stdout] | ^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:74:93 [INFO] [stdout] | [INFO] [stdout] 74 | ...se, |x|alt(x, vec![&|x|char(x,'.'), &|x|char(x,',')]), |x,_|separated_digits(x), "0".to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:74:111 [INFO] [stdout] | [INFO] [stdout] 74 | ...char(x,'.'), &|x|char(x,',')]), |x,_|separated_digits(x), "0".to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/language_parsers.rs:80:79 [INFO] [stdout] | [INFO] [stdout] 80 | \n The error when converting to a number was: {}", convert_msg.to_string()), [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [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] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:104:46 [INFO] [stdout] | [INFO] [stdout] 104 | fn e_notation<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, (bool, usize, usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 124 - return Err((to_parse, info)) [INFO] [stdout] 124 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:108:51 [INFO] [stdout] | [INFO] [stdout] 108 | let (_, to_parse) = match alt(to_parse, vec![&|x|char(x, 'e'), &|x|char(x, 'E')]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:108:69 [INFO] [stdout] | [INFO] [stdout] 108 | let (_, to_parse) = match alt(to_parse, vec![&|x|char(x, 'e'), &|x|char(x, 'E')]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/language_parsers.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn number<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [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] 142 - pub fn number<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] 142 + pub fn number<'a>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:142:80 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn number<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 187 - return Err((to_parse,info)) [INFO] [stdout] 187 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:153:67 [INFO] [stdout] | [INFO] [stdout] 153 | let (exponent, to_parse) = optional(to_parse, e_notation, |a, b|Ok((b, a)), (false, 0, 0, 1))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | |to_parse|unit(to_parse, env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | |to_parse, res|Ok((res, to_parse)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/language_parsers.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | fn unit<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Unit> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 195 - fn unit<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Unit> { [INFO] [stdout] 195 + fn unit<'a> (to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, Unit> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:195:75 [INFO] [stdout] | [INFO] [stdout] 195 | fn unit<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Unit> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:203:31 [INFO] [stdout] | [INFO] [stdout] 203 | Some(unit) => return Ok((unit.get_content().to_owned(), to_parse)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 203 - Some(unit) => return Ok((unit.get_content().to_owned(), to_parse)), [INFO] [stdout] 203 + Some(unit) => Ok((unit.get_content().to_owned(), to_parse)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 209 - return Err((to_parse, info)) [INFO] [stdout] 209 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | ... return Ok((unit, to_parse)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 223 - return Ok((unit, to_parse)); [INFO] [stdout] 223 + Ok((unit, to_parse)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:244:21 [INFO] [stdout] | [INFO] [stdout] 244 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 244 - return Err((to_parse, info)) [INFO] [stdout] 244 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:214:36 [INFO] [stdout] | [INFO] [stdout] 214 | match within(to_parse, |x|char(x, '['), [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | |x|parse_expression(x, env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | |x|char(x, ']')) [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:252:52 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn line_comment<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, Text> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:253:41 [INFO] [stdout] | [INFO] [stdout] 253 | let (_, to_parse) = token(to_parse, |x|this_string(x, LINE_COMMENT))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | |x,_|Ok((TextType::Normal, x)), TextType::StrikeThrough).expect("many parser should never be able to fail"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:259:48 [INFO] [stdout] | [INFO] [stdout] 259 | ...se) = (many(to_parse, |x|item_satisfies(x, |c|c!= (0xA as char) ))).expect("many parser should never be able to fail"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:269:64 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn parse_evaluation_pattern<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, Span> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 285 - return Err((to_parse,info)) [INFO] [stdout] 285 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:272:41 [INFO] [stdout] | [INFO] [stdout] 272 | let eq_result = token(to_parse, |x|this_string(x, EVALUATE)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:292:90 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn parse_expression<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:298:10 [INFO] [stdout] | [INFO] [stdout] 298 | &|x|number(x, &env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:298:23 [INFO] [stdout] | [INFO] [stdout] 298 | &|x|number(x, &env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:301:10 [INFO] [stdout] | [INFO] [stdout] 301 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:301:23 [INFO] [stdout] | [INFO] [stdout] 301 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:301:40 [INFO] [stdout] | [INFO] [stdout] 301 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:301:77 [INFO] [stdout] | [INFO] [stdout] 301 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:305:62 [INFO] [stdout] | [INFO] [stdout] 305 | break 'inner parse_expression_prime(to_parse, first, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/language_parsers.rs:316:35 [INFO] [stdout] | [INFO] [stdout] 316 | fn parse_expression_prime<'a, 'b>(to_parse: Parsable<'a>, first: PTerm, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 316 - fn parse_expression_prime<'a, 'b>(to_parse: Parsable<'a>, first: PTerm, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] 316 + fn parse_expression_prime<'a>(to_parse: Parsable<'a>, first: PTerm, env_tracker: &Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:316:110 [INFO] [stdout] | [INFO] [stdout] 316 | fn parse_expression_prime<'a, 'b>(to_parse: Parsable<'a>, first: PTerm, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 338 - return Err((to_parse,info)) [INFO] [stdout] 338 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:325:81 [INFO] [stdout] | [INFO] [stdout] 325 | let rhs_result = parse_expression_rhs(to_parse.restore(shallow_parser), &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:332:59 [INFO] [stdout] | [INFO] [stdout] 332 | parse_expression_prime(to_parse, recursive_first, &env_tracker) [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/language_parsers.rs:345:33 [INFO] [stdout] | [INFO] [stdout] 345 | fn parse_expression_rhs<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 345 - fn parse_expression_rhs<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] 345 + fn parse_expression_rhs<'a>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:345:94 [INFO] [stdout] | [INFO] [stdout] 345 | fn parse_expression_rhs<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/language_parsers.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 395 - return Err((to_parse,info)) [INFO] [stdout] 395 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:355:18 [INFO] [stdout] | [INFO] [stdout] 355 | &|x|number(x, &env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:355:31 [INFO] [stdout] | [INFO] [stdout] 355 | &|x|number(x, &env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:358:18 [INFO] [stdout] | [INFO] [stdout] 358 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:358:31 [INFO] [stdout] | [INFO] [stdout] 358 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:358:48 [INFO] [stdout] | [INFO] [stdout] 358 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/language_parsers.rs:358:85 [INFO] [stdout] | [INFO] [stdout] 358 | &|x|within(x, |x|char(x, '('), |x|parse_expression(x, env_tracker), |x|char(x, ')')) // nesting is free. [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/language_parsers.rs:376:105 [INFO] [stdout] | [INFO] [stdout] 376 | let third_res = parse_expression_rhs(modified_to_parse.restore(shallow_parser), &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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 if-then-else expression returns a bool literal [INFO] [stdout] --> src/language_parsers.rs:413:5 [INFO] [stdout] | [INFO] [stdout] 413 | / if *op1 == Operator::Infix("*".to_string()) || *op1 == Operator::Infix("/".to_string()) { [INFO] [stdout] 414 | | true [INFO] [stdout] 415 | | } else { [INFO] [stdout] 416 | | false [INFO] [stdout] 417 | | } [INFO] [stdout] | |_____^ help: you can reduce it to: `*op1 == Operator::Infix("*".to_string()) || *op1 == Operator::Infix("/".to_string())` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:420:50 [INFO] [stdout] | [INFO] [stdout] 420 | fn parse_variable<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/language_parsers.rs:422:46 [INFO] [stdout] | [INFO] [stdout] 422 | let (var, to_parse) = map(to_parse, sym, |sym|Term::Var(sym))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Term::Var` [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 `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:425:50 [INFO] [stdout] | [INFO] [stdout] 425 | fn parse_infix_op<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, Operator> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/language_parsers.rs:426:30 [INFO] [stdout] | [INFO] [stdout] 426 | map( to_parse, operator, |op|Operator::Infix(op)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Operator::Infix` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/language_parsers.rs:428:50 [INFO] [stdout] | [INFO] [stdout] 428 | fn parse_function<'a>(to_parse: Parsable<'a>) -> ParseResult<'a, PTerm> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse_file<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ((), Parsable<'a>) { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 11 - pub fn parse_file<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ((), Parsable<'a>) { [INFO] [stdout] 11 + pub fn parse_file<'a>(to_parse: Parsable<'a>, env_tracker: &mut Environment) -> ((), Parsable<'a>) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | .or_else(|(x, e_assign_eval)|parse_assignment(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 17 | | .or_else(|(x, e_assignment)|parse_equation(x, env_tracker) [INFO] [stdout] 18 | | .or_else(|(x, e_equation)|parse_comment(x, env_tracker) [INFO] [stdout] 19 | | .or_else(|(x, e_comment)|parse_to_evaluate(x, env_tracker) [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |___________________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | .or_else(|(x, e_assignment)|parse_equation(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 18 | | .or_else(|(x, e_equation)|parse_comment(x, env_tracker) [INFO] [stdout] 19 | | .or_else(|(x, e_comment)|parse_to_evaluate(x, env_tracker) [INFO] [stdout] 20 | | .or_else(|(x, e_evaluate)|parse_quantity_definition(x, env_tracker) [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |__________________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | .or_else(|(x, e_equation)|parse_comment(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 19 | | .or_else(|(x, e_comment)|parse_to_evaluate(x, env_tracker) [INFO] [stdout] 20 | | .or_else(|(x, e_evaluate)|parse_quantity_definition(x, env_tracker) [INFO] [stdout] 21 | | .or_else(|(x, e_quantity)|parse_unit_definition(x, env_tracker) [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |_________________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | .or_else(|(x, e_comment)|parse_to_evaluate(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 20 | | .or_else(|(x, e_evaluate)|parse_quantity_definition(x, env_tracker) [INFO] [stdout] 21 | | .or_else(|(x, e_quantity)|parse_unit_definition(x, env_tracker) [INFO] [stdout] 22 | | .or_else(|(x, e_unit)|ignore_result(x, obligatory_space) // this makes sure that all trailing whitespaces are parsed [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |________________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | .or_else(|(x, e_evaluate)|parse_quantity_definition(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 21 | | .or_else(|(x, e_quantity)|parse_unit_definition(x, env_tracker) [INFO] [stdout] 22 | | .or_else(|(x, e_unit)|ignore_result(x, obligatory_space) // this makes sure that all trailing whitespaces are parsed [INFO] [stdout] 23 | | .or_else( [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |_______________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | .or_else(|(x, e_quantity)|parse_unit_definition(x, env_tracker) [INFO] [stdout] | __________________^ [INFO] [stdout] 22 | | .or_else(|(x, e_unit)|ignore_result(x, obligatory_space) // this makes sure that all trailing whitespaces are parsed [INFO] [stdout] 23 | | .or_else( [INFO] [stdout] 24 | | |(x, e_trailing_space)| { [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |______________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | .or_else(|(x, e_unit)|ignore_result(x, obligatory_space) // this makes sure that all trailing whitespaces are parsed [INFO] [stdout] | __________________^ [INFO] [stdout] 23 | | .or_else( [INFO] [stdout] 24 | | |(x, e_trailing_space)| { [INFO] [stdout] 25 | | let info = Info { msg: format!("Unexpected pattern. Expected assignment, comment or trailing whitespace. \ [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |_____________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Result.or_else(|x| Err(y))`, which is more succinctly expressed as `map_err(|x| y)` [INFO] [stdout] --> src/file_parsers.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 22 | .or_else(|(x, e_unit)|ignore_result(x, obligatory_space) // this makes sure that all trailing whitespaces are parsed [INFO] [stdout] | _______________________________^ [INFO] [stdout] 23 | | .or_else( [INFO] [stdout] 24 | | |(x, e_trailing_space)| { [INFO] [stdout] 25 | | let info = Info { msg: format!("Unexpected pattern. Expected assignment, comment or trailing whitespace. \ [INFO] [stdout] ... | [INFO] [stdout] 40 | | )))))))); // one bracket for each parser in the .or_else chain, to keep errors in the scope of the last or_else. [INFO] [stdout] | |_____________^ [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] help: use `map_err` instead [INFO] [stdout] | [INFO] [stdout] 23 ~ .map_err( [INFO] [stdout] 24 | |(x, e_trailing_space)| { [INFO] [stdout] ... [INFO] [stdout] 37 | }; [INFO] [stdout] 38 ~ (x, info) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | / |(x, e_trailing_space)| { [INFO] [stdout] 25 | | let info = Info { msg: format!("Unexpected pattern. Expected assignment, comment or trailing whitespace. \ [INFO] [stdout] 26 | | The errors of these parsers are the following:\n \ [INFO] [stdout] 27 | | assignment and evaluation: \t{e_assign_eval:?}\n \ [INFO] [stdout] ... | [INFO] [stdout] 38 | | Err((x, info)) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_________________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:50:63 [INFO] [stdout] | [INFO] [stdout] 50 | let (consumed, mut to_parse) = many(to_parse, |x|item_satisfies(x, |c| c != (0xA as char))).ok().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:68:94 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn parse_assignment<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 108 - return Err((to_parse,info)) [INFO] [stdout] 108 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:84:41 [INFO] [stdout] | [INFO] [stdout] 84 | let eq_result = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:87:54 [INFO] [stdout] | [INFO] [stdout] 87 | let expr_result = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | fn parse_comment<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()>{ [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 113 - fn parse_comment<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()>{ [INFO] [stdout] 113 + fn parse_comment<'a>(to_parse: Parsable<'a>, env_tracker: &mut Environment) -> ParseResult<'a, ()>{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:113:87 [INFO] [stdout] | [INFO] [stdout] 113 | fn parse_comment<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:121:95 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn parse_to_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 137 - return Err((to_parse, info)) [INFO] [stdout] 137 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:124:54 [INFO] [stdout] | [INFO] [stdout] 124 | let expr_result = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:145:88 [INFO] [stdout] | [INFO] [stdout] 145 | fn parse_equation<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 192 - return Err((to_parse,info)) [INFO] [stdout] 192 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:149:55 [INFO] [stdout] | [INFO] [stdout] 149 | let expr1_result = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:152:41 [INFO] [stdout] | [INFO] [stdout] 152 | let eq_result = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:155:55 [INFO] [stdout] | [INFO] [stdout] 155 | let expr2_result = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:169:45 [INFO] [stdout] | [INFO] [stdout] 169 | let eq_result = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:175:63 [INFO] [stdout] | [INFO] [stdout] 175 | let expr_result = parse_expression(to_parse_loop, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:199:102 [INFO] [stdout] | [INFO] [stdout] 199 | fn parse_assignment_to_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 237 - return Err((to_parse,info)) [INFO] [stdout] 237 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:209:41 [INFO] [stdout] | [INFO] [stdout] 209 | let eq_result = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:212:54 [INFO] [stdout] | [INFO] [stdout] 212 | let expr_result = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:244:42 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 244 - fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] 244 + fn parse_assignment_eqation_evaluate<'a>(to_parse: Parsable<'a>, env_tracker: &mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:244:107 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_assignment_eqation_evaluate<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:248:34 [INFO] [stdout] | [INFO] [stdout] 248 | fn parse_quantity_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 248 - fn parse_quantity_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] 248 + fn parse_quantity_definition<'a>(to_parse: Parsable<'a>, env_tracker: &mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:248:99 [INFO] [stdout] | [INFO] [stdout] 248 | fn parse_quantity_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:326:13 [INFO] [stdout] | [INFO] [stdout] 326 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 326 - return Err((to_parse,info)) [INFO] [stdout] 326 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/file_parsers.rs:252:29 [INFO] [stdout] | [INFO] [stdout] 252 | fn derived_quantity<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, Quantity> { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:252:87 [INFO] [stdout] | [INFO] [stdout] 252 | fn derived_quantity<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, Quantity> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:281:17 [INFO] [stdout] | [INFO] [stdout] 281 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 281 - return Err((to_parse,info)) [INFO] [stdout] 281 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:255:42 [INFO] [stdout] | [INFO] [stdout] 255 | let eq_res = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:258:55 [INFO] [stdout] | [INFO] [stdout] 258 | let expr_res = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:262:42 [INFO] [stdout] | [INFO] [stdout] 262 | match term.evaluate_quantity(&env_tracker) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | |x|until(x, |x|item_satisfies(x, |c|c == ':' || c == (0xA as char))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:294:25 [INFO] [stdout] | [INFO] [stdout] 294 | |x|until(x, |x|item_satisfies(x, |c|c == ':' || c == (0xA as char))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:295:13 [INFO] [stdout] | [INFO] [stdout] 295 | |x, (quantity_name, _separator)| Ok((Some(quantity_name), x)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:305:13 [INFO] [stdout] | [INFO] [stdout] 305 | |x|derived_quantity(x, env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | |to_parse, quantity|Ok((quantity.base_quantity, to_parse)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:333:30 [INFO] [stdout] | [INFO] [stdout] 333 | fn parse_unit_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 333 - fn parse_unit_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] 333 + fn parse_unit_definition<'a>(to_parse: Parsable<'a>, env_tracker: &mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:333:95 [INFO] [stdout] | [INFO] [stdout] 333 | fn parse_unit_definition<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &'b mut Environment) -> ParseResult<'a, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:483:13 [INFO] [stdout] | [INFO] [stdout] 483 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 483 - return Err((to_parse,info)) [INFO] [stdout] 483 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> src/file_parsers.rs:337:31 [INFO] [stdout] | [INFO] [stdout] 337 | fn quantity_indicator<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Spanned> { [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] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 337 - fn quantity_indicator<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Spanned> { [INFO] [stdout] 337 + fn quantity_indicator<'a> (to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, Spanned> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:337:93 [INFO] [stdout] | [INFO] [stdout] 337 | fn quantity_indicator<'a, 'b> (to_parse: Parsable<'a>, env_tracker: &'b Environment) -> ParseResult<'a, Spanned> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:355:17 [INFO] [stdout] | [INFO] [stdout] 355 | return Err((to_parse, info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 355 - return Err((to_parse, info)) [INFO] [stdout] 355 + Err((to_parse, info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/file_parsers.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | &|x|within(x, |x|char(x, '('), sym, |x|char(x, ')')),)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `|x|within(x, |x|char(x, '('), sym, |x|char(x, ')'))` [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] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:344:14 [INFO] [stdout] | [INFO] [stdout] 344 | &|x|within(x, |x|char(x, '('), sym, |x|char(x, ')')),)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:344:27 [INFO] [stdout] | [INFO] [stdout] 344 | &|x|within(x, |x|char(x, '('), sym, |x|char(x, ')')),)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:344:49 [INFO] [stdout] | [INFO] [stdout] 344 | &|x|within(x, |x|char(x, '('), sym, |x|char(x, ')')),)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/file_parsers.rs:362:25 [INFO] [stdout] | [INFO] [stdout] 362 | fn derived_unit<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, (f64, Unit)> { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/file_parsers.rs:362:83 [INFO] [stdout] | [INFO] [stdout] 362 | fn derived_unit<'a, 'b>(to_parse: Parsable<'a>, env_tracker: &Environment) -> ParseResult<'a, (f64, Unit)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/file_parsers.rs:391:17 [INFO] [stdout] | [INFO] [stdout] 391 | return Err((to_parse,info)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 391 - return Err((to_parse,info)) [INFO] [stdout] 391 + Err((to_parse,info)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:365:42 [INFO] [stdout] | [INFO] [stdout] 365 | let eq_res = token(to_parse, |x|this_string(x, ASSIGNMENT)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:368:55 [INFO] [stdout] | [INFO] [stdout] 368 | let expr_res = parse_expression(to_parse, &env_tracker); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/file_parsers.rs:372:38 [INFO] [stdout] | [INFO] [stdout] 372 | match term.evaluate_unit(&env_tracker) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `env_tracker` [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | |x|until(x, |x|item_satisfies(x, |c|c == ':' || c == (0xA as char))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:404:25 [INFO] [stdout] | [INFO] [stdout] 404 | |x|until(x, |x|item_satisfies(x, |c|c == ':' || c == (0xA as char))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | |x, (quantity_name, _separator)| Ok((Some(quantity_name), x)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | |x|quantity_indicator(x, env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:418:13 [INFO] [stdout] | [INFO] [stdout] 418 | |x, sp_quantity|Ok((Some(sp_quantity),x)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:426:13 [INFO] [stdout] | [INFO] [stdout] 426 | |x|derived_unit(x, env_tracker), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/file_parsers.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 427 | / |to_parse, (modifier, unit)| { [INFO] [stdout] 428 | | // applies the name and symbol to the derived unit [INFO] [stdout] 429 | | let unit = Unit::new_coded(name.clone(), Some(symbol.clone()), unit.base_unit, modifier, unit.quantity); [INFO] [stdout] 430 | | Ok((Some(unit), to_parse)) [INFO] [stdout] 431 | | }, [INFO] [stdout] | |_____________^ the `Err`-variant is at least 144 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `(pharsers::Parsable<'_>, pharsers::Info)`, for example by boxing large elements or replacing it with `Box<(pharsers::Parsable<'_>, pharsers::Info)>` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/file_parsers.rs:441:39 [INFO] [stdout] | [INFO] [stdout] 441 | let info = Info{ msg: format!("Either a base quantity must be given via 'Unit: name (quantity)', \ [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 442 | | or the unit must be defined with an expression as in 'via Unit: name = unit_expression'"), [INFO] [stdout] | |_________________________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] help: consider using `.to_string()` [INFO] [stdout] | [INFO] [stdout] 441 ~ let info = Info{ msg: "Either a base quantity must be given via 'Unit: name (quantity)', \ [INFO] [stdout] 442 ~ or the unit must be defined with an expression as in 'via Unit: name = unit_expression'".to_string(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.48s [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/main.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | if parse_errors.len() > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!parse_errors.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] running `Command { std: "docker" "inspect" "64f3ed3184477a274659b0bb44f72ab0c096db0a6baec26e5dbdc71bfa873a4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64f3ed3184477a274659b0bb44f72ab0c096db0a6baec26e5dbdc71bfa873a4c", kill_on_drop: false }` [INFO] [stdout] 64f3ed3184477a274659b0bb44f72ab0c096db0a6baec26e5dbdc71bfa873a4c