[INFO] cloning repository https://github.com/itevie/zephyr-lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/itevie/zephyr-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitevie%2Fzephyr-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitevie%2Fzephyr-lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 45511753664cb9d1057b76315b9e68b98744ac86 [INFO] linting itevie/zephyr-lang against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitevie%2Fzephyr-lang" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/itevie/zephyr-lang [INFO] finished tweaking git repo https://github.com/itevie/zephyr-lang [INFO] tweaked toml for git repo https://github.com/itevie/zephyr-lang written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/itevie/zephyr-lang 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/itevie/zephyr-lang already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid v1.15.1 [INFO] [stderr] Downloaded getrandom v0.3.1 [INFO] [stderr] Downloaded quote v1.0.38 [INFO] [stderr] Downloaded either v1.14.0 [INFO] [stderr] Downloaded wit-bindgen-rt v0.33.0 [INFO] [stderr] Downloaded syn v2.0.95 [INFO] [stderr] Downloaded wasi v0.13.3+wasi-0.2.2 [INFO] [stderr] Downloaded tokio v1.43.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 14c9f93ead44f7499cc67995322fc0dc62e7da2e52e25f20285fbf6a791fb117 [INFO] running `Command { std: "docker" "start" "-a" "14c9f93ead44f7499cc67995322fc0dc62e7da2e52e25f20285fbf6a791fb117", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14c9f93ead44f7499cc67995322fc0dc62e7da2e52e25f20285fbf6a791fb117", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14c9f93ead44f7499cc67995322fc0dc62e7da2e52e25f20285fbf6a791fb117", kill_on_drop: false }` [INFO] [stdout] 14c9f93ead44f7499cc67995322fc0dc62e7da2e52e25f20285fbf6a791fb117 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] ad789874133b2acdffd2b7233d6f28c8e7074887c155df77d90f82c0a5375327 [INFO] running `Command { std: "docker" "start" "-a" "ad789874133b2acdffd2b7233d6f28c8e7074887c155df77d90f82c0a5375327", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking either v1.14.0 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking uuid v1.15.1 [INFO] [stderr] Compiling syn v2.0.95 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Checking zephyr v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/main.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{env, fs, thread}; [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 imports: `ErrorKind`, `Read`, and `Write` [INFO] [stdout] --> src/main.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{ErrorKind, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ThreadInnerValue` and `ThreadRuntimeValue` [INFO] [stdout] --> src/main.rs:12:47 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::runtime::values::thread_crossing::{ThreadInnerValue, ThreadRuntimeValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::runtime::values::MspcSenderOptions` [INFO] [stdout] --> src/runtime/interpreter_functions.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::runtime::values::MspcSenderOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `make_no_args_error` [INFO] [stdout] --> src/runtime/native/tcp.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | native::{add_native, make_no_args_error}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lexer::tokens::Location` [INFO] [stdout] --> src/runtime/values/event_emitter.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | lexer::tokens::Location, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FunctionInner`, `FunctionType`, `MspcSenderType`, `NativeFunctionType`, and `RuntimeValueDetails` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{FunctionInner, FunctionType, MspcSenderType, NativeFunctionType, RuntimeValue, RuntimeValueDetails, RuntimeValueUtils}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/main.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{env, fs, thread}; [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 imports: `ErrorKind`, `Read`, and `Write` [INFO] [stdout] --> src/main.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{ErrorKind, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ThreadInnerValue` and `ThreadRuntimeValue` [INFO] [stdout] --> src/main.rs:12:47 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::runtime::values::thread_crossing::{ThreadInnerValue, ThreadRuntimeValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::runtime::values::MspcSenderOptions` [INFO] [stdout] --> src/runtime/interpreter_functions.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::runtime::values::MspcSenderOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `make_no_args_error` [INFO] [stdout] --> src/runtime/native/tcp.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | native::{add_native, make_no_args_error}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lexer::tokens::Location` [INFO] [stdout] --> src/runtime/values/event_emitter.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | lexer::tokens::Location, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FunctionInner`, `FunctionType`, `MspcSenderType`, `NativeFunctionType`, and `RuntimeValueDetails` [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{FunctionInner, FunctionType, MspcSenderType, NativeFunctionType, RuntimeValue, RuntimeValueDetails, RuntimeValueUtils}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/runtime/interpreter_functions.rs:78:38 [INFO] [stdout] | [INFO] [stdout] 78 | FunctionType::MspcSender(func) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_2` [INFO] [stdout] --> src/runtime/native/tcp.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let event_2 = event.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module has the same name as its containing module [INFO] [stdout] --> src/lexer/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stdout] = note: `#[warn(clippy::module_inception)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lexer/lexer.rs:7:50 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn lex(contents: &str, file_name: String) -> Result, ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: this loop could be written as a `for` loop [INFO] [stdout] --> src/lexer/lexer.rs:41:29 [INFO] [stdout] | [INFO] [stdout] 41 | ... while let Some(c) = chars.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for c in chars.by_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stdout] = note: `#[warn(clippy::while_let_on_iterator)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser/mod.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:61:38 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn produce_ast(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:65:48 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn block(&mut self, no_brace: bool) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:127:36 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn statement(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:165:36 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn enum_stmt(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn import(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:338:33 [INFO] [stdout] | [INFO] [stdout] 338 | pub fn export(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:378:34 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn declare(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:448:35 [INFO] [stdout] | [INFO] [stdout] 448 | pub fn for_loop(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:495:55 [INFO] [stdout] | [INFO] [stdout] 495 | pub fn function(&mut self, is_statement: bool) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:568:37 [INFO] [stdout] | [INFO] [stdout] 568 | pub fn while_stmt(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:582:34 [INFO] [stdout] | [INFO] [stdout] 582 | pub fn if_stmt(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:607:37 [INFO] [stdout] | [INFO] [stdout] 607 | pub fn match_stmt(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: `func` [INFO] [stdout] --> src/runtime/interpreter_functions.rs:78:38 [INFO] [stdout] | [INFO] [stdout] 78 | FunctionType::MspcSender(func) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::boxed::Box` [INFO] [stdout] --> src/parser/mod.rs:647:35 [INFO] [stdout] | [INFO] [stdout] 647 | MatchCaseType::Is(Box::from(result.left), result.right, Box::from(block)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `Box::from()`: `result.left` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser/mod.rs:681:37 [INFO] [stdout] | [INFO] [stdout] 681 | pub fn expression(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:685:33 [INFO] [stdout] | [INFO] [stdout] 685 | pub fn assign(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:702:34 [INFO] [stdout] | [INFO] [stdout] 702 | pub fn logical(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:720:9 [INFO] [stdout] | [INFO] [stdout] 720 | return Ok(left); [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] 720 - return Ok(left); [INFO] [stdout] 720 + Ok(left) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser/mod.rs:723:49 [INFO] [stdout] | [INFO] [stdout] 723 | pub fn is(&mut self, base: Option) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:745:37 [INFO] [stdout] | [INFO] [stdout] 745 | pub fn comparison(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:762:32 [INFO] [stdout] | [INFO] [stdout] 762 | pub fn range(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:837:35 [INFO] [stdout] | [INFO] [stdout] 837 | pub fn additive(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:854:41 [INFO] [stdout] | [INFO] [stdout] 854 | pub fn multiplicative(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:871:32 [INFO] [stdout] | [INFO] [stdout] 871 | pub fn unary(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:933:42 [INFO] [stdout] | [INFO] [stdout] 933 | pub fn call_member_new(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:937:13 [INFO] [stdout] | [INFO] [stdout] 937 | / matches!(x.t, TokenType::Dot) [INFO] [stdout] 938 | | || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] 939 | | || matches!(x.t, TokenType::DotOptional) [INFO] [stdout] 940 | | || matches!(x.t, TokenType::OpenParan) [INFO] [stdout] 941 | | || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 937 - matches!(x.t, TokenType::Dot) [INFO] [stdout] 938 - || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] 939 - || matches!(x.t, TokenType::DotOptional) [INFO] [stdout] 940 - || matches!(x.t, TokenType::OpenParan) [INFO] [stdout] 941 - || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] 937 + !(!matches!(x.t, TokenType::Dot) && !matches!(x.t, TokenType::OpenSquare) && !matches!(x.t, TokenType::DotOptional) && !matches!(x.t, TokenType::OpenParan)) [INFO] [stdout] | [INFO] [stdout] 937 - matches!(x.t, TokenType::Dot) [INFO] [stdout] 938 - || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] 939 - || matches!(x.t, TokenType::DotOptional) [INFO] [stdout] 940 - || matches!(x.t, TokenType::OpenParan) [INFO] [stdout] 941 - || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] 937 + matches!(x.t, TokenType::Dot) || matches!(x.t, TokenType::OpenSquare) || matches!(x.t, TokenType::DotOptional) || matches!(x.t, TokenType::OpenParan) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser/mod.rs:1038:34 [INFO] [stdout] | [INFO] [stdout] 1038 | pub fn literal(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:1181:17 [INFO] [stdout] | [INFO] [stdout] 1181 | / return Err(ZephyrError { [INFO] [stdout] 1182 | | code: ErrorCode::UnexpectedToken, [INFO] [stdout] 1183 | | message: format!("Cannot handle the token {} here", self.at().value), [INFO] [stdout] 1184 | | location: Some(self.at().location.clone()), [INFO] [stdout] 1185 | | }) [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] 1181 ~ Err(ZephyrError { [INFO] [stdout] 1182 + code: ErrorCode::UnexpectedToken, [INFO] [stdout] 1183 + message: format!("Cannot handle the token {} here", self.at().value), [INFO] [stdout] 1184 + location: Some(self.at().location.clone()), [INFO] [stdout] 1185 + }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/parser/mod.rs:1047:79 [INFO] [stdout] | [INFO] [stdout] 1047 | ... message: format!("Failed to parse number: {}", err.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 function is very large [INFO] [stdout] --> src/runtime/interpreter_conditionals.rs:9:50 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn run_if(&mut self, expr: nodes::If) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_conditionals.rs:21:56 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn run_match(&mut self, expr: nodes::Match) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_functions.rs:17:67 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn run_make_function(&mut self, expr: nodes::Function) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_functions.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | ) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_functions.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | return result; [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] 66 - return result; [INFO] [stdout] 66 + result [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/interpreter_functions.rs:96:54 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn run_call(&mut self, expr: nodes::Call) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_functions.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | / return Err(ZephyrError { [INFO] [stdout] 146 | | code: ErrorCode::InvalidOperation, [INFO] [stdout] 147 | | message: format!("Cannot call a {}", left.type_name()), [INFO] [stdout] 148 | | location: Some(expr.left.location().clone()), [INFO] [stdout] 149 | | }) [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] 145 ~ Err(ZephyrError { [INFO] [stdout] 146 + code: ErrorCode::InvalidOperation, [INFO] [stdout] 147 + message: format!("Cannot call a {}", left.type_name()), [INFO] [stdout] 148 + location: Some(expr.left.location().clone()), [INFO] [stdout] 149 + }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `args.get(0)` [INFO] [stdout] --> src/runtime/interpreter_functions.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | args.get(0).unwrap_or(&null_value).clone(), [INFO] [stdout] | ^^^^^^^^^^^ help: try: `args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `args.get(0)` [INFO] [stdout] --> src/runtime/interpreter_functions.rs:127:21 [INFO] [stdout] | [INFO] [stdout] 127 | args.get(0).unwrap_or(&null_value).clone(), [INFO] [stdout] | ^^^^^^^^^^^ help: try: `args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/interpreter_helper.rs:12:56 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn run_block(&mut self, expr: nodes::Block) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_helper.rs:27:67 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn run_exported(&mut self, expr: nodes::ExportedBlock) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_imports.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn run_export(&mut self, node: nodes::Export) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_imports.rs:48:58 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn run_import(&mut self, node: nodes::Import) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_imports.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | return Ok(values::Null::new().wrap()); [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] 153 - return Ok(values::Null::new().wrap()); [INFO] [stdout] 153 + Ok(values::Null::new().wrap()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/runtime/interpreter_imports.rs:58:70 [INFO] [stdout] | [INFO] [stdout] 58 | message: format!("Cannot resolve {}", _path.display().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/runtime/interpreter_literals.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn run_array(&mut self, expr: nodes::Array) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_literals.rs:22:58 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn run_object(&mut self, expr: nodes::Object) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_literals.rs:32:56 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn run_range(&mut self, expr: nodes::Range) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_loops.rs:16:60 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn run_while(&mut self, expr: nodes::WhileLoop) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_loops.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn run_for(&mut self, expr: nodes::For) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_objects.rs:14:85 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn run_member(&mut self, expr: nodes::Member, set: Option) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_objects.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | return self.member_check_basic(left.clone(), key, set); [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] 30 - return self.member_check_basic(left.clone(), key, set); [INFO] [stdout] 30 + self.member_check_basic(left.clone(), key, set) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/runtime/interpreter_objects.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | / return match right { [INFO] [stdout] 35 | | RuntimeValue::ZString(string) => { [INFO] [stdout] 36 | | self.member_check_basic(left.clone(), string.value, set) [INFO] [stdout] ... | [INFO] [stdout] 126 | | }), [INFO] [stdout] 127 | | }; [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] 34 ~ match right { [INFO] [stdout] 35 + RuntimeValue::ZString(string) => { [INFO] [stdout] 36 + self.member_check_basic(left.clone(), string.value, set) [INFO] [stdout] 37 + } [INFO] [stdout] 38 + RuntimeValue::RangeValue(_range) => { [INFO] [stdout] 39 + let mut range = _range.clone(); [INFO] [stdout] 40 + let iter = left.iter()?; [INFO] [stdout] 41 + [INFO] [stdout] 42 + if range.start < 0f64 { [INFO] [stdout] 43 + range.start = iter.len() as f64 + range.start; [INFO] [stdout] 44 + } [INFO] [stdout] 45 + [INFO] [stdout] 46 + if range.end < 0f64 { [INFO] [stdout] 47 + range.end = iter.len() as f64 + range.end; [INFO] [stdout] 48 + } [INFO] [stdout] 49 + [INFO] [stdout] 50 + let indexes = range [INFO] [stdout] 51 + .iter_f64()? [INFO] [stdout] 52 + .iter() [INFO] [stdout] 53 + .map(|x| *x as usize) [INFO] [stdout] 54 + .collect::>(); [INFO] [stdout] 55 + let mut parts: Vec = vec![]; [INFO] [stdout] 56 + [INFO] [stdout] 57 + for index in indexes { [INFO] [stdout] 58 + if let Some(val) = iter.get(index) { [INFO] [stdout] 59 + parts.push(val.clone()); [INFO] [stdout] 60 + } else { [INFO] [stdout] 61 + return Err(ZephyrError { [INFO] [stdout] 62 + message: "Out of bounds".to_string(), [INFO] [stdout] 63 + code: ErrorCode::OutOfBounds, [INFO] [stdout] 64 + location: Some(expr.location), [INFO] [stdout] 65 + }); [INFO] [stdout] 66 + } [INFO] [stdout] 67 + } [INFO] [stdout] 68 + [INFO] [stdout] 69 + Ok(match left { [INFO] [stdout] 70 + /*RuntimeValue::ZString(_) => values::ZString::new( [INFO] [stdout] 71 + parts [INFO] [stdout] 72 + .iter() [INFO] [stdout] 73 + .map(|z| match z { [INFO] [stdout] 74 + RuntimeValue::ZString(a) => a.value.clone(), [INFO] [stdout] 75 + _ => unreachable!(), [INFO] [stdout] 76 + }) [INFO] [stdout] 77 + .collect::(), [INFO] [stdout] 78 + ) [INFO] [stdout] 79 + .wrap(),*/ [INFO] [stdout] 80 + _ => values::Array::new(parts).wrap(), [INFO] [stdout] 81 + }) [INFO] [stdout] 82 + } [INFO] [stdout] 83 + RuntimeValue::Number(number) => { [INFO] [stdout] 84 + if let Some(set) = set { [INFO] [stdout] 85 + match left { [INFO] [stdout] 86 + RuntimeValue::Array(ref arr) => { [INFO] [stdout] 87 + let mut borrow = arr.items.borrow_mut(); [INFO] [stdout] 88 + if number.value as usize > borrow.len() { [INFO] [stdout] 89 + return Err(ZephyrError { code: ErrorCode::OutOfBounds, message: format!("Trying to assign at index {} but array is only {} items long", number.value, borrow.len()), location: Some(expr.location) }); [INFO] [stdout] 90 + } else { [INFO] [stdout] 91 + if number.value as usize == borrow.len() { [INFO] [stdout] 92 + borrow.push(set); [INFO] [stdout] 93 + } else { [INFO] [stdout] 94 + borrow[number.value as usize] = set; [INFO] [stdout] 95 + } [INFO] [stdout] 96 + [INFO] [stdout] 97 + return Ok(values::Null::new().wrap()); [INFO] [stdout] 98 + } [INFO] [stdout] 99 + } [INFO] [stdout] 100 + _ => { [INFO] [stdout] 101 + return Err(ZephyrError { [INFO] [stdout] 102 + code: ErrorCode::InvalidOperation, [INFO] [stdout] 103 + message: format!("Cannot assign to a {}", left.type_name()), [INFO] [stdout] 104 + location: Some(expr.location), [INFO] [stdout] 105 + }) [INFO] [stdout] 106 + } [INFO] [stdout] 107 + } [INFO] [stdout] 108 + } [INFO] [stdout] 109 + [INFO] [stdout] 110 + let iter = left.iter()?; [INFO] [stdout] 111 + [INFO] [stdout] 112 + if let Some(val) = iter.get(number.value as usize) { [INFO] [stdout] 113 + return Ok(val.clone()); [INFO] [stdout] 114 + } else { [INFO] [stdout] 115 + return Err(ZephyrError { [INFO] [stdout] 116 + message: "Out of bounds".to_string(), [INFO] [stdout] 117 + code: ErrorCode::OutOfBounds, [INFO] [stdout] 118 + location: Some(expr.location), [INFO] [stdout] 119 + }); [INFO] [stdout] 120 + } [INFO] [stdout] 121 + } [INFO] [stdout] 122 + x => Err(ZephyrError { [INFO] [stdout] 123 + message: format!("Cannot access {} via {}", left.type_name(), x.type_name()), [INFO] [stdout] 124 + code: ErrorCode::TypeError, [INFO] [stdout] 125 + location: Some(expr.location), [INFO] [stdout] 126 + }), [INFO] [stdout] 127 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/runtime/interpreter_objects.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | range.start = iter.len() as f64 + range.start; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `range.start += iter.len() as f64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/runtime/interpreter_objects.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | range.end = iter.len() as f64 + range.end; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `range.end += iter.len() as f64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this match could be replaced by its body itself [INFO] [stdout] --> src/runtime/interpreter_objects.rs:69:24 [INFO] [stdout] | [INFO] [stdout] 69 | Ok(match left { [INFO] [stdout] | ________________________^ [INFO] [stdout] 70 | | /*RuntimeValue::ZString(_) => values::ZString::new( [INFO] [stdout] 71 | | parts [INFO] [stdout] 72 | | .iter() [INFO] [stdout] ... | [INFO] [stdout] 80 | | _ => values::Array::new(parts).wrap(), [INFO] [stdout] 81 | | }) [INFO] [stdout] | |_____________________^ help: consider using the match body instead: `values::Array::new(parts).wrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding [INFO] [stdout] = note: `#[warn(clippy::match_single_binding)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/interpreter_objects.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | ) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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 pattern matching, consider using `is_some()` [INFO] [stdout] --> src/runtime/interpreter_objects.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | if let Some(_) = set { [INFO] [stdout] | -------^^^^^^^------ help: try: `if set.is_some()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/runtime/interpreter_objects.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | / match value { [INFO] [stdout] 176 | | RuntimeValue::Object(ref obj) => { [INFO] [stdout] 177 | | if let Some(setter) = set { [INFO] [stdout] 178 | | if obj.items.borrow().contains_key(&key) { [INFO] [stdout] ... | [INFO] [stdout] 189 | | _ => (), [INFO] [stdout] 190 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 175 ~ if let RuntimeValue::Object(ref obj) = value { [INFO] [stdout] 176 + if let Some(setter) = set { [INFO] [stdout] 177 + if obj.items.borrow().contains_key(&key) { [INFO] [stdout] 178 + obj.items.borrow_mut().remove(&key); [INFO] [stdout] 179 + } [INFO] [stdout] 180 + [INFO] [stdout] 181 + obj.items.borrow_mut().insert(key, setter); [INFO] [stdout] 182 + [INFO] [stdout] 183 + return Ok(values::Null::new().wrap()); [INFO] [stdout] 184 + } else if let Some(val) = obj.items.borrow().get(&key) { [INFO] [stdout] 185 + return Ok(val.clone()); [INFO] [stdout] 186 + } [INFO] [stdout] 187 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/interpreter_operators.rs:13:66 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn run_arithmetic(&mut self, expr: nodes::Arithmetic) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_operators.rs:71:54 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn run_comp(&mut self, expr: nodes::Comp) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_operators.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn run_logical(&mut self, expr: nodes::Logical) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_operators.rs:91:56 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn run_unary(&mut self, expr: nodes::Unary) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_operators.rs:101:25 [INFO] [stdout] | [INFO] [stdout] 101 | / return Err(ZephyrError { [INFO] [stdout] 102 | | message: format!("Cannot make {} negative", x.type_name()), [INFO] [stdout] 103 | | code: ErrorCode::TypeError, [INFO] [stdout] 104 | | location: Some(expr.location.clone()), [INFO] [stdout] 105 | | }) [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] 101 ~ Err(ZephyrError { [INFO] [stdout] 102 + message: format!("Cannot make {} negative", x.type_name()), [INFO] [stdout] 103 + code: ErrorCode::TypeError, [INFO] [stdout] 104 + location: Some(expr.location.clone()), [INFO] [stdout] 105 + }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this match could be replaced by its body itself [INFO] [stdout] --> src/runtime/interpreter_operators.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | / match expr.t { [INFO] [stdout] 112 | | _ => unreachable!(), [INFO] [stdout] 113 | | } [INFO] [stdout] | |_____________^ help: consider using the match body instead: `unreachable!()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/interpreter_operators.rs:117:74 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn run_inner_is(&mut self, left: RuntimeValue, right: IsType) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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 if-then-else expression returns a bool literal [INFO] [stdout] --> src/runtime/interpreter_operators.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | / if e.enum_id == enum_id { [INFO] [stdout] 127 | | true [INFO] [stdout] 128 | | } else { [INFO] [stdout] 129 | | false [INFO] [stdout] 130 | | } [INFO] [stdout] | |_________________________^ help: you can reduce it to: `e.enum_id == enum_id` [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/runtime/interpreter_operators.rs:143:50 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn run_is(&mut self, expr: nodes::Is) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_variables.rs:15:60 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run_declare(&mut self, expr: nodes::Declare) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_variables.rs:69:58 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn run_assign(&mut self, expr: nodes::Assign) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_variables.rs:93:54 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn run_enum(&mut self, expr: nodes::Enum) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/basics.rs:15:45 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn iter(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/enums.rs:18:59 [INFO] [stdout] | [INFO] [stdout] 18 | fn get_enum_varient_inner(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/events.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn add_listener(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/fs.rs:15:52 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn file_exists(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 52 | def_math_fn!(math_sin, f64::sin); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 53 | def_math_fn!(math_cos, f64::cos); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 54 | def_math_fn!(math_tan, f64::tan); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 55 | def_math_fn!(math_asin, f64::asin); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | def_math_fn!(math_acos, f64::acos); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 57 | def_math_fn!(math_atan, f64::atan); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 58 | def_math_fn!(math_sinh, f64::sinh); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 59 | def_math_fn!(math_cosh, f64::cosh); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 60 | def_math_fn!(math_tanh, f64::tanh); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 61 | def_math_fn!(math_asinh, f64::asinh); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 62 | def_math_fn!(math_acosh, f64::acosh); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 63 | def_math_fn!(math_atanh, f64::atanh); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 64 | def_math_fn!(math_exp, f64::exp); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 65 | def_math_fn!(math_expm1, f64::exp_m1); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 66 | def_math_fn!(math_log, f64::ln); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 67 | def_math_fn!(math_log1p, f64::ln_1p); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 68 | def_math_fn!(math_log2, f64::log2); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 69 | def_math_fn!(math_log10, f64::log10); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | def_math_fn!(math_sqrt, f64::sqrt); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 71 | def_math_fn!(math_cbrt, f64::cbrt); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 72 | def_math_fn!(math_abs, f64::abs); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 73 | def_math_fn!(math_floor, f64::floor); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 74 | def_math_fn!(math_ceil, f64::ceil); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 75 | def_math_fn!(math_round, f64::round); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 76 | def_math_fn!(math_trunc, f64::trunc); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/module.rs:18:49 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn filename(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/module.rs:25:48 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn dirname(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/proto.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn get_proto_obj(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/proto.rs:28:57 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get_proto_obj_of(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/proto.rs:39:54 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn set_proto_ref(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/strings.rs:19:46 [INFO] [stdout] | [INFO] [stdout] 19 | fn char_code(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/strings.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | / return Ok(values::Number::new_wrapped( [INFO] [stdout] 31 | | value.value.chars().next().unwrap() as u8 as f64, [INFO] [stdout] 32 | | )); [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] 30 ~ Ok(values::Number::new_wrapped( [INFO] [stdout] 31 + value.value.chars().next().unwrap() as u8 as f64, [INFO] [stdout] 32 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/strings.rs:38:46 [INFO] [stdout] | [INFO] [stdout] 38 | fn str_split(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/tags.rs:19:48 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn add_tag(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/tags.rs:33:51 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn delete_tag(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/tags.rs:47:48 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn set_tag(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/tcp.rs:32:58 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn create_tcp_stream(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/tcp.rs:105:25 [INFO] [stdout] | [INFO] [stdout] 105 | / &match &msg.args.get(0).unwrap().value { [INFO] [stdout] 106 | | ThreadInnerValue::ZString(s) => s.clone(), [INFO] [stdout] 107 | | _ => panic!(), [INFO] [stdout] 108 | | } [INFO] [stdout] 109 | | .as_bytes(), [INFO] [stdout] | |___________________________________^ [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] help: change this to [INFO] [stdout] | [INFO] [stdout] 105 ~ match &msg.args.get(0).unwrap().value { [INFO] [stdout] 106 + ThreadInnerValue::ZString(s) => s.clone(), [INFO] [stdout] 107 + _ => panic!(), [INFO] [stdout] 108 + } [INFO] [stdout] 109 ~ .as_bytes(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `msg.args.get(0)` [INFO] [stdout] --> src/runtime/native/tcp.rs:105:33 [INFO] [stdout] | [INFO] [stdout] 105 | &match &msg.args.get(0).unwrap().value { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `msg.args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::collections::HashMap` [INFO] [stdout] --> src/runtime/prototype_store.rs:13:55 [INFO] [stdout] | [INFO] [stdout] 13 | prototype_mapping: Rc::from(RefCell::from(HashMap::from( [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 14 | | [ [INFO] [stdout] 15 | | "any", [INFO] [stdout] 16 | | "event_emitter", [INFO] [stdout] ... | [INFO] [stdout] 25 | | .collect::>(), [INFO] [stdout] 26 | | ))), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing `HashMap::from()` [INFO] [stdout] | [INFO] [stdout] 13 ~ prototype_mapping: Rc::from(RefCell::from([ [INFO] [stdout] 14 + "any", [INFO] [stdout] 15 + "event_emitter", [INFO] [stdout] 16 + "string", [INFO] [stdout] 17 + "array", [INFO] [stdout] 18 + "number", [INFO] [stdout] 19 + "enum", [INFO] [stdout] 20 + "object", [INFO] [stdout] 21 + ] [INFO] [stdout] 22 + .iter() [INFO] [stdout] 23 + .map(|x| (x.to_string(), Object::new_empty())) [INFO] [stdout] 24 ~ .collect::>())), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/scope.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/scope.rs:127:10 [INFO] [stdout] | [INFO] [stdout] 127 | ) -> Result<(), ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/scope.rs:150:10 [INFO] [stdout] | [INFO] [stdout] 150 | ) -> Result<(), ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/scope.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / (|| { [INFO] [stdout] 155 | | let mut scope = Some(Rc::from(RefCell::from(self.clone()))); [INFO] [stdout] 156 | | [INFO] [stdout] 157 | | while let Some(s) = scope.clone() { [INFO] [stdout] ... | [INFO] [stdout] 173 | | }) [INFO] [stdout] 174 | | })() [INFO] [stdout] | |______________^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/runtime/values/zstring.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | res.push_str("\""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `res.push('"')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] = note: `#[warn(clippy::single_char_add_str)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/functions.rs:26:39 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from(val: RuntimeValue) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/functions.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | let string = format!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 64 | | "{}", [INFO] [stdout] 65 | | self.inner [INFO] [stdout] 66 | | .arguments [INFO] [stdout] ... | [INFO] [stdout] 70 | | .join(", ") [INFO] [stdout] 71 | | ); [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] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] help: consider using `.to_string()` [INFO] [stdout] | [INFO] [stdout] 63 ~ let string = self.inner [INFO] [stdout] 64 + .arguments [INFO] [stdout] 65 + .iter() [INFO] [stdout] 66 + .map(|x| format!("\"{}\"", x)) [INFO] [stdout] 67 + .collect::>() [INFO] [stdout] 68 ~ .join(", ").to_string(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_2` [INFO] [stdout] --> src/runtime/native/tcp.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let event_2 = event.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/runtime/values/array.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | result.push_str("]"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `result.push(']')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/runtime/values/event_emitter.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub listeners: Arc>>>>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Uuid` which implements the `Copy` trait [INFO] [stdout] --> src/runtime/values/event_emitter.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | func: part.clone(), [INFO] [stdout] | ^^^^^^^^^^^^ help: try dereferencing it: `*part` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/event_emitter.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 70 | ) -> Result<(), ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: usage of `contains_key` followed by `insert` on a `HashMap` [INFO] [stdout] --> src/runtime/values/event_emitter.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | / if !lock.contains_key(&message) { [INFO] [stdout] 83 | | lock.insert(message, Arc::from(Mutex::from(vec![func_uuid]))); [INFO] [stdout] 84 | | } else { [INFO] [stdout] 85 | | lock.get(&message) [INFO] [stdout] ... | [INFO] [stdout] 89 | | .push(func_uuid); [INFO] [stdout] 90 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: consider using the `Entry` API: https://doc.rust-lang.org/std/collections/struct.HashMap.html#entry-api [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_entry [INFO] [stdout] = note: `#[warn(clippy::map_entry)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/range.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn iter_f64(&self) -> Result, ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: you are using an explicit closure for copying elements [INFO] [stdout] --> src/runtime/values/range.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(values.iter().map(|z| *z).collect()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `copied` method: `values.iter().copied()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] = note: `#[warn(clippy::map_clone)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/runtime/values/object.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | .map(|(k, v)| { [INFO] [stdout] | __________________^ [INFO] [stdout] 52 | | let value_str = v.to_string(true, color, false)?; [INFO] [stdout] 53 | | Ok(format!("{}: {}", k, value_str)) [INFO] [stdout] 54 | | }) [INFO] [stdout] | |_____________^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/export.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn inner(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/struct_mapping.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | fn from_runtime_value(value: &RuntimeValue) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/struct_mapping.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | .map(|v| <$type>::from_runtime_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 63 | impl_for_vec!(u8, "array of u8", RuntimeValue::ZString(ref s) => s.value.as_bytes().to_vec()); [INFO] [stdout] | --------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `impl_for_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this match could be replaced by its body itself [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | / match value { [INFO] [stdout] 41 | | _ => panic!("Not able to convert {} to a thread value yet", value.type_name()) [INFO] [stdout] 42 | | } [INFO] [stdout] | |_________^ help: consider using the match body instead: `panic!("Not able to convert {} to a thread value yet", value.type_name())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | value.0.iter().map(|x| RuntimeValue::from(x)).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `RuntimeValue::from` [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/runtime/values/mod.rs:51:61 [INFO] [stdout] | [INFO] [stdout] 51 | fn to_string(&self, _is_display: bool, _color: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/mod.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | / return Err(ZephyrError { [INFO] [stdout] 53 | | message: format!("Cannot stringify {}", self.type_name()), [INFO] [stdout] 54 | | code: ErrorCode::TypeError, [INFO] [stdout] 55 | | location: None, [INFO] [stdout] 56 | | }); [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] 52 ~ Err(ZephyrError { [INFO] [stdout] 53 + message: format!("Cannot stringify {}", self.type_name()), [INFO] [stdout] 54 + code: ErrorCode::TypeError, [INFO] [stdout] 55 + location: None, [INFO] [stdout] 56 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/mod.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | fn iter(&self) -> Result, ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/mod.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | / return Err(ZephyrError { [INFO] [stdout] 61 | | message: format!("Cannot iter a {}", self.type_name()), [INFO] [stdout] 62 | | code: ErrorCode::CannotIterate, [INFO] [stdout] 63 | | location: None, [INFO] [stdout] 64 | | }); [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] 60 ~ Err(ZephyrError { [INFO] [stdout] 61 + message: format!("Cannot iter a {}", self.type_name()), [INFO] [stdout] 62 + code: ErrorCode::CannotIterate, [INFO] [stdout] 63 + location: None, [INFO] [stdout] 64 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/mod.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 67 | fn len(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/mod.rs:122:27 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn iter(&self) -> Result, ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/mod.rs:126:26 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn len(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/mod.rs:155:10 [INFO] [stdout] | [INFO] [stdout] 155 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: length comparison to zero [INFO] [stdout] --> src/runtime/values/mod.rs:177:41 [INFO] [stdout] | [INFO] [stdout] 177 | RuntimeValue::ZString(v) => v.value.len() > 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!v.value.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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/mod.rs:202:10 [INFO] [stdout] | [INFO] [stdout] 202 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: all variants have the same prefix: `Thread` [INFO] [stdout] --> src/runtime/zephyr_mspc.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / pub enum MspcSendType { [INFO] [stdout] 13 | | ThreadCreate, [INFO] [stdout] 14 | | ThreadDestroy, [INFO] [stdout] 15 | | ThreadMessage(Job), [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the prefixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/runtime/mod.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 69 | static NODE_TIMINGS: LazyLock>>>> = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: swapping with a temporary value is inefficient [INFO] [stdout] --> src/runtime/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | std::mem::swap(&mut interpreter.scope, &mut lib_scope.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use assignment instead: `interpreter.scope = lib_scope.clone()` [INFO] [stdout] | [INFO] [stdout] note: this expression returns a temporary value [INFO] [stdout] --> src/runtime/mod.rs:134:57 [INFO] [stdout] | [INFO] [stdout] 134 | std::mem::swap(&mut interpreter.scope, &mut lib_scope.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#swap_with_temporary [INFO] [stdout] = note: `#[warn(clippy::swap_with_temporary)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: swapping with a temporary value is inefficient [INFO] [stdout] --> src/runtime/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | std::mem::swap(&mut interpreter.scope, &mut lib_scope.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use assignment instead: `interpreter.scope = lib_scope.clone()` [INFO] [stdout] | [INFO] [stdout] note: this expression returns a temporary value [INFO] [stdout] --> src/runtime/mod.rs:144:57 [INFO] [stdout] | [INFO] [stdout] 144 | std::mem::swap(&mut interpreter.scope, &mut lib_scope.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#swap_with_temporary [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to want to iterate on a map's keys [INFO] [stdout] --> src/runtime/mod.rs:147:30 [INFO] [stdout] | [INFO] [stdout] 147 | for (name, _) in &finished_scope.exported { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map [INFO] [stdout] = note: `#[warn(clippy::for_kv_map)]` on by default [INFO] [stdout] help: use the corresponding method [INFO] [stdout] | [INFO] [stdout] 147 - for (name, _) in &finished_scope.exported { [INFO] [stdout] 147 + for name in finished_scope.exported.keys() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/mod.rs:159:47 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn base_run(&mut self, node: Node) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/mod.rs:244:42 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn run(&mut self, node: Node) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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 pattern matching, consider using `is_none()` [INFO] [stdout] --> src/runtime/mod.rs:343:20 [INFO] [stdout] | [INFO] [stdout] 343 | if let None = x.location { [INFO] [stdout] | -------^^^^------------- help: try: `if x.location.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | match run(&file_name) { [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `file_name` [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/main.rs:63:28 [INFO] [stdout] | [INFO] [stdout] 63 | fn run(file_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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 conversion to the same type: `std::string::String` [INFO] [stdout] --> src/main.rs:67:38 [INFO] [stdout] | [INFO] [stdout] 67 | let parsed = Parser::new(result, String::from(file_name.to_string())).produce_ast()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `file_name.to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/runtime/native/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | vec![] [INFO] [stdout] | ^^^^^^ help: you can use an array directly: `[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module has the same name as its containing module [INFO] [stdout] --> src/lexer/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stdout] = note: `#[warn(clippy::module_inception)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lexer/lexer.rs:7:50 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn lex(contents: &str, file_name: String) -> Result, ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: this loop could be written as a `for` loop [INFO] [stdout] --> src/lexer/lexer.rs:41:29 [INFO] [stdout] | [INFO] [stdout] 41 | ... while let Some(c) = chars.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for c in chars.by_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stdout] = note: `#[warn(clippy::while_let_on_iterator)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser/mod.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:61:38 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn produce_ast(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:65:48 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn block(&mut self, no_brace: bool) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:127:36 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn statement(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:165:36 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn enum_stmt(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn import(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:338:33 [INFO] [stdout] | [INFO] [stdout] 338 | pub fn export(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:378:34 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn declare(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:448:35 [INFO] [stdout] | [INFO] [stdout] 448 | pub fn for_loop(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:495:55 [INFO] [stdout] | [INFO] [stdout] 495 | pub fn function(&mut self, is_statement: bool) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:568:37 [INFO] [stdout] | [INFO] [stdout] 568 | pub fn while_stmt(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:582:34 [INFO] [stdout] | [INFO] [stdout] 582 | pub fn if_stmt(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:607:37 [INFO] [stdout] | [INFO] [stdout] 607 | pub fn match_stmt(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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 conversion to the same type: `std::boxed::Box` [INFO] [stdout] --> src/parser/mod.rs:647:35 [INFO] [stdout] | [INFO] [stdout] 647 | MatchCaseType::Is(Box::from(result.left), result.right, Box::from(block)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `Box::from()`: `result.left` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser/mod.rs:681:37 [INFO] [stdout] | [INFO] [stdout] 681 | pub fn expression(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:685:33 [INFO] [stdout] | [INFO] [stdout] 685 | pub fn assign(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:702:34 [INFO] [stdout] | [INFO] [stdout] 702 | pub fn logical(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:720:9 [INFO] [stdout] | [INFO] [stdout] 720 | return Ok(left); [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] 720 - return Ok(left); [INFO] [stdout] 720 + Ok(left) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser/mod.rs:723:49 [INFO] [stdout] | [INFO] [stdout] 723 | pub fn is(&mut self, base: Option) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:745:37 [INFO] [stdout] | [INFO] [stdout] 745 | pub fn comparison(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:762:32 [INFO] [stdout] | [INFO] [stdout] 762 | pub fn range(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:837:35 [INFO] [stdout] | [INFO] [stdout] 837 | pub fn additive(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:854:41 [INFO] [stdout] | [INFO] [stdout] 854 | pub fn multiplicative(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:871:32 [INFO] [stdout] | [INFO] [stdout] 871 | pub fn unary(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:933:42 [INFO] [stdout] | [INFO] [stdout] 933 | pub fn call_member_new(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:937:13 [INFO] [stdout] | [INFO] [stdout] 937 | / matches!(x.t, TokenType::Dot) [INFO] [stdout] 938 | | || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] 939 | | || matches!(x.t, TokenType::DotOptional) [INFO] [stdout] 940 | | || matches!(x.t, TokenType::OpenParan) [INFO] [stdout] 941 | | || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 937 - matches!(x.t, TokenType::Dot) [INFO] [stdout] 938 - || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] 939 - || matches!(x.t, TokenType::DotOptional) [INFO] [stdout] 940 - || matches!(x.t, TokenType::OpenParan) [INFO] [stdout] 941 - || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] 937 + !(!matches!(x.t, TokenType::Dot) && !matches!(x.t, TokenType::OpenSquare) && !matches!(x.t, TokenType::DotOptional) && !matches!(x.t, TokenType::OpenParan)) [INFO] [stdout] | [INFO] [stdout] 937 - matches!(x.t, TokenType::Dot) [INFO] [stdout] 938 - || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] 939 - || matches!(x.t, TokenType::DotOptional) [INFO] [stdout] 940 - || matches!(x.t, TokenType::OpenParan) [INFO] [stdout] 941 - || matches!(x.t, TokenType::OpenSquare) [INFO] [stdout] 937 + matches!(x.t, TokenType::Dot) || matches!(x.t, TokenType::OpenSquare) || matches!(x.t, TokenType::DotOptional) || matches!(x.t, TokenType::OpenParan) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser/mod.rs:1038:34 [INFO] [stdout] | [INFO] [stdout] 1038 | pub fn literal(&mut self) -> NR { [INFO] [stdout] | ^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/parser/mod.rs:1181:17 [INFO] [stdout] | [INFO] [stdout] 1181 | / return Err(ZephyrError { [INFO] [stdout] 1182 | | code: ErrorCode::UnexpectedToken, [INFO] [stdout] 1183 | | message: format!("Cannot handle the token {} here", self.at().value), [INFO] [stdout] 1184 | | location: Some(self.at().location.clone()), [INFO] [stdout] 1185 | | }) [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] 1181 ~ Err(ZephyrError { [INFO] [stdout] 1182 + code: ErrorCode::UnexpectedToken, [INFO] [stdout] 1183 + message: format!("Cannot handle the token {} here", self.at().value), [INFO] [stdout] 1184 + location: Some(self.at().location.clone()), [INFO] [stdout] 1185 + }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/parser/mod.rs:1047:79 [INFO] [stdout] | [INFO] [stdout] 1047 | ... message: format!("Failed to parse number: {}", err.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 function is very large [INFO] [stdout] --> src/runtime/interpreter_conditionals.rs:9:50 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn run_if(&mut self, expr: nodes::If) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_conditionals.rs:21:56 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn run_match(&mut self, expr: nodes::Match) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_functions.rs:17:67 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn run_make_function(&mut self, expr: nodes::Function) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_functions.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | ) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_functions.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | return result; [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] 66 - return result; [INFO] [stdout] 66 + result [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/interpreter_functions.rs:96:54 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn run_call(&mut self, expr: nodes::Call) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_functions.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | / return Err(ZephyrError { [INFO] [stdout] 146 | | code: ErrorCode::InvalidOperation, [INFO] [stdout] 147 | | message: format!("Cannot call a {}", left.type_name()), [INFO] [stdout] 148 | | location: Some(expr.left.location().clone()), [INFO] [stdout] 149 | | }) [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] 145 ~ Err(ZephyrError { [INFO] [stdout] 146 + code: ErrorCode::InvalidOperation, [INFO] [stdout] 147 + message: format!("Cannot call a {}", left.type_name()), [INFO] [stdout] 148 + location: Some(expr.left.location().clone()), [INFO] [stdout] 149 + }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `args.get(0)` [INFO] [stdout] --> src/runtime/interpreter_functions.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | args.get(0).unwrap_or(&null_value).clone(), [INFO] [stdout] | ^^^^^^^^^^^ help: try: `args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `args.get(0)` [INFO] [stdout] --> src/runtime/interpreter_functions.rs:127:21 [INFO] [stdout] | [INFO] [stdout] 127 | args.get(0).unwrap_or(&null_value).clone(), [INFO] [stdout] | ^^^^^^^^^^^ help: try: `args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/interpreter_helper.rs:12:56 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn run_block(&mut self, expr: nodes::Block) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_helper.rs:27:67 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn run_exported(&mut self, expr: nodes::ExportedBlock) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_imports.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn run_export(&mut self, node: nodes::Export) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_imports.rs:48:58 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn run_import(&mut self, node: nodes::Import) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_imports.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | return Ok(values::Null::new().wrap()); [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] 153 - return Ok(values::Null::new().wrap()); [INFO] [stdout] 153 + Ok(values::Null::new().wrap()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/runtime/interpreter_imports.rs:58:70 [INFO] [stdout] | [INFO] [stdout] 58 | message: format!("Cannot resolve {}", _path.display().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/runtime/interpreter_literals.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn run_array(&mut self, expr: nodes::Array) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_literals.rs:22:58 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn run_object(&mut self, expr: nodes::Object) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_literals.rs:32:56 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn run_range(&mut self, expr: nodes::Range) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_loops.rs:16:60 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn run_while(&mut self, expr: nodes::WhileLoop) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_loops.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn run_for(&mut self, expr: nodes::For) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_objects.rs:14:85 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn run_member(&mut self, expr: nodes::Member, set: Option) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_objects.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | return self.member_check_basic(left.clone(), key, set); [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] 30 - return self.member_check_basic(left.clone(), key, set); [INFO] [stdout] 30 + self.member_check_basic(left.clone(), key, set) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/runtime/interpreter_objects.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | / return match right { [INFO] [stdout] 35 | | RuntimeValue::ZString(string) => { [INFO] [stdout] 36 | | self.member_check_basic(left.clone(), string.value, set) [INFO] [stdout] ... | [INFO] [stdout] 126 | | }), [INFO] [stdout] 127 | | }; [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] 34 ~ match right { [INFO] [stdout] 35 + RuntimeValue::ZString(string) => { [INFO] [stdout] 36 + self.member_check_basic(left.clone(), string.value, set) [INFO] [stdout] 37 + } [INFO] [stdout] 38 + RuntimeValue::RangeValue(_range) => { [INFO] [stdout] 39 + let mut range = _range.clone(); [INFO] [stdout] 40 + let iter = left.iter()?; [INFO] [stdout] 41 + [INFO] [stdout] 42 + if range.start < 0f64 { [INFO] [stdout] 43 + range.start = iter.len() as f64 + range.start; [INFO] [stdout] 44 + } [INFO] [stdout] 45 + [INFO] [stdout] 46 + if range.end < 0f64 { [INFO] [stdout] 47 + range.end = iter.len() as f64 + range.end; [INFO] [stdout] 48 + } [INFO] [stdout] 49 + [INFO] [stdout] 50 + let indexes = range [INFO] [stdout] 51 + .iter_f64()? [INFO] [stdout] 52 + .iter() [INFO] [stdout] 53 + .map(|x| *x as usize) [INFO] [stdout] 54 + .collect::>(); [INFO] [stdout] 55 + let mut parts: Vec = vec![]; [INFO] [stdout] 56 + [INFO] [stdout] 57 + for index in indexes { [INFO] [stdout] 58 + if let Some(val) = iter.get(index) { [INFO] [stdout] 59 + parts.push(val.clone()); [INFO] [stdout] 60 + } else { [INFO] [stdout] 61 + return Err(ZephyrError { [INFO] [stdout] 62 + message: "Out of bounds".to_string(), [INFO] [stdout] 63 + code: ErrorCode::OutOfBounds, [INFO] [stdout] 64 + location: Some(expr.location), [INFO] [stdout] 65 + }); [INFO] [stdout] 66 + } [INFO] [stdout] 67 + } [INFO] [stdout] 68 + [INFO] [stdout] 69 + Ok(match left { [INFO] [stdout] 70 + /*RuntimeValue::ZString(_) => values::ZString::new( [INFO] [stdout] 71 + parts [INFO] [stdout] 72 + .iter() [INFO] [stdout] 73 + .map(|z| match z { [INFO] [stdout] 74 + RuntimeValue::ZString(a) => a.value.clone(), [INFO] [stdout] 75 + _ => unreachable!(), [INFO] [stdout] 76 + }) [INFO] [stdout] 77 + .collect::(), [INFO] [stdout] 78 + ) [INFO] [stdout] 79 + .wrap(),*/ [INFO] [stdout] 80 + _ => values::Array::new(parts).wrap(), [INFO] [stdout] 81 + }) [INFO] [stdout] 82 + } [INFO] [stdout] 83 + RuntimeValue::Number(number) => { [INFO] [stdout] 84 + if let Some(set) = set { [INFO] [stdout] 85 + match left { [INFO] [stdout] 86 + RuntimeValue::Array(ref arr) => { [INFO] [stdout] 87 + let mut borrow = arr.items.borrow_mut(); [INFO] [stdout] 88 + if number.value as usize > borrow.len() { [INFO] [stdout] 89 + return Err(ZephyrError { code: ErrorCode::OutOfBounds, message: format!("Trying to assign at index {} but array is only {} items long", number.value, borrow.len()), location: Some(expr.location) }); [INFO] [stdout] 90 + } else { [INFO] [stdout] 91 + if number.value as usize == borrow.len() { [INFO] [stdout] 92 + borrow.push(set); [INFO] [stdout] 93 + } else { [INFO] [stdout] 94 + borrow[number.value as usize] = set; [INFO] [stdout] 95 + } [INFO] [stdout] 96 + [INFO] [stdout] 97 + return Ok(values::Null::new().wrap()); [INFO] [stdout] 98 + } [INFO] [stdout] 99 + } [INFO] [stdout] 100 + _ => { [INFO] [stdout] 101 + return Err(ZephyrError { [INFO] [stdout] 102 + code: ErrorCode::InvalidOperation, [INFO] [stdout] 103 + message: format!("Cannot assign to a {}", left.type_name()), [INFO] [stdout] 104 + location: Some(expr.location), [INFO] [stdout] 105 + }) [INFO] [stdout] 106 + } [INFO] [stdout] 107 + } [INFO] [stdout] 108 + } [INFO] [stdout] 109 + [INFO] [stdout] 110 + let iter = left.iter()?; [INFO] [stdout] 111 + [INFO] [stdout] 112 + if let Some(val) = iter.get(number.value as usize) { [INFO] [stdout] 113 + return Ok(val.clone()); [INFO] [stdout] 114 + } else { [INFO] [stdout] 115 + return Err(ZephyrError { [INFO] [stdout] 116 + message: "Out of bounds".to_string(), [INFO] [stdout] 117 + code: ErrorCode::OutOfBounds, [INFO] [stdout] 118 + location: Some(expr.location), [INFO] [stdout] 119 + }); [INFO] [stdout] 120 + } [INFO] [stdout] 121 + } [INFO] [stdout] 122 + x => Err(ZephyrError { [INFO] [stdout] 123 + message: format!("Cannot access {} via {}", left.type_name(), x.type_name()), [INFO] [stdout] 124 + code: ErrorCode::TypeError, [INFO] [stdout] 125 + location: Some(expr.location), [INFO] [stdout] 126 + }), [INFO] [stdout] 127 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/runtime/interpreter_objects.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | range.start = iter.len() as f64 + range.start; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `range.start += iter.len() as f64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/runtime/interpreter_objects.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | range.end = iter.len() as f64 + range.end; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `range.end += iter.len() as f64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this match could be replaced by its body itself [INFO] [stdout] --> src/runtime/interpreter_objects.rs:69:24 [INFO] [stdout] | [INFO] [stdout] 69 | Ok(match left { [INFO] [stdout] | ________________________^ [INFO] [stdout] 70 | | /*RuntimeValue::ZString(_) => values::ZString::new( [INFO] [stdout] 71 | | parts [INFO] [stdout] 72 | | .iter() [INFO] [stdout] ... | [INFO] [stdout] 80 | | _ => values::Array::new(parts).wrap(), [INFO] [stdout] 81 | | }) [INFO] [stdout] | |_____________________^ help: consider using the match body instead: `values::Array::new(parts).wrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding [INFO] [stdout] = note: `#[warn(clippy::match_single_binding)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/interpreter_objects.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | ) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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 pattern matching, consider using `is_some()` [INFO] [stdout] --> src/runtime/interpreter_objects.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | if let Some(_) = set { [INFO] [stdout] | -------^^^^^^^------ help: try: `if set.is_some()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/runtime/interpreter_objects.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | / match value { [INFO] [stdout] 176 | | RuntimeValue::Object(ref obj) => { [INFO] [stdout] 177 | | if let Some(setter) = set { [INFO] [stdout] 178 | | if obj.items.borrow().contains_key(&key) { [INFO] [stdout] ... | [INFO] [stdout] 189 | | _ => (), [INFO] [stdout] 190 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 175 ~ if let RuntimeValue::Object(ref obj) = value { [INFO] [stdout] 176 + if let Some(setter) = set { [INFO] [stdout] 177 + if obj.items.borrow().contains_key(&key) { [INFO] [stdout] 178 + obj.items.borrow_mut().remove(&key); [INFO] [stdout] 179 + } [INFO] [stdout] 180 + [INFO] [stdout] 181 + obj.items.borrow_mut().insert(key, setter); [INFO] [stdout] 182 + [INFO] [stdout] 183 + return Ok(values::Null::new().wrap()); [INFO] [stdout] 184 + } else if let Some(val) = obj.items.borrow().get(&key) { [INFO] [stdout] 185 + return Ok(val.clone()); [INFO] [stdout] 186 + } [INFO] [stdout] 187 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/interpreter_operators.rs:13:66 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn run_arithmetic(&mut self, expr: nodes::Arithmetic) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_operators.rs:71:54 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn run_comp(&mut self, expr: nodes::Comp) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_operators.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn run_logical(&mut self, expr: nodes::Logical) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_operators.rs:91:56 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn run_unary(&mut self, expr: nodes::Unary) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_operators.rs:101:25 [INFO] [stdout] | [INFO] [stdout] 101 | / return Err(ZephyrError { [INFO] [stdout] 102 | | message: format!("Cannot make {} negative", x.type_name()), [INFO] [stdout] 103 | | code: ErrorCode::TypeError, [INFO] [stdout] 104 | | location: Some(expr.location.clone()), [INFO] [stdout] 105 | | }) [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] 101 ~ Err(ZephyrError { [INFO] [stdout] 102 + message: format!("Cannot make {} negative", x.type_name()), [INFO] [stdout] 103 + code: ErrorCode::TypeError, [INFO] [stdout] 104 + location: Some(expr.location.clone()), [INFO] [stdout] 105 + }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this match could be replaced by its body itself [INFO] [stdout] --> src/runtime/interpreter_operators.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | / match expr.t { [INFO] [stdout] 112 | | _ => unreachable!(), [INFO] [stdout] 113 | | } [INFO] [stdout] | |_____________^ help: consider using the match body instead: `unreachable!()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/interpreter_operators.rs:117:74 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn run_inner_is(&mut self, left: RuntimeValue, right: IsType) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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 if-then-else expression returns a bool literal [INFO] [stdout] --> src/runtime/interpreter_operators.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | / if e.enum_id == enum_id { [INFO] [stdout] 127 | | true [INFO] [stdout] 128 | | } else { [INFO] [stdout] 129 | | false [INFO] [stdout] 130 | | } [INFO] [stdout] | |_________________________^ help: you can reduce it to: `e.enum_id == enum_id` [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/runtime/interpreter_operators.rs:143:50 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn run_is(&mut self, expr: nodes::Is) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_variables.rs:15:60 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run_declare(&mut self, expr: nodes::Declare) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_variables.rs:69:58 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn run_assign(&mut self, expr: nodes::Assign) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/interpreter_variables.rs:93:54 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn run_enum(&mut self, expr: nodes::Enum) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/basics.rs:15:45 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn iter(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/enums.rs:18:59 [INFO] [stdout] | [INFO] [stdout] 18 | fn get_enum_varient_inner(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/events.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn add_listener(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/fs.rs:15:52 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn file_exists(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 52 | def_math_fn!(math_sin, f64::sin); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 53 | def_math_fn!(math_cos, f64::cos); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 54 | def_math_fn!(math_tan, f64::tan); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 55 | def_math_fn!(math_asin, f64::asin); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | def_math_fn!(math_acos, f64::acos); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 57 | def_math_fn!(math_atan, f64::atan); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 58 | def_math_fn!(math_sinh, f64::sinh); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 59 | def_math_fn!(math_cosh, f64::cosh); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 60 | def_math_fn!(math_tanh, f64::tanh); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 61 | def_math_fn!(math_asinh, f64::asinh); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 62 | def_math_fn!(math_acosh, f64::acosh); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 63 | def_math_fn!(math_atanh, f64::atanh); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 64 | def_math_fn!(math_exp, f64::exp); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 65 | def_math_fn!(math_expm1, f64::exp_m1); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 66 | def_math_fn!(math_log, f64::ln); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 67 | def_math_fn!(math_log1p, f64::ln_1p); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 68 | def_math_fn!(math_log2, f64::log2); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 69 | def_math_fn!(math_log10, f64::log10); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | def_math_fn!(math_sqrt, f64::sqrt); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 71 | def_math_fn!(math_cbrt, f64::cbrt); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 72 | def_math_fn!(math_abs, f64::abs); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 73 | def_math_fn!(math_floor, f64::floor); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 74 | def_math_fn!(math_ceil, f64::ceil); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 75 | def_math_fn!(math_round, f64::round); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/math.rs:43:54 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn $name(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 76 | def_math_fn!(math_trunc, f64::trunc); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `def_math_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/module.rs:18:49 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn filename(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/module.rs:25:48 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn dirname(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/proto.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn get_proto_obj(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/proto.rs:28:57 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get_proto_obj_of(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/proto.rs:39:54 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn set_proto_ref(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/strings.rs:19:46 [INFO] [stdout] | [INFO] [stdout] 19 | fn char_code(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/strings.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | / return Ok(values::Number::new_wrapped( [INFO] [stdout] 31 | | value.value.chars().next().unwrap() as u8 as f64, [INFO] [stdout] 32 | | )); [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] 30 ~ Ok(values::Number::new_wrapped( [INFO] [stdout] 31 + value.value.chars().next().unwrap() as u8 as f64, [INFO] [stdout] 32 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/native/strings.rs:38:46 [INFO] [stdout] | [INFO] [stdout] 38 | fn str_split(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/tags.rs:19:48 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn add_tag(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/tags.rs:33:51 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn delete_tag(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/tags.rs:47:48 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn set_tag(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/tcp.rs:32:58 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn create_tcp_stream(ctx: NativeExecutionContext) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/native/tcp.rs:105:25 [INFO] [stdout] | [INFO] [stdout] 105 | / &match &msg.args.get(0).unwrap().value { [INFO] [stdout] 106 | | ThreadInnerValue::ZString(s) => s.clone(), [INFO] [stdout] 107 | | _ => panic!(), [INFO] [stdout] 108 | | } [INFO] [stdout] 109 | | .as_bytes(), [INFO] [stdout] | |___________________________________^ [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] help: change this to [INFO] [stdout] | [INFO] [stdout] 105 ~ match &msg.args.get(0).unwrap().value { [INFO] [stdout] 106 + ThreadInnerValue::ZString(s) => s.clone(), [INFO] [stdout] 107 + _ => panic!(), [INFO] [stdout] 108 + } [INFO] [stdout] 109 ~ .as_bytes(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `msg.args.get(0)` [INFO] [stdout] --> src/runtime/native/tcp.rs:105:33 [INFO] [stdout] | [INFO] [stdout] 105 | &match &msg.args.get(0).unwrap().value { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `msg.args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::collections::HashMap` [INFO] [stdout] --> src/runtime/prototype_store.rs:13:55 [INFO] [stdout] | [INFO] [stdout] 13 | prototype_mapping: Rc::from(RefCell::from(HashMap::from( [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 14 | | [ [INFO] [stdout] 15 | | "any", [INFO] [stdout] 16 | | "event_emitter", [INFO] [stdout] ... | [INFO] [stdout] 25 | | .collect::>(), [INFO] [stdout] 26 | | ))), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing `HashMap::from()` [INFO] [stdout] | [INFO] [stdout] 13 ~ prototype_mapping: Rc::from(RefCell::from([ [INFO] [stdout] 14 + "any", [INFO] [stdout] 15 + "event_emitter", [INFO] [stdout] 16 + "string", [INFO] [stdout] 17 + "array", [INFO] [stdout] 18 + "number", [INFO] [stdout] 19 + "enum", [INFO] [stdout] 20 + "object", [INFO] [stdout] 21 + ] [INFO] [stdout] 22 + .iter() [INFO] [stdout] 23 + .map(|x| (x.to_string(), Object::new_empty())) [INFO] [stdout] 24 ~ .collect::>())), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/scope.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/scope.rs:127:10 [INFO] [stdout] | [INFO] [stdout] 127 | ) -> Result<(), ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/scope.rs:150:10 [INFO] [stdout] | [INFO] [stdout] 150 | ) -> Result<(), ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/scope.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | / (|| { [INFO] [stdout] 155 | | let mut scope = Some(Rc::from(RefCell::from(self.clone()))); [INFO] [stdout] 156 | | [INFO] [stdout] 157 | | while let Some(s) = scope.clone() { [INFO] [stdout] ... | [INFO] [stdout] 173 | | }) [INFO] [stdout] 174 | | })() [INFO] [stdout] | |______________^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/runtime/values/zstring.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | res.push_str("\""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `res.push('"')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] = note: `#[warn(clippy::single_char_add_str)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/functions.rs:26:39 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from(val: RuntimeValue) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/functions.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | let string = format!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 64 | | "{}", [INFO] [stdout] 65 | | self.inner [INFO] [stdout] 66 | | .arguments [INFO] [stdout] ... | [INFO] [stdout] 70 | | .join(", ") [INFO] [stdout] 71 | | ); [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] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] help: consider using `.to_string()` [INFO] [stdout] | [INFO] [stdout] 63 ~ let string = self.inner [INFO] [stdout] 64 + .arguments [INFO] [stdout] 65 + .iter() [INFO] [stdout] 66 + .map(|x| format!("\"{}\"", x)) [INFO] [stdout] 67 + .collect::>() [INFO] [stdout] 68 ~ .join(", ").to_string(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/runtime/values/array.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | result.push_str("]"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `result.push(']')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/runtime/values/event_emitter.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub listeners: Arc>>>>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Uuid` which implements the `Copy` trait [INFO] [stdout] --> src/runtime/values/event_emitter.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | func: part.clone(), [INFO] [stdout] | ^^^^^^^^^^^^ help: try dereferencing it: `*part` [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/event_emitter.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 70 | ) -> Result<(), ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: usage of `contains_key` followed by `insert` on a `HashMap` [INFO] [stdout] --> src/runtime/values/event_emitter.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | / if !lock.contains_key(&message) { [INFO] [stdout] 83 | | lock.insert(message, Arc::from(Mutex::from(vec![func_uuid]))); [INFO] [stdout] 84 | | } else { [INFO] [stdout] 85 | | lock.get(&message) [INFO] [stdout] ... | [INFO] [stdout] 89 | | .push(func_uuid); [INFO] [stdout] 90 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: consider using the `Entry` API: https://doc.rust-lang.org/std/collections/struct.HashMap.html#entry-api [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_entry [INFO] [stdout] = note: `#[warn(clippy::map_entry)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/range.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn iter_f64(&self) -> Result, ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: you are using an explicit closure for copying elements [INFO] [stdout] --> src/runtime/values/range.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(values.iter().map(|z| *z).collect()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `copied` method: `values.iter().copied()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] = note: `#[warn(clippy::map_clone)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/runtime/values/object.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | .map(|(k, v)| { [INFO] [stdout] | __________________^ [INFO] [stdout] 52 | | let value_str = v.to_string(true, color, false)?; [INFO] [stdout] 53 | | Ok(format!("{}: {}", k, value_str)) [INFO] [stdout] 54 | | }) [INFO] [stdout] | |_____________^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/export.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn inner(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/struct_mapping.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | fn from_runtime_value(value: &RuntimeValue) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/struct_mapping.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | .map(|v| <$type>::from_runtime_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] ... [INFO] [stdout] 63 | impl_for_vec!(u8, "array of u8", RuntimeValue::ZString(ref s) => s.value.as_bytes().to_vec()); [INFO] [stdout] | --------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: this warning originates in the macro `impl_for_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this match could be replaced by its body itself [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | / match value { [INFO] [stdout] 41 | | _ => panic!("Not able to convert {} to a thread value yet", value.type_name()) [INFO] [stdout] 42 | | } [INFO] [stdout] | |_________^ help: consider using the match body instead: `panic!("Not able to convert {} to a thread value yet", value.type_name())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/runtime/values/thread_crossing.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | value.0.iter().map(|x| RuntimeValue::from(x)).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `RuntimeValue::from` [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/runtime/values/mod.rs:51:61 [INFO] [stdout] | [INFO] [stdout] 51 | fn to_string(&self, _is_display: bool, _color: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/mod.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | / return Err(ZephyrError { [INFO] [stdout] 53 | | message: format!("Cannot stringify {}", self.type_name()), [INFO] [stdout] 54 | | code: ErrorCode::TypeError, [INFO] [stdout] 55 | | location: None, [INFO] [stdout] 56 | | }); [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] 52 ~ Err(ZephyrError { [INFO] [stdout] 53 + message: format!("Cannot stringify {}", self.type_name()), [INFO] [stdout] 54 + code: ErrorCode::TypeError, [INFO] [stdout] 55 + location: None, [INFO] [stdout] 56 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/mod.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | fn iter(&self) -> Result, ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/mod.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | / return Err(ZephyrError { [INFO] [stdout] 61 | | message: format!("Cannot iter a {}", self.type_name()), [INFO] [stdout] 62 | | code: ErrorCode::CannotIterate, [INFO] [stdout] 63 | | location: None, [INFO] [stdout] 64 | | }); [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] 60 ~ Err(ZephyrError { [INFO] [stdout] 61 + message: format!("Cannot iter a {}", self.type_name()), [INFO] [stdout] 62 + code: ErrorCode::CannotIterate, [INFO] [stdout] 63 + location: None, [INFO] [stdout] 64 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/mod.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 67 | fn len(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/mod.rs:122:27 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn iter(&self) -> Result, ZephyrError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/mod.rs:126:26 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn len(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/values/mod.rs:155:10 [INFO] [stdout] | [INFO] [stdout] 155 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: length comparison to zero [INFO] [stdout] --> src/runtime/values/mod.rs:177:41 [INFO] [stdout] | [INFO] [stdout] 177 | RuntimeValue::ZString(v) => v.value.len() > 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!v.value.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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/values/mod.rs:202:10 [INFO] [stdout] | [INFO] [stdout] 202 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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: all variants have the same prefix: `Thread` [INFO] [stdout] --> src/runtime/zephyr_mspc.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / pub enum MspcSendType { [INFO] [stdout] 13 | | ThreadCreate, [INFO] [stdout] 14 | | ThreadDestroy, [INFO] [stdout] 15 | | ThreadMessage(Job), [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the prefixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/runtime/mod.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 69 | static NODE_TIMINGS: LazyLock>>>> = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: swapping with a temporary value is inefficient [INFO] [stdout] --> src/runtime/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | std::mem::swap(&mut interpreter.scope, &mut lib_scope.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use assignment instead: `interpreter.scope = lib_scope.clone()` [INFO] [stdout] | [INFO] [stdout] note: this expression returns a temporary value [INFO] [stdout] --> src/runtime/mod.rs:134:57 [INFO] [stdout] | [INFO] [stdout] 134 | std::mem::swap(&mut interpreter.scope, &mut lib_scope.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#swap_with_temporary [INFO] [stdout] = note: `#[warn(clippy::swap_with_temporary)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: swapping with a temporary value is inefficient [INFO] [stdout] --> src/runtime/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | std::mem::swap(&mut interpreter.scope, &mut lib_scope.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use assignment instead: `interpreter.scope = lib_scope.clone()` [INFO] [stdout] | [INFO] [stdout] note: this expression returns a temporary value [INFO] [stdout] --> src/runtime/mod.rs:144:57 [INFO] [stdout] | [INFO] [stdout] 144 | std::mem::swap(&mut interpreter.scope, &mut lib_scope.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#swap_with_temporary [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to want to iterate on a map's keys [INFO] [stdout] --> src/runtime/mod.rs:147:30 [INFO] [stdout] | [INFO] [stdout] 147 | for (name, _) in &finished_scope.exported { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map [INFO] [stdout] = note: `#[warn(clippy::for_kv_map)]` on by default [INFO] [stdout] help: use the corresponding method [INFO] [stdout] | [INFO] [stdout] 147 - for (name, _) in &finished_scope.exported { [INFO] [stdout] 147 + for name in finished_scope.exported.keys() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/runtime/mod.rs:159:47 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn base_run(&mut self, node: Node) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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/runtime/mod.rs:244:42 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn run(&mut self, node: Node) -> R { [INFO] [stdout] | ^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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 pattern matching, consider using `is_none()` [INFO] [stdout] --> src/runtime/mod.rs:343:20 [INFO] [stdout] | [INFO] [stdout] 343 | if let None = x.location { [INFO] [stdout] | -------^^^^------------- help: try: `if x.location.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | match run(&file_name) { [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `file_name` [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/main.rs:63:28 [INFO] [stdout] | [INFO] [stdout] 63 | fn run(file_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 224 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ZephyrError`, for example by boxing large elements or replacing it with `Box` [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 conversion to the same type: `std::string::String` [INFO] [stdout] --> src/main.rs:67:38 [INFO] [stdout] | [INFO] [stdout] 67 | let parsed = Parser::new(result, String::from(file_name.to_string())).produce_ast()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `file_name.to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/runtime/native/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | vec![] [INFO] [stdout] | ^^^^^^ help: you can use an array directly: `[]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.95s [INFO] running `Command { std: "docker" "inspect" "ad789874133b2acdffd2b7233d6f28c8e7074887c155df77d90f82c0a5375327", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad789874133b2acdffd2b7233d6f28c8e7074887c155df77d90f82c0a5375327", kill_on_drop: false }` [INFO] [stdout] ad789874133b2acdffd2b7233d6f28c8e7074887c155df77d90f82c0a5375327