[INFO] cloning repository https://github.com/stouffer-labs/cypress [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stouffer-labs/cypress" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstouffer-labs%2Fcypress", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstouffer-labs%2Fcypress'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 038413bc90cae4e3d652366af49788b9128a6667 [INFO] linting stouffer-labs/cypress against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstouffer-labs%2Fcypress" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/stouffer-labs/cypress [INFO] finished tweaking git repo https://github.com/stouffer-labs/cypress [INFO] tweaked toml for git repo https://github.com/stouffer-labs/cypress written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/stouffer-labs/cypress 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/stouffer-labs/cypress 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 rusqlite v0.32.1 [INFO] [stderr] Downloaded webpki-roots v1.0.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] f3dda0e53f75c2faf9f561b04965fc2713674b17b015a4536641b729ec32b54f [INFO] running `Command { std: "docker" "start" "-a" "f3dda0e53f75c2faf9f561b04965fc2713674b17b015a4536641b729ec32b54f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f3dda0e53f75c2faf9f561b04965fc2713674b17b015a4536641b729ec32b54f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3dda0e53f75c2faf9f561b04965fc2713674b17b015a4536641b729ec32b54f", kill_on_drop: false }` [INFO] [stdout] f3dda0e53f75c2faf9f561b04965fc2713674b17b015a4536641b729ec32b54f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] c8f6909438a21b365af5f505a218aaf2eff1ba877fa5b89c4af99f6613570c93 [INFO] running `Command { std: "docker" "start" "-a" "c8f6909438a21b365af5f505a218aaf2eff1ba877fa5b89c4af99f6613570c93", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Checking litemap v0.8.1 [INFO] [stderr] Checking writeable v0.6.2 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Checking rustls-pki-types v1.14.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling syn v2.0.116 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking webpki-roots v1.0.6 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Checking itoa v1.0.17 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking fallible-iterator v0.3.0 [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking ureq v2.12.1 [INFO] [stderr] Checking rusqlite v0.32.1 [INFO] [stderr] Checking cypress v0.1.0 (/opt/rustwide/workdir/crates/cypress) [INFO] [stdout] warning: field `nodes` is never read [INFO] [stdout] --> crates/cypress/src/main.rs:2884:5 [INFO] [stdout] | [INFO] [stdout] 2883 | struct GraphTextData { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 2884 | nodes: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GraphTextData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GraphTextLayout` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2889:6 [INFO] [stdout] | [INFO] [stdout] 2889 | enum GraphTextLayout { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `toggle` are never used [INFO] [stdout] --> crates/cypress/src/main.rs:2896:8 [INFO] [stdout] | [INFO] [stdout] 2895 | impl GraphTextLayout { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 2896 | fn name(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 2904 | fn toggle(self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_graph_text_layout` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2913:4 [INFO] [stdout] | [INFO] [stdout] 2913 | fn parse_graph_text_layout(raw: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GraphTextRenderer` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2923:6 [INFO] [stdout] | [INFO] [stdout] 2923 | enum GraphTextRenderer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `toggle` are never used [INFO] [stdout] --> crates/cypress/src/main.rs:2930:8 [INFO] [stdout] | [INFO] [stdout] 2929 | impl GraphTextRenderer { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 2930 | fn name(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 2938 | fn toggle(self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_graph_text_renderer` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2947:4 [INFO] [stdout] | [INFO] [stdout] 2947 | fn parse_graph_text_renderer(raw: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GraphUiBackend` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2957:6 [INFO] [stdout] | [INFO] [stdout] 2957 | enum GraphUiBackend { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `toggle` are never used [INFO] [stdout] --> crates/cypress/src/main.rs:2966:8 [INFO] [stdout] | [INFO] [stdout] 2965 | impl GraphUiBackend { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 2966 | fn name(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 2976 | fn toggle(self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_graph_ui_backend` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2987:4 [INFO] [stdout] | [INFO] [stdout] 2987 | fn parse_graph_ui_backend(raw: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GraphUiBackendResolved` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2999:6 [INFO] [stdout] | [INFO] [stdout] 2999 | enum GraphUiBackendResolved { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3007:8 [INFO] [stdout] | [INFO] [stdout] 3006 | impl GraphUiBackendResolved { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 3007 | fn name(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `terminal_supports_kitty_graphics` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3017:4 [INFO] [stdout] | [INFO] [stdout] 3017 | fn terminal_supports_kitty_graphics() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `terminal_supports_iterm_inline` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3024:4 [INFO] [stdout] | [INFO] [stdout] 3024 | fn terminal_supports_iterm_inline() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `terminal_is_apple_terminal` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3031:4 [INFO] [stdout] | [INFO] [stdout] 3031 | fn terminal_is_apple_terminal() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_graph_ui_backend` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3037:4 [INFO] [stdout] | [INFO] [stdout] 3037 | fn resolve_graph_ui_backend(choice: GraphUiBackend) -> (GraphUiBackendResolved, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphUiState` is never constructed [INFO] [stdout] --> crates/cypress/src/main.rs:3085:8 [INFO] [stdout] | [INFO] [stdout] 3085 | struct GraphUiState { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_graph_ui_cmd` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3095:4 [INFO] [stdout] | [INFO] [stdout] 3095 | fn run_graph_ui_cmd( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphPoint` is never constructed [INFO] [stdout] --> crates/cypress/src/main.rs:3246:8 [INFO] [stdout] | [INFO] [stdout] 3246 | struct GraphPoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphTextState` is never constructed [INFO] [stdout] --> crates/cypress/src/main.rs:3252:8 [INFO] [stdout] | [INFO] [stdout] 3252 | struct GraphTextState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_graph_text_cmd` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3263:4 [INFO] [stdout] | [INFO] [stdout] 3263 | fn run_graph_text_cmd( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `graph_text_focus_index` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3415:4 [INFO] [stdout] | [INFO] [stdout] 3415 | fn graph_text_focus_index(nodes: &[String], focus_hint: Option<&str>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_graph_text_tui` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3503:4 [INFO] [stdout] | [INFO] [stdout] 3503 | fn draw_graph_text_tui( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_graph_ui_tui` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3519:4 [INFO] [stdout] | [INFO] [stdout] 3519 | fn draw_graph_ui_tui( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_ui_canvas` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3603:4 [INFO] [stdout] | [INFO] [stdout] 3603 | fn render_graph_ui_canvas( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_dot_render` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3687:4 [INFO] [stdout] | [INFO] [stdout] 3687 | fn run_dot_render(dot_src: &str, format: &str, engine: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `graph_ui_dot_source` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3717:4 [INFO] [stdout] | [INFO] [stdout] 3717 | fn graph_ui_dot_source( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_text_snapshot` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3776:4 [INFO] [stdout] | [INFO] [stdout] 3776 | fn render_graph_text_snapshot( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `focus_edge_summary_lines` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4022:4 [INFO] [stdout] | [INFO] [stdout] 4022 | fn focus_edge_summary_lines( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_cluster` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4073:4 [INFO] [stdout] | [INFO] [stdout] 4073 | fn render_graph_cluster( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_focus_star_cluster` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4186:4 [INFO] [stdout] | [INFO] [stdout] 4186 | fn render_focus_star_cluster( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cluster_draw_data` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4310:4 [INFO] [stdout] | [INFO] [stdout] 4310 | fn cluster_draw_data( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_ascii` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4356:4 [INFO] [stdout] | [INFO] [stdout] 4356 | fn render_graph_ascii( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphvizPlainLayout` is never constructed [INFO] [stdout] --> crates/cypress/src/main.rs:4412:8 [INFO] [stdout] | [INFO] [stdout] 4412 | struct GraphvizPlainLayout { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_graphviz_plain` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4418:4 [INFO] [stdout] | [INFO] [stdout] 4418 | fn render_graph_graphviz_plain( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_graphviz_plain_layout` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4539:4 [INFO] [stdout] | [INFO] [stdout] 4539 | fn parse_graphviz_plain_layout(raw: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `map_graphviz_point` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4574:4 [INFO] [stdout] | [INFO] [stdout] 4574 | fn map_graphviz_point( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot_escape` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4595:4 [INFO] [stdout] | [INFO] [stdout] 4595 | fn dot_escape(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `layout_cluster_positions` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4608:4 [INFO] [stdout] | [INFO] [stdout] 4608 | fn layout_cluster_positions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_graph_line` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4643:4 [INFO] [stdout] | [INFO] [stdout] 4643 | fn draw_graph_line(canvas: &mut [Vec], a: GraphPoint, b: GraphPoint) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_manhattan_edge` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4683:4 [INFO] [stdout] | [INFO] [stdout] 4683 | fn draw_manhattan_edge(canvas: &mut [Vec], from: GraphPoint, to: GraphPoint, mid_x: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_hline` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4689:4 [INFO] [stdout] | [INFO] [stdout] 4689 | fn draw_hline(canvas: &mut [Vec], y: i32, x0: i32, x1: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_vline` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4699:4 [INFO] [stdout] | [INFO] [stdout] 4699 | fn draw_vline(canvas: &mut [Vec], x: i32, y0: i32, y1: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spread_slots` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4709:4 [INFO] [stdout] | [INFO] [stdout] 4709 | fn spread_slots(count: usize, min_y: i32, max_y: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canvas_put_char` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4726:4 [INFO] [stdout] | [INFO] [stdout] 4726 | fn canvas_put_char(canvas: &mut [Vec], x: i32, y: i32, ch: char, overwrite: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canvas_put_text` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4753:4 [INFO] [stdout] | [INFO] [stdout] 4753 | fn canvas_put_text(canvas: &mut [Vec], x: i32, y: i32, text: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `short_graph_label` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4774:4 [INFO] [stdout] | [INFO] [stdout] 4774 | fn short_graph_label(path: &str, max_width: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_cluster_label_map` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4778:4 [INFO] [stdout] | [INFO] [stdout] 4778 | fn build_cluster_label_map(nodes: &[String], focus: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cluster_node_legend_lines` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4792:4 [INFO] [stdout] | [INFO] [stdout] 4792 | fn cluster_node_legend_lines( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_lineage_diagram` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4835:4 [INFO] [stdout] | [INFO] [stdout] 4835 | fn render_lineage_diagram( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_matrix` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4915:4 [INFO] [stdout] | [INFO] [stdout] 4915 | fn render_graph_matrix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> crates/cypress/src/main.rs:1653:1 [INFO] [stdout] | [INFO] [stdout] 1653 | / fn maybe_promote_candidate( [INFO] [stdout] 1654 | | conn: &Connection, [INFO] [stdout] 1655 | | examples: &[AutotuneExample], [INFO] [stdout] 1656 | | limit: usize, [INFO] [stdout] ... | [INFO] [stdout] 1661 | | best_metrics: &mut (f64, f64, f64), [INFO] [stdout] 1662 | | ) -> Result<(), String> { [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:2675:17 [INFO] [stdout] | [INFO] [stdout] 2675 | let limit = limit.max(1).min(200); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(1, 200)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] = note: `#[warn(clippy::manual_clamp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: literal with an empty format string [INFO] [stdout] --> crates/cypress/src/main.rs:2697:39 [INFO] [stdout] | [INFO] [stdout] 2697 | "rank", "weight", "relation", "target" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stdout] = note: `#[warn(clippy::print_literal)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 2696 ~ "{:<4} {:>7} {:<18} target", [INFO] [stdout] 2697 ~ "rank", "weight", "relation" [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:2723:17 [INFO] [stdout] | [INFO] [stdout] 2723 | let limit = limit.max(1).min(200); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(1, 200)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: literal with an empty format string [INFO] [stdout] --> crates/cypress/src/main.rs:2767:46 [INFO] [stdout] | [INFO] [stdout] 2767 | "rank", "dir", "weight", "relation", "path" [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 2766 ~ "{:<4} {:<4} {:>7} {:<18} path", [INFO] [stdout] 2767 ~ "rank", "dir", "weight", "relation" [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: literal with an empty format string [INFO] [stdout] --> crates/cypress/src/main.rs:2801:43 [INFO] [stdout] | [INFO] [stdout] 2801 | "rank", "weight", "relation", "source", "target" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 2800 ~ "{:<4} {:>7} {:<18} source -> target", [INFO] [stdout] 2801 ~ "rank", "weight", "relation" [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:3106:16 [INFO] [stdout] | [INFO] [stdout] 3106 | limit: limit.max(12).min(360), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(12, 360)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:3131:13 [INFO] [stdout] | [INFO] [stdout] 3131 | state.limit.min(100).max(8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `state.limit.clamp(8, 100)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cypress/src/main.rs:3157:17 [INFO] [stdout] | [INFO] [stdout] 3157 | / if !data.nodes.is_empty() { [INFO] [stdout] 3158 | | state.focus_idx = (state.focus_idx + 1) % data.nodes.len(); [INFO] [stdout] 3159 | | state.status = [INFO] [stdout] 3160 | | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3161 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3156 ~ ConfigKey::Right | ConfigKey::Down | ConfigKey::Char('j') | ConfigKey::Char('l') [INFO] [stdout] 3157 ~ if !data.nodes.is_empty() => { [INFO] [stdout] 3158 | state.focus_idx = (state.focus_idx + 1) % data.nodes.len(); [INFO] [stdout] 3159 | state.status = [INFO] [stdout] 3160 | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3161 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cypress/src/main.rs:3164:17 [INFO] [stdout] | [INFO] [stdout] 3164 | / if !data.nodes.is_empty() { [INFO] [stdout] 3165 | | if state.focus_idx == 0 { [INFO] [stdout] 3166 | | state.focus_idx = data.nodes.len().saturating_sub(1); [INFO] [stdout] 3167 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 3171 | | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3172 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3163 ~ ConfigKey::Left | ConfigKey::Up | ConfigKey::Char('k') | ConfigKey::Char('h') [INFO] [stdout] 3164 ~ if !data.nodes.is_empty() => { [INFO] [stdout] 3165 | if state.focus_idx == 0 { [INFO] [stdout] ... [INFO] [stdout] 3171 | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3172 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:3276:16 [INFO] [stdout] | [INFO] [stdout] 3276 | limit: limit.max(12).min(360), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(12, 360)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cypress/src/main.rs:3342:17 [INFO] [stdout] | [INFO] [stdout] 3342 | / if !data.nodes.is_empty() { [INFO] [stdout] 3343 | | state.focus_idx = (state.focus_idx + 1) % data.nodes.len(); [INFO] [stdout] 3344 | | state.status = [INFO] [stdout] 3345 | | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3346 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3341 ~ ConfigKey::Right | ConfigKey::Down | ConfigKey::Char('j') | ConfigKey::Char('l') [INFO] [stdout] 3342 ~ if !data.nodes.is_empty() => { [INFO] [stdout] 3343 | state.focus_idx = (state.focus_idx + 1) % data.nodes.len(); [INFO] [stdout] 3344 | state.status = [INFO] [stdout] 3345 | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3346 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cypress/src/main.rs:3349:17 [INFO] [stdout] | [INFO] [stdout] 3349 | / if !data.nodes.is_empty() { [INFO] [stdout] 3350 | | if state.focus_idx == 0 { [INFO] [stdout] 3351 | | state.focus_idx = data.nodes.len().saturating_sub(1); [INFO] [stdout] 3352 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 3356 | | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3357 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3348 ~ ConfigKey::Left | ConfigKey::Up | ConfigKey::Char('k') | ConfigKey::Char('h') [INFO] [stdout] 3349 ~ if !data.nodes.is_empty() => { [INFO] [stdout] 3350 | if state.focus_idx == 0 { [INFO] [stdout] ... [INFO] [stdout] 3356 | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3357 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:3436:17 [INFO] [stdout] | [INFO] [stdout] 3436 | let limit = limit.max(12).min(600); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(12, 600)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:3533:9 [INFO] [stdout] | [INFO] [stdout] 3533 | state.limit.min(140).max(8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `state.limit.clamp(8, 140)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> crates/cypress/src/main.rs:3968:13 [INFO] [stdout] | [INFO] [stdout] 3968 | / if selected.contains(&edge.source) && selected.insert(edge.target.clone()) { [INFO] [stdout] 3969 | | if selected.len() >= max_nodes { [INFO] [stdout] 3970 | | break; [INFO] [stdout] 3971 | | } [INFO] [stdout] 3972 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3968 ~ if selected.contains(&edge.source) && selected.insert(edge.target.clone()) [INFO] [stdout] 3969 ~ && selected.len() >= max_nodes { [INFO] [stdout] 3970 | break; [INFO] [stdout] 3971 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> crates/cypress/src/main.rs:3973:13 [INFO] [stdout] | [INFO] [stdout] 3973 | / if selected.contains(&edge.target) && selected.insert(edge.source.clone()) { [INFO] [stdout] 3974 | | if selected.len() >= max_nodes { [INFO] [stdout] 3975 | | break; [INFO] [stdout] 3976 | | } [INFO] [stdout] 3977 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3973 ~ if selected.contains(&edge.target) && selected.insert(edge.source.clone()) [INFO] [stdout] 3974 ~ && selected.len() >= max_nodes { [INFO] [stdout] 3975 | break; [INFO] [stdout] 3976 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> crates/cypress/src/main.rs:4666:12 [INFO] [stdout] | [INFO] [stdout] 4666 | if !(nx == b.x && ny == b.y) && !(nx == a.x && ny == a.y) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!(nx == b.x && ny == b.y || nx == a.x && ny == a.y)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> crates/cypress/src/main.rs:5372:16 [INFO] [stdout] | [INFO] [stdout] 5372 | if !expected_prog.is_empty() [INFO] [stdout] | ________________^ [INFO] [stdout] 5373 | | && !running.contains(expected_prog) [INFO] [stdout] 5374 | | && !(expected_prog == "falkordb" && running.contains("falkordb-real")) [INFO] [stdout] | |______________________________________________________________________________________^ help: try: `!(expected_prog.is_empty() || running.contains(expected_prog) || expected_prog == "falkordb" && running.contains("falkordb-real"))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `Iterator::find` [INFO] [stdout] --> crates/cypress/src/main.rs:6448:5 [INFO] [stdout] | [INFO] [stdout] 6448 | / for path in known_falkordb_module_locations() { [INFO] [stdout] 6449 | | if path.is_file() { [INFO] [stdout] 6450 | | return Some(path); [INFO] [stdout] ... | [INFO] [stdout] 6453 | | None [INFO] [stdout] | |________^ help: replace with an iterator: `known_falkordb_module_locations().into_iter().find(|path| path.is_file())` [INFO] [stdout] | [INFO] [stdout] = note: you may need to dereference some variables [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_find [INFO] [stdout] = note: `#[warn(clippy::manual_find)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nodes` is never read [INFO] [stdout] --> crates/cypress/src/main.rs:2884:5 [INFO] [stdout] | [INFO] [stdout] 2883 | struct GraphTextData { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 2884 | nodes: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GraphTextData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GraphTextLayout` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2889:6 [INFO] [stdout] | [INFO] [stdout] 2889 | enum GraphTextLayout { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `toggle` are never used [INFO] [stdout] --> crates/cypress/src/main.rs:2896:8 [INFO] [stdout] | [INFO] [stdout] 2895 | impl GraphTextLayout { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 2896 | fn name(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 2904 | fn toggle(self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_graph_text_layout` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2913:4 [INFO] [stdout] | [INFO] [stdout] 2913 | fn parse_graph_text_layout(raw: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GraphTextRenderer` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2923:6 [INFO] [stdout] | [INFO] [stdout] 2923 | enum GraphTextRenderer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `toggle` are never used [INFO] [stdout] --> crates/cypress/src/main.rs:2930:8 [INFO] [stdout] | [INFO] [stdout] 2929 | impl GraphTextRenderer { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 2930 | fn name(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 2938 | fn toggle(self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_graph_text_renderer` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2947:4 [INFO] [stdout] | [INFO] [stdout] 2947 | fn parse_graph_text_renderer(raw: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GraphUiBackend` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2957:6 [INFO] [stdout] | [INFO] [stdout] 2957 | enum GraphUiBackend { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `toggle` are never used [INFO] [stdout] --> crates/cypress/src/main.rs:2966:8 [INFO] [stdout] | [INFO] [stdout] 2965 | impl GraphUiBackend { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 2966 | fn name(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 2976 | fn toggle(self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_graph_ui_backend` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2987:4 [INFO] [stdout] | [INFO] [stdout] 2987 | fn parse_graph_ui_backend(raw: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GraphUiBackendResolved` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:2999:6 [INFO] [stdout] | [INFO] [stdout] 2999 | enum GraphUiBackendResolved { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3007:8 [INFO] [stdout] | [INFO] [stdout] 3006 | impl GraphUiBackendResolved { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 3007 | fn name(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `terminal_supports_kitty_graphics` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3017:4 [INFO] [stdout] | [INFO] [stdout] 3017 | fn terminal_supports_kitty_graphics() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `terminal_supports_iterm_inline` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3024:4 [INFO] [stdout] | [INFO] [stdout] 3024 | fn terminal_supports_iterm_inline() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `terminal_is_apple_terminal` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3031:4 [INFO] [stdout] | [INFO] [stdout] 3031 | fn terminal_is_apple_terminal() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_graph_ui_backend` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3037:4 [INFO] [stdout] | [INFO] [stdout] 3037 | fn resolve_graph_ui_backend(choice: GraphUiBackend) -> (GraphUiBackendResolved, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphUiState` is never constructed [INFO] [stdout] --> crates/cypress/src/main.rs:3085:8 [INFO] [stdout] | [INFO] [stdout] 3085 | struct GraphUiState { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_graph_ui_cmd` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3095:4 [INFO] [stdout] | [INFO] [stdout] 3095 | fn run_graph_ui_cmd( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphPoint` is never constructed [INFO] [stdout] --> crates/cypress/src/main.rs:3246:8 [INFO] [stdout] | [INFO] [stdout] 3246 | struct GraphPoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphTextState` is never constructed [INFO] [stdout] --> crates/cypress/src/main.rs:3252:8 [INFO] [stdout] | [INFO] [stdout] 3252 | struct GraphTextState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_graph_text_cmd` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3263:4 [INFO] [stdout] | [INFO] [stdout] 3263 | fn run_graph_text_cmd( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `graph_text_focus_index` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3415:4 [INFO] [stdout] | [INFO] [stdout] 3415 | fn graph_text_focus_index(nodes: &[String], focus_hint: Option<&str>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_graph_text_tui` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3503:4 [INFO] [stdout] | [INFO] [stdout] 3503 | fn draw_graph_text_tui( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_graph_ui_tui` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3519:4 [INFO] [stdout] | [INFO] [stdout] 3519 | fn draw_graph_ui_tui( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_ui_canvas` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3603:4 [INFO] [stdout] | [INFO] [stdout] 3603 | fn render_graph_ui_canvas( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_dot_render` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3687:4 [INFO] [stdout] | [INFO] [stdout] 3687 | fn run_dot_render(dot_src: &str, format: &str, engine: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `graph_ui_dot_source` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3717:4 [INFO] [stdout] | [INFO] [stdout] 3717 | fn graph_ui_dot_source( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_text_snapshot` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:3776:4 [INFO] [stdout] | [INFO] [stdout] 3776 | fn render_graph_text_snapshot( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `focus_edge_summary_lines` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4022:4 [INFO] [stdout] | [INFO] [stdout] 4022 | fn focus_edge_summary_lines( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_cluster` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4073:4 [INFO] [stdout] | [INFO] [stdout] 4073 | fn render_graph_cluster( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_focus_star_cluster` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4186:4 [INFO] [stdout] | [INFO] [stdout] 4186 | fn render_focus_star_cluster( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cluster_draw_data` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4310:4 [INFO] [stdout] | [INFO] [stdout] 4310 | fn cluster_draw_data( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_ascii` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4356:4 [INFO] [stdout] | [INFO] [stdout] 4356 | fn render_graph_ascii( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphvizPlainLayout` is never constructed [INFO] [stdout] --> crates/cypress/src/main.rs:4412:8 [INFO] [stdout] | [INFO] [stdout] 4412 | struct GraphvizPlainLayout { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_graphviz_plain` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4418:4 [INFO] [stdout] | [INFO] [stdout] 4418 | fn render_graph_graphviz_plain( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_graphviz_plain_layout` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4539:4 [INFO] [stdout] | [INFO] [stdout] 4539 | fn parse_graphviz_plain_layout(raw: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `map_graphviz_point` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4574:4 [INFO] [stdout] | [INFO] [stdout] 4574 | fn map_graphviz_point( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot_escape` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4595:4 [INFO] [stdout] | [INFO] [stdout] 4595 | fn dot_escape(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `layout_cluster_positions` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4608:4 [INFO] [stdout] | [INFO] [stdout] 4608 | fn layout_cluster_positions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_graph_line` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4643:4 [INFO] [stdout] | [INFO] [stdout] 4643 | fn draw_graph_line(canvas: &mut [Vec], a: GraphPoint, b: GraphPoint) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_manhattan_edge` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4683:4 [INFO] [stdout] | [INFO] [stdout] 4683 | fn draw_manhattan_edge(canvas: &mut [Vec], from: GraphPoint, to: GraphPoint, mid_x: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_hline` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4689:4 [INFO] [stdout] | [INFO] [stdout] 4689 | fn draw_hline(canvas: &mut [Vec], y: i32, x0: i32, x1: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_vline` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4699:4 [INFO] [stdout] | [INFO] [stdout] 4699 | fn draw_vline(canvas: &mut [Vec], x: i32, y0: i32, y1: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spread_slots` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4709:4 [INFO] [stdout] | [INFO] [stdout] 4709 | fn spread_slots(count: usize, min_y: i32, max_y: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canvas_put_char` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4726:4 [INFO] [stdout] | [INFO] [stdout] 4726 | fn canvas_put_char(canvas: &mut [Vec], x: i32, y: i32, ch: char, overwrite: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canvas_put_text` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4753:4 [INFO] [stdout] | [INFO] [stdout] 4753 | fn canvas_put_text(canvas: &mut [Vec], x: i32, y: i32, text: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `short_graph_label` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4774:4 [INFO] [stdout] | [INFO] [stdout] 4774 | fn short_graph_label(path: &str, max_width: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_cluster_label_map` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4778:4 [INFO] [stdout] | [INFO] [stdout] 4778 | fn build_cluster_label_map(nodes: &[String], focus: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cluster_node_legend_lines` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4792:4 [INFO] [stdout] | [INFO] [stdout] 4792 | fn cluster_node_legend_lines( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_lineage_diagram` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4835:4 [INFO] [stdout] | [INFO] [stdout] 4835 | fn render_lineage_diagram( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_graph_matrix` is never used [INFO] [stdout] --> crates/cypress/src/main.rs:4915:4 [INFO] [stdout] | [INFO] [stdout] 4915 | fn render_graph_matrix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (11/7) [INFO] [stdout] --> crates/cypress/src/main.rs:8985:1 [INFO] [stdout] | [INFO] [stdout] 8985 | / fn run_bench_falkordb_native( [INFO] [stdout] 8986 | | cwd: &Path, [INFO] [stdout] 8987 | | _cfg: &ConfigValues, [INFO] [stdout] 8988 | | queries: &[String], [INFO] [stdout] ... | [INFO] [stdout] 8996 | | dataset_target: Option, [INFO] [stdout] 8997 | | ) -> Result { [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:10222:21 [INFO] [stdout] | [INFO] [stdout] 10222 | let use_limit = limit.max(10).min(600); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(10, 600)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:10371:36 [INFO] [stdout] | [INFO] [stdout] 10371 | .query_map(params![target, limit.max(1).min(400) as i64], |row| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(1, 400)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> crates/cypress/src/main.rs:1653:1 [INFO] [stdout] | [INFO] [stdout] 1653 | / fn maybe_promote_candidate( [INFO] [stdout] 1654 | | conn: &Connection, [INFO] [stdout] 1655 | | examples: &[AutotuneExample], [INFO] [stdout] 1656 | | limit: usize, [INFO] [stdout] ... | [INFO] [stdout] 1661 | | best_metrics: &mut (f64, f64, f64), [INFO] [stdout] 1662 | | ) -> Result<(), String> { [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used to substitute value for `Option::None` [INFO] [stdout] --> crates/cypress/src/main.rs:12162:22 [INFO] [stdout] | [INFO] [stdout] 12162 | let params = msg.get("params").cloned().unwrap_or_else(|| Value::Null); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default [INFO] [stdout] help: use `unwrap_or` instead [INFO] [stdout] | [INFO] [stdout] 12162 - let params = msg.get("params").cloned().unwrap_or_else(|| Value::Null); [INFO] [stdout] 12162 + let params = msg.get("params").cloned().unwrap_or(Value::Null); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> crates/cypress/src/main.rs:12646:1 [INFO] [stdout] | [INFO] [stdout] 12646 | / fn run_native_index( [INFO] [stdout] 12647 | | cwd: &Path, [INFO] [stdout] 12648 | | cfg: &ConfigValues, [INFO] [stdout] 12649 | | scope_roots: Option>, [INFO] [stdout] ... | [INFO] [stdout] 12654 | | reason: &str, [INFO] [stdout] 12655 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:2675:17 [INFO] [stdout] | [INFO] [stdout] 2675 | let limit = limit.max(1).min(200); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(1, 200)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] = note: `#[warn(clippy::manual_clamp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: literal with an empty format string [INFO] [stdout] --> crates/cypress/src/main.rs:2697:39 [INFO] [stdout] | [INFO] [stdout] 2697 | "rank", "weight", "relation", "target" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stdout] = note: `#[warn(clippy::print_literal)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 2696 ~ "{:<4} {:>7} {:<18} target", [INFO] [stdout] 2697 ~ "rank", "weight", "relation" [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:2723:17 [INFO] [stdout] | [INFO] [stdout] 2723 | let limit = limit.max(1).min(200); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(1, 200)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: literal with an empty format string [INFO] [stdout] --> crates/cypress/src/main.rs:2767:46 [INFO] [stdout] | [INFO] [stdout] 2767 | "rank", "dir", "weight", "relation", "path" [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 2766 ~ "{:<4} {:<4} {:>7} {:<18} path", [INFO] [stdout] 2767 ~ "rank", "dir", "weight", "relation" [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: literal with an empty format string [INFO] [stdout] --> crates/cypress/src/main.rs:2801:43 [INFO] [stdout] | [INFO] [stdout] 2801 | "rank", "weight", "relation", "source", "target" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 2800 ~ "{:<4} {:>7} {:<18} source -> target", [INFO] [stdout] 2801 ~ "rank", "weight", "relation" [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> crates/cypress/src/main.rs:13316:27 [INFO] [stdout] | [INFO] [stdout] 13316 | let include = row.doc_path == *doc_path [INFO] [stdout] | ___________________________^ [INFO] [stdout] 13317 | | || (row.project_path == item.project_path [INFO] [stdout] 13318 | | && row.doc_path != *doc_path [INFO] [stdout] 13319 | | && row.graph >= 0.55) [INFO] [stdout] 13320 | | || (row.project_path != item.project_path && row.graph >= 0.72); [INFO] [stdout] | |_______________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 13316 - let include = row.doc_path == *doc_path [INFO] [stdout] 13317 - || (row.project_path == item.project_path [INFO] [stdout] 13318 - && row.doc_path != *doc_path [INFO] [stdout] 13319 - && row.graph >= 0.55) [INFO] [stdout] 13320 - || (row.project_path != item.project_path && row.graph >= 0.72); [INFO] [stdout] 13316 + let include = (row.graph >= 0.72 || row.project_path == item.project_path || row.doc_path == *doc_path) && (row.graph >= 0.55 || row.project_path != item.project_path || row.doc_path == *doc_path); [INFO] [stdout] | [INFO] [stdout] 13316 - let include = row.doc_path == *doc_path [INFO] [stdout] 13317 - || (row.project_path == item.project_path [INFO] [stdout] 13318 - && row.doc_path != *doc_path [INFO] [stdout] 13319 - && row.graph >= 0.55) [INFO] [stdout] 13320 - || (row.project_path != item.project_path && row.graph >= 0.72); [INFO] [stdout] 13316 + let include = row.doc_path == *doc_path || row.project_path == item.project_path && row.graph >= 0.55 || row.project_path != item.project_path && row.graph >= 0.72; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> crates/cypress/src/main.rs:13316:27 [INFO] [stdout] | [INFO] [stdout] 13316 | let include = row.doc_path == *doc_path [INFO] [stdout] | ___________________________^ [INFO] [stdout] 13317 | | || (row.project_path == item.project_path [INFO] [stdout] 13318 | | && row.doc_path != *doc_path [INFO] [stdout] 13319 | | && row.graph >= 0.55) [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 13316 - let include = row.doc_path == *doc_path [INFO] [stdout] 13317 - || (row.project_path == item.project_path [INFO] [stdout] 13318 - && row.doc_path != *doc_path [INFO] [stdout] 13319 - && row.graph >= 0.55) [INFO] [stdout] 13316 + let include = (row.graph >= 0.55 || row.doc_path == *doc_path) && (row.project_path == item.project_path || row.doc_path == *doc_path) [INFO] [stdout] | [INFO] [stdout] 13316 - let include = row.doc_path == *doc_path [INFO] [stdout] 13317 - || (row.project_path == item.project_path [INFO] [stdout] 13318 - && row.doc_path != *doc_path [INFO] [stdout] 13319 - && row.graph >= 0.55) [INFO] [stdout] 13316 + let include = row.doc_path == *doc_path || row.project_path == item.project_path && row.graph >= 0.55 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:3106:16 [INFO] [stdout] | [INFO] [stdout] 3106 | limit: limit.max(12).min(360), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(12, 360)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:3131:13 [INFO] [stdout] | [INFO] [stdout] 3131 | state.limit.min(100).max(8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `state.limit.clamp(8, 100)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cypress/src/main.rs:3157:17 [INFO] [stdout] | [INFO] [stdout] 3157 | / if !data.nodes.is_empty() { [INFO] [stdout] 3158 | | state.focus_idx = (state.focus_idx + 1) % data.nodes.len(); [INFO] [stdout] 3159 | | state.status = [INFO] [stdout] 3160 | | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3161 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3156 ~ ConfigKey::Right | ConfigKey::Down | ConfigKey::Char('j') | ConfigKey::Char('l') [INFO] [stdout] 3157 ~ if !data.nodes.is_empty() => { [INFO] [stdout] 3158 | state.focus_idx = (state.focus_idx + 1) % data.nodes.len(); [INFO] [stdout] 3159 | state.status = [INFO] [stdout] 3160 | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3161 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cypress/src/main.rs:3164:17 [INFO] [stdout] | [INFO] [stdout] 3164 | / if !data.nodes.is_empty() { [INFO] [stdout] 3165 | | if state.focus_idx == 0 { [INFO] [stdout] 3166 | | state.focus_idx = data.nodes.len().saturating_sub(1); [INFO] [stdout] 3167 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 3171 | | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3172 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3163 ~ ConfigKey::Left | ConfigKey::Up | ConfigKey::Char('k') | ConfigKey::Char('h') [INFO] [stdout] 3164 ~ if !data.nodes.is_empty() => { [INFO] [stdout] 3165 | if state.focus_idx == 0 { [INFO] [stdout] ... [INFO] [stdout] 3171 | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3172 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> crates/cypress/src/main.rs:13481:1 [INFO] [stdout] | [INFO] [stdout] 13481 | / fn apply_chunk_relation_decision( [INFO] [stdout] 13482 | | conn: &Connection, [INFO] [stdout] 13483 | | src_chunk_id: i64, [INFO] [stdout] 13484 | | dst_chunk_id: i64, [INFO] [stdout] ... | [INFO] [stdout] 13489 | | ts: f64, [INFO] [stdout] 13490 | | ) -> Result<(), String> { [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> crates/cypress/src/main.rs:13547:1 [INFO] [stdout] | [INFO] [stdout] 13547 | / fn set_chunk_relation_quality( [INFO] [stdout] 13548 | | conn: &Connection, [INFO] [stdout] 13549 | | src_chunk_id: i64, [INFO] [stdout] 13550 | | dst_chunk_id: i64, [INFO] [stdout] ... | [INFO] [stdout] 13555 | | ts: f64, [INFO] [stdout] 13556 | | ) -> Result { [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:13639:17 [INFO] [stdout] | [INFO] [stdout] 13639 | limit.max(1).min(2000) as i64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(1, 2000)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:3276:16 [INFO] [stdout] | [INFO] [stdout] 3276 | limit: limit.max(12).min(360), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(12, 360)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cypress/src/main.rs:3342:17 [INFO] [stdout] | [INFO] [stdout] 3342 | / if !data.nodes.is_empty() { [INFO] [stdout] 3343 | | state.focus_idx = (state.focus_idx + 1) % data.nodes.len(); [INFO] [stdout] 3344 | | state.status = [INFO] [stdout] 3345 | | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3346 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3341 ~ ConfigKey::Right | ConfigKey::Down | ConfigKey::Char('j') | ConfigKey::Char('l') [INFO] [stdout] 3342 ~ if !data.nodes.is_empty() => { [INFO] [stdout] 3343 | state.focus_idx = (state.focus_idx + 1) % data.nodes.len(); [INFO] [stdout] 3344 | state.status = [INFO] [stdout] 3345 | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3346 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cypress/src/main.rs:3349:17 [INFO] [stdout] | [INFO] [stdout] 3349 | / if !data.nodes.is_empty() { [INFO] [stdout] 3350 | | if state.focus_idx == 0 { [INFO] [stdout] 3351 | | state.focus_idx = data.nodes.len().saturating_sub(1); [INFO] [stdout] 3352 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 3356 | | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3357 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3348 ~ ConfigKey::Left | ConfigKey::Up | ConfigKey::Char('k') | ConfigKey::Char('h') [INFO] [stdout] 3349 ~ if !data.nodes.is_empty() => { [INFO] [stdout] 3350 | if state.focus_idx == 0 { [INFO] [stdout] ... [INFO] [stdout] 3356 | format!("focus: {}", path_basename(&data.nodes[state.focus_idx])); [INFO] [stdout] 3357 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:3436:17 [INFO] [stdout] | [INFO] [stdout] 3436 | let limit = limit.max(12).min(600); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(12, 600)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:3533:9 [INFO] [stdout] | [INFO] [stdout] 3533 | state.limit.min(140).max(8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `state.limit.clamp(8, 140)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> crates/cypress/src/main.rs:3968:13 [INFO] [stdout] | [INFO] [stdout] 3968 | / if selected.contains(&edge.source) && selected.insert(edge.target.clone()) { [INFO] [stdout] 3969 | | if selected.len() >= max_nodes { [INFO] [stdout] 3970 | | break; [INFO] [stdout] 3971 | | } [INFO] [stdout] 3972 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3968 ~ if selected.contains(&edge.source) && selected.insert(edge.target.clone()) [INFO] [stdout] 3969 ~ && selected.len() >= max_nodes { [INFO] [stdout] 3970 | break; [INFO] [stdout] 3971 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> crates/cypress/src/main.rs:3973:13 [INFO] [stdout] | [INFO] [stdout] 3973 | / if selected.contains(&edge.target) && selected.insert(edge.source.clone()) { [INFO] [stdout] 3974 | | if selected.len() >= max_nodes { [INFO] [stdout] 3975 | | break; [INFO] [stdout] 3976 | | } [INFO] [stdout] 3977 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 3973 ~ if selected.contains(&edge.target) && selected.insert(edge.source.clone()) [INFO] [stdout] 3974 ~ && selected.len() >= max_nodes { [INFO] [stdout] 3975 | break; [INFO] [stdout] 3976 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `repeat().take()` can be written more concisely [INFO] [stdout] --> crates/cypress/src/main.rs:14739:28 [INFO] [stdout] | [INFO] [stdout] 14739 | let placeholders = std::iter::repeat("?") [INFO] [stdout] | ____________________________^ [INFO] [stdout] 14740 | | .take(batch.len()) [INFO] [stdout] | |______________________________^ help: consider using `repeat_n()` instead: `std::iter::repeat_n("?", batch.len())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_repeat_n [INFO] [stdout] = note: `#[warn(clippy::manual_repeat_n)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> crates/cypress/src/main.rs:4666:12 [INFO] [stdout] | [INFO] [stdout] 4666 | if !(nx == b.x && ny == b.y) && !(nx == a.x && ny == a.y) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!(nx == b.x && ny == b.y || nx == a.x && ny == a.y)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> crates/cypress/src/main.rs:5372:16 [INFO] [stdout] | [INFO] [stdout] 5372 | if !expected_prog.is_empty() [INFO] [stdout] | ________________^ [INFO] [stdout] 5373 | | && !running.contains(expected_prog) [INFO] [stdout] 5374 | | && !(expected_prog == "falkordb" && running.contains("falkordb-real")) [INFO] [stdout] | |______________________________________________________________________________________^ help: try: `!(expected_prog.is_empty() || running.contains(expected_prog) || expected_prog == "falkordb" && running.contains("falkordb-real"))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used consecutive `str::replace` call [INFO] [stdout] --> crates/cypress/src/main.rs:16233:10 [INFO] [stdout] | [INFO] [stdout] 16233 | .replace('-', " ") [INFO] [stdout] | __________^ [INFO] [stdout] 16234 | | .replace('_', " "); [INFO] [stdout] | |__________________________^ help: replace with: `replace(['-', '_'], " ")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_str_replace [INFO] [stdout] = note: `#[warn(clippy::collapsible_str_replace)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> crates/cypress/src/main.rs:17143:9 [INFO] [stdout] | [INFO] [stdout] 17143 | return (meta.permissions().mode() & 0o111) != 0; [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] 17143 - return (meta.permissions().mode() & 0o111) != 0; [INFO] [stdout] 17143 + (meta.permissions().mode() & 0o111) != 0 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `Iterator::find` [INFO] [stdout] --> crates/cypress/src/main.rs:6448:5 [INFO] [stdout] | [INFO] [stdout] 6448 | / for path in known_falkordb_module_locations() { [INFO] [stdout] 6449 | | if path.is_file() { [INFO] [stdout] 6450 | | return Some(path); [INFO] [stdout] ... | [INFO] [stdout] 6453 | | None [INFO] [stdout] | |________^ help: replace with an iterator: `known_falkordb_module_locations().into_iter().find(|path| path.is_file())` [INFO] [stdout] | [INFO] [stdout] = note: you may need to dereference some variables [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_find [INFO] [stdout] = note: `#[warn(clippy::manual_find)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (11/7) [INFO] [stdout] --> crates/cypress/src/main.rs:8985:1 [INFO] [stdout] | [INFO] [stdout] 8985 | / fn run_bench_falkordb_native( [INFO] [stdout] 8986 | | cwd: &Path, [INFO] [stdout] 8987 | | _cfg: &ConfigValues, [INFO] [stdout] 8988 | | queries: &[String], [INFO] [stdout] ... | [INFO] [stdout] 8996 | | dataset_target: Option, [INFO] [stdout] 8997 | | ) -> Result { [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:10222:21 [INFO] [stdout] | [INFO] [stdout] 10222 | let use_limit = limit.max(10).min(600); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(10, 600)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:10371:36 [INFO] [stdout] | [INFO] [stdout] 10371 | .query_map(params![target, limit.max(1).min(400) as i64], |row| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(1, 400)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used to substitute value for `Option::None` [INFO] [stdout] --> crates/cypress/src/main.rs:12162:22 [INFO] [stdout] | [INFO] [stdout] 12162 | let params = msg.get("params").cloned().unwrap_or_else(|| Value::Null); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default [INFO] [stdout] help: use `unwrap_or` instead [INFO] [stdout] | [INFO] [stdout] 12162 - let params = msg.get("params").cloned().unwrap_or_else(|| Value::Null); [INFO] [stdout] 12162 + let params = msg.get("params").cloned().unwrap_or(Value::Null); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> crates/cypress/src/main.rs:12646:1 [INFO] [stdout] | [INFO] [stdout] 12646 | / fn run_native_index( [INFO] [stdout] 12647 | | cwd: &Path, [INFO] [stdout] 12648 | | cfg: &ConfigValues, [INFO] [stdout] 12649 | | scope_roots: Option>, [INFO] [stdout] ... | [INFO] [stdout] 12654 | | reason: &str, [INFO] [stdout] 12655 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> crates/cypress/src/main.rs:13316:27 [INFO] [stdout] | [INFO] [stdout] 13316 | let include = row.doc_path == *doc_path [INFO] [stdout] | ___________________________^ [INFO] [stdout] 13317 | | || (row.project_path == item.project_path [INFO] [stdout] 13318 | | && row.doc_path != *doc_path [INFO] [stdout] 13319 | | && row.graph >= 0.55) [INFO] [stdout] 13320 | | || (row.project_path != item.project_path && row.graph >= 0.72); [INFO] [stdout] | |_______________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 13316 - let include = row.doc_path == *doc_path [INFO] [stdout] 13317 - || (row.project_path == item.project_path [INFO] [stdout] 13318 - && row.doc_path != *doc_path [INFO] [stdout] 13319 - && row.graph >= 0.55) [INFO] [stdout] 13320 - || (row.project_path != item.project_path && row.graph >= 0.72); [INFO] [stdout] 13316 + let include = (row.graph >= 0.72 || row.project_path == item.project_path || row.doc_path == *doc_path) && (row.graph >= 0.55 || row.project_path != item.project_path || row.doc_path == *doc_path); [INFO] [stdout] | [INFO] [stdout] 13316 - let include = row.doc_path == *doc_path [INFO] [stdout] 13317 - || (row.project_path == item.project_path [INFO] [stdout] 13318 - && row.doc_path != *doc_path [INFO] [stdout] 13319 - && row.graph >= 0.55) [INFO] [stdout] 13320 - || (row.project_path != item.project_path && row.graph >= 0.72); [INFO] [stdout] 13316 + let include = row.doc_path == *doc_path || row.project_path == item.project_path && row.graph >= 0.55 || row.project_path != item.project_path && row.graph >= 0.72; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> crates/cypress/src/main.rs:13316:27 [INFO] [stdout] | [INFO] [stdout] 13316 | let include = row.doc_path == *doc_path [INFO] [stdout] | ___________________________^ [INFO] [stdout] 13317 | | || (row.project_path == item.project_path [INFO] [stdout] 13318 | | && row.doc_path != *doc_path [INFO] [stdout] 13319 | | && row.graph >= 0.55) [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 13316 - let include = row.doc_path == *doc_path [INFO] [stdout] 13317 - || (row.project_path == item.project_path [INFO] [stdout] 13318 - && row.doc_path != *doc_path [INFO] [stdout] 13319 - && row.graph >= 0.55) [INFO] [stdout] 13316 + let include = (row.graph >= 0.55 || row.doc_path == *doc_path) && (row.project_path == item.project_path || row.doc_path == *doc_path) [INFO] [stdout] | [INFO] [stdout] 13316 - let include = row.doc_path == *doc_path [INFO] [stdout] 13317 - || (row.project_path == item.project_path [INFO] [stdout] 13318 - && row.doc_path != *doc_path [INFO] [stdout] 13319 - && row.graph >= 0.55) [INFO] [stdout] 13316 + let include = row.doc_path == *doc_path || row.project_path == item.project_path && row.graph >= 0.55 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> crates/cypress/src/main.rs:13481:1 [INFO] [stdout] | [INFO] [stdout] 13481 | / fn apply_chunk_relation_decision( [INFO] [stdout] 13482 | | conn: &Connection, [INFO] [stdout] 13483 | | src_chunk_id: i64, [INFO] [stdout] 13484 | | dst_chunk_id: i64, [INFO] [stdout] ... | [INFO] [stdout] 13489 | | ts: f64, [INFO] [stdout] 13490 | | ) -> Result<(), String> { [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> crates/cypress/src/main.rs:13547:1 [INFO] [stdout] | [INFO] [stdout] 13547 | / fn set_chunk_relation_quality( [INFO] [stdout] 13548 | | conn: &Connection, [INFO] [stdout] 13549 | | src_chunk_id: i64, [INFO] [stdout] 13550 | | dst_chunk_id: i64, [INFO] [stdout] ... | [INFO] [stdout] 13555 | | ts: f64, [INFO] [stdout] 13556 | | ) -> Result { [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> crates/cypress/src/main.rs:13639:17 [INFO] [stdout] | [INFO] [stdout] 13639 | limit.max(1).min(2000) as i64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `limit.clamp(1, 2000)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `repeat().take()` can be written more concisely [INFO] [stdout] --> crates/cypress/src/main.rs:14739:28 [INFO] [stdout] | [INFO] [stdout] 14739 | let placeholders = std::iter::repeat("?") [INFO] [stdout] | ____________________________^ [INFO] [stdout] 14740 | | .take(batch.len()) [INFO] [stdout] | |______________________________^ help: consider using `repeat_n()` instead: `std::iter::repeat_n("?", batch.len())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_repeat_n [INFO] [stdout] = note: `#[warn(clippy::manual_repeat_n)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used consecutive `str::replace` call [INFO] [stdout] --> crates/cypress/src/main.rs:16233:10 [INFO] [stdout] | [INFO] [stdout] 16233 | .replace('-', " ") [INFO] [stdout] | __________^ [INFO] [stdout] 16234 | | .replace('_', " "); [INFO] [stdout] | |__________________________^ help: replace with: `replace(['-', '_'], " ")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_str_replace [INFO] [stdout] = note: `#[warn(clippy::collapsible_str_replace)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> crates/cypress/src/main.rs:17143:9 [INFO] [stdout] | [INFO] [stdout] 17143 | return (meta.permissions().mode() & 0o111) != 0; [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] 17143 - return (meta.permissions().mode() & 0o111) != 0; [INFO] [stdout] 17143 + (meta.permissions().mode() & 0o111) != 0 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.53s [INFO] running `Command { std: "docker" "inspect" "c8f6909438a21b365af5f505a218aaf2eff1ba877fa5b89c4af99f6613570c93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8f6909438a21b365af5f505a218aaf2eff1ba877fa5b89c4af99f6613570c93", kill_on_drop: false }` [INFO] [stdout] c8f6909438a21b365af5f505a218aaf2eff1ba877fa5b89c4af99f6613570c93