[INFO] cloning repository https://github.com/fastann/fastann [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fastann/fastann" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffastann%2Ffastann", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffastann%2Ffastann'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5b1cf83ac370cb7b8327f16eac2b14ac2b452863 [INFO] checking fastann/fastann against try#ff044a3d65d25a17c3e14c1530004e1540179ba7 for pr-78338 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffastann%2Ffastann" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fastann/fastann on toolchain ff044a3d65d25a17c3e14c1530004e1540179ba7 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fastann/fastann [INFO] finished tweaking git repo https://github.com/fastann/fastann [INFO] tweaked toml for git repo https://github.com/fastann/fastann written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/fastann/fastann already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c51ee2f7d30d3e07bc013f6a92955707a264f25fe56e761917ba143c1f04ffcc [INFO] running `Command { std: "docker" "start" "-a" "c51ee2f7d30d3e07bc013f6a92955707a264f25fe56e761917ba143c1f04ffcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c51ee2f7d30d3e07bc013f6a92955707a264f25fe56e761917ba143c1f04ffcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c51ee2f7d30d3e07bc013f6a92955707a264f25fe56e761917ba143c1f04ffcc", kill_on_drop: false }` [INFO] [stdout] c51ee2f7d30d3e07bc013f6a92955707a264f25fe56e761917ba143c1f04ffcc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+ff044a3d65d25a17c3e14c1530004e1540179ba7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3abdd9c035a2af39581d9d4c846adfe972b32b4f00d57b60b16943ba6be1917c [INFO] running `Command { std: "docker" "start" "-a" "3abdd9c035a2af39581d9d4c846adfe972b32b4f00d57b60b16943ba6be1917c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking fastann v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/annoy/annoy.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/annoy/annoy.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/annoy/annoy.rs:144:26 [INFO] [stdout] | [INFO] [stdout] 144 | fn preprocess(&self, nodes: &[Node]) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:146:26 [INFO] [stdout] | [INFO] [stdout] 146 | fn zero_value(&self, src: &mut Node) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | fn init_node(&self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:172:20 [INFO] [stdout] | [INFO] [stdout] 172 | fn side(&self, src: &Node, dst: &[f64]) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/annoy/annoy.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | fn side(&self, src: &Node, dst: &[f64]) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:176:22 [INFO] [stdout] | [INFO] [stdout] 176 | fn margin(&self, src: &Node, dst: &[f64]) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/annoy/annoy.rs:176:34 [INFO] [stdout] | [INFO] [stdout] 176 | fn margin(&self, src: &Node, dst: &[f64]) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/annoy/annoy.rs:180:27 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `margin` [INFO] [stdout] --> src/annoy/annoy.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_margin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child_nr` [INFO] [stdout] --> src/annoy/annoy.rs:180:59 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_child_nr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/annoy/annoy.rs:315:20 [INFO] [stdout] | [INFO] [stdout] 315 | fn save(&self, filename: &str) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:321:28 [INFO] [stdout] | [INFO] [stdout] 321 | fn get_distance(&self, i: i32, j: i32) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/annoy/annoy.rs:321:36 [INFO] [stdout] | [INFO] [stdout] 321 | fn get_distance(&self, i: i32, j: i32) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/annoy/annoy.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | idx: i32, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/annoy.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `search_k` [INFO] [stdout] --> src/annoy/annoy.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | search_k: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/annoy/annoy.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 334 | f: &[f64], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/annoy.rs:335:9 [INFO] [stdout] | [INFO] [stdout] 335 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `search_k` [INFO] [stdout] --> src/annoy/annoy.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | search_k: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/annoy/annoy.rs:346:23 [INFO] [stdout] | [INFO] [stdout] 346 | fn verbose(&self, v: bool) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/annoy/annoy.rs:347:24 [INFO] [stdout] | [INFO] [stdout] 347 | fn get_item(&self, item: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/annoy/annoy.rs:350:28 [INFO] [stdout] | [INFO] [stdout] 350 | fn set_seed(&mut self, q: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | Err(e) => return, // do nothing [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | fn init_node(&self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/annoy/annoy.rs:377:28 [INFO] [stdout] | [INFO] [stdout] 377 | fn add_item(&mut self, item: i32, w: &[f64], d: D) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:508:17 [INFO] [stdout] | [INFO] [stdout] 508 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:552:21 [INFO] [stdout] | [INFO] [stdout] 552 | Err(e) => continue, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:609:13 [INFO] [stdout] | [INFO] [stdout] 609 | for i in 0..attempt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:660:21 [INFO] [stdout] | [INFO] [stdout] 660 | Err(e) => continue, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:697:13 [INFO] [stdout] | [INFO] [stdout] 697 | let node = Node::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/random.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn set_seed(n: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/annoy/annoy.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_with_vectors` [INFO] [stdout] --> src/annoy/annoy.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_with_vectors(_v: &[f64]) -> Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `copy` [INFO] [stdout] --> src/annoy/annoy.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn copy(dst: &mut Node, src: &Node) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normalize_distances` [INFO] [stdout] --> src/annoy/annoy.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | fn normalize_distances(&self, distance: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pq_initial_value` [INFO] [stdout] --> src/annoy/annoy.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 278 | fn pq_initial_value(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/annoy/annoy.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/annoy/annoy.rs:472:12 [INFO] [stdout] | [INFO] [stdout] 472 | pub fn new(f: usize, d: D) -> AnnoyIndex { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_f` [INFO] [stdout] --> src/annoy/annoy.rs:484:12 [INFO] [stdout] | [INFO] [stdout] 484 | pub fn get_f(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `V_ARRAY_SIZE` [INFO] [stdout] --> src/annoy/def.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub const V_ARRAY_SIZE: usize = 65536; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `manhanttan_distance` [INFO] [stdout] --> src/common/calc.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn manhanttan_distance(vec1: &[T], vec2: &[T]) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enclidean_distance` [INFO] [stdout] --> src/common/calc.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn enclidean_distance(vec1: &[T], vec2: &[T]) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `_K` should have a snake case name [INFO] [stdout] --> src/annoy/annoy.rs:363:5 [INFO] [stdout] | [INFO] [stdout] 363 | _K: i32, // max number of n_descendants to fit into node [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `attempt` should have an upper case name [INFO] [stdout] --> src/annoy/annoy.rs:608:15 [INFO] [stdout] | [INFO] [stdout] 608 | const attempt: usize = 3; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `ATTEMPT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/annoy/annoy.rs:144:26 [INFO] [stdout] | [INFO] [stdout] 144 | fn preprocess(&self, nodes: &[Node]) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:146:26 [INFO] [stdout] | [INFO] [stdout] 146 | fn zero_value(&self, src: &mut Node) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | fn init_node(&self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:172:20 [INFO] [stdout] | [INFO] [stdout] 172 | fn side(&self, src: &Node, dst: &[f64]) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/annoy/annoy.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | fn side(&self, src: &Node, dst: &[f64]) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:176:22 [INFO] [stdout] | [INFO] [stdout] 176 | fn margin(&self, src: &Node, dst: &[f64]) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/annoy/annoy.rs:176:34 [INFO] [stdout] | [INFO] [stdout] 176 | fn margin(&self, src: &Node, dst: &[f64]) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/annoy/annoy.rs:180:27 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `margin` [INFO] [stdout] --> src/annoy/annoy.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_margin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child_nr` [INFO] [stdout] --> src/annoy/annoy.rs:180:59 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_child_nr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/annoy/annoy.rs:315:20 [INFO] [stdout] | [INFO] [stdout] 315 | fn save(&self, filename: &str) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:321:28 [INFO] [stdout] | [INFO] [stdout] 321 | fn get_distance(&self, i: i32, j: i32) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/annoy/annoy.rs:321:36 [INFO] [stdout] | [INFO] [stdout] 321 | fn get_distance(&self, i: i32, j: i32) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/annoy/annoy.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | idx: i32, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/annoy.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `search_k` [INFO] [stdout] --> src/annoy/annoy.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | search_k: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/annoy/annoy.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 334 | f: &[f64], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/annoy.rs:335:9 [INFO] [stdout] | [INFO] [stdout] 335 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `search_k` [INFO] [stdout] --> src/annoy/annoy.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | search_k: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/annoy/annoy.rs:346:23 [INFO] [stdout] | [INFO] [stdout] 346 | fn verbose(&self, v: bool) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/annoy/annoy.rs:347:24 [INFO] [stdout] | [INFO] [stdout] 347 | fn get_item(&self, item: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/annoy/annoy.rs:350:28 [INFO] [stdout] | [INFO] [stdout] 350 | fn set_seed(&mut self, q: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | Err(e) => return, // do nothing [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | fn init_node(&self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/annoy/annoy.rs:377:28 [INFO] [stdout] | [INFO] [stdout] 377 | fn add_item(&mut self, item: i32, w: &[f64], d: D) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:508:17 [INFO] [stdout] | [INFO] [stdout] 508 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:552:21 [INFO] [stdout] | [INFO] [stdout] 552 | Err(e) => continue, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:609:13 [INFO] [stdout] | [INFO] [stdout] 609 | for i in 0..attempt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:660:21 [INFO] [stdout] | [INFO] [stdout] 660 | Err(e) => continue, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:697:13 [INFO] [stdout] | [INFO] [stdout] 697 | let node = Node::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/random.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn set_seed(n: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/annoy/annoy.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/annoy/annoy.rs:612:13 [INFO] [stdout] | [INFO] [stdout] 612 | self.distance.create_split(children.as_slice(), &mut m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_with_vectors` [INFO] [stdout] --> src/annoy/annoy.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_with_vectors(_v: &[f64]) -> Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `copy` [INFO] [stdout] --> src/annoy/annoy.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn copy(dst: &mut Node, src: &Node) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normalize_distances` [INFO] [stdout] --> src/annoy/annoy.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | fn normalize_distances(&self, distance: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pq_initial_value` [INFO] [stdout] --> src/annoy/annoy.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 278 | fn pq_initial_value(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/annoy/annoy.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/annoy/annoy.rs:472:12 [INFO] [stdout] | [INFO] [stdout] 472 | pub fn new(f: usize, d: D) -> AnnoyIndex { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_f` [INFO] [stdout] --> src/annoy/annoy.rs:484:12 [INFO] [stdout] | [INFO] [stdout] 484 | pub fn get_f(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `V_ARRAY_SIZE` [INFO] [stdout] --> src/annoy/def.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub const V_ARRAY_SIZE: usize = 65536; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `manhanttan_distance` [INFO] [stdout] --> src/common/calc.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn manhanttan_distance(vec1: &[T], vec2: &[T]) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enclidean_distance` [INFO] [stdout] --> src/common/calc.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn enclidean_distance(vec1: &[T], vec2: &[T]) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `_K` should have a snake case name [INFO] [stdout] --> src/annoy/annoy.rs:363:5 [INFO] [stdout] | [INFO] [stdout] 363 | _K: i32, // max number of n_descendants to fit into node [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `attempt` should have an upper case name [INFO] [stdout] --> src/annoy/annoy.rs:608:15 [INFO] [stdout] | [INFO] [stdout] 608 | const attempt: usize = 3; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `ATTEMPT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/annoy/annoy.rs:612:13 [INFO] [stdout] | [INFO] [stdout] 612 | self.distance.create_split(children.as_slice(), &mut m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/annoy/annoy.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/annoy/annoy.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/annoy/annoy.rs:144:26 [INFO] [stdout] | [INFO] [stdout] 144 | fn preprocess(&self, nodes: &[Node]) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:146:26 [INFO] [stdout] | [INFO] [stdout] 146 | fn zero_value(&self, src: &mut Node) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | fn init_node(&self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:172:20 [INFO] [stdout] | [INFO] [stdout] 172 | fn side(&self, src: &Node, dst: &[f64]) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/annoy/annoy.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | fn side(&self, src: &Node, dst: &[f64]) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:176:22 [INFO] [stdout] | [INFO] [stdout] 176 | fn margin(&self, src: &Node, dst: &[f64]) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/annoy/annoy.rs:176:34 [INFO] [stdout] | [INFO] [stdout] 176 | fn margin(&self, src: &Node, dst: &[f64]) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/annoy/annoy.rs:180:27 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `margin` [INFO] [stdout] --> src/annoy/annoy.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_margin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child_nr` [INFO] [stdout] --> src/annoy/annoy.rs:180:59 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_child_nr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/annoy/annoy.rs:315:20 [INFO] [stdout] | [INFO] [stdout] 315 | fn save(&self, filename: &str) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:321:28 [INFO] [stdout] | [INFO] [stdout] 321 | fn get_distance(&self, i: i32, j: i32) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/annoy/annoy.rs:321:36 [INFO] [stdout] | [INFO] [stdout] 321 | fn get_distance(&self, i: i32, j: i32) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/annoy/annoy.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | idx: i32, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/annoy.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `search_k` [INFO] [stdout] --> src/annoy/annoy.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | search_k: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/annoy/annoy.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 334 | f: &[f64], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/annoy.rs:335:9 [INFO] [stdout] | [INFO] [stdout] 335 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `search_k` [INFO] [stdout] --> src/annoy/annoy.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | search_k: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/annoy/annoy.rs:346:23 [INFO] [stdout] | [INFO] [stdout] 346 | fn verbose(&self, v: bool) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/annoy/annoy.rs:347:24 [INFO] [stdout] | [INFO] [stdout] 347 | fn get_item(&self, item: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/annoy/annoy.rs:350:28 [INFO] [stdout] | [INFO] [stdout] 350 | fn set_seed(&mut self, q: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | Err(e) => return, // do nothing [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | fn init_node(&self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/annoy/annoy.rs:377:28 [INFO] [stdout] | [INFO] [stdout] 377 | fn add_item(&mut self, item: i32, w: &[f64], d: D) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:508:17 [INFO] [stdout] | [INFO] [stdout] 508 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:552:21 [INFO] [stdout] | [INFO] [stdout] 552 | Err(e) => continue, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:609:13 [INFO] [stdout] | [INFO] [stdout] 609 | for i in 0..attempt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:660:21 [INFO] [stdout] | [INFO] [stdout] 660 | Err(e) => continue, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:697:13 [INFO] [stdout] | [INFO] [stdout] 697 | let node = Node::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/random.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn set_seed(n: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/annoy/annoy.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_with_vectors` [INFO] [stdout] --> src/annoy/annoy.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_with_vectors(_v: &[f64]) -> Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `copy` [INFO] [stdout] --> src/annoy/annoy.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn copy(dst: &mut Node, src: &Node) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normalize_distances` [INFO] [stdout] --> src/annoy/annoy.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | fn normalize_distances(&self, distance: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pq_initial_value` [INFO] [stdout] --> src/annoy/annoy.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 278 | fn pq_initial_value(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/annoy/annoy.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_f` [INFO] [stdout] --> src/annoy/annoy.rs:484:12 [INFO] [stdout] | [INFO] [stdout] 484 | pub fn get_f(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `V_ARRAY_SIZE` [INFO] [stdout] --> src/annoy/def.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub const V_ARRAY_SIZE: usize = 65536; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/annoy/annoy.rs:144:26 [INFO] [stdout] | [INFO] [stdout] 144 | fn preprocess(&self, nodes: &[Node]) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:146:26 [INFO] [stdout] | [INFO] [stdout] 146 | fn zero_value(&self, src: &mut Node) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | fn init_node(&self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:172:20 [INFO] [stdout] | [INFO] [stdout] 172 | fn side(&self, src: &Node, dst: &[f64]) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/annoy/annoy.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | fn side(&self, src: &Node, dst: &[f64]) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/annoy/annoy.rs:176:22 [INFO] [stdout] | [INFO] [stdout] 176 | fn margin(&self, src: &Node, dst: &[f64]) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/annoy/annoy.rs:176:34 [INFO] [stdout] | [INFO] [stdout] 176 | fn margin(&self, src: &Node, dst: &[f64]) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/annoy/annoy.rs:180:27 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `margin` [INFO] [stdout] --> src/annoy/annoy.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_margin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child_nr` [INFO] [stdout] --> src/annoy/annoy.rs:180:59 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_child_nr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/annoy/annoy.rs:315:20 [INFO] [stdout] | [INFO] [stdout] 315 | fn save(&self, filename: &str) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:321:28 [INFO] [stdout] | [INFO] [stdout] 321 | fn get_distance(&self, i: i32, j: i32) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/annoy/annoy.rs:321:36 [INFO] [stdout] | [INFO] [stdout] 321 | fn get_distance(&self, i: i32, j: i32) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/annoy/annoy.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | idx: i32, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/annoy.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `search_k` [INFO] [stdout] --> src/annoy/annoy.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | search_k: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/annoy/annoy.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 334 | f: &[f64], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/annoy.rs:335:9 [INFO] [stdout] | [INFO] [stdout] 335 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `search_k` [INFO] [stdout] --> src/annoy/annoy.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | search_k: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/annoy/annoy.rs:346:23 [INFO] [stdout] | [INFO] [stdout] 346 | fn verbose(&self, v: bool) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/annoy/annoy.rs:347:24 [INFO] [stdout] | [INFO] [stdout] 347 | fn get_item(&self, item: f64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/annoy/annoy.rs:350:28 [INFO] [stdout] | [INFO] [stdout] 350 | fn set_seed(&mut self, q: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | Err(e) => return, // do nothing [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | fn init_node(&self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/annoy/annoy.rs:377:28 [INFO] [stdout] | [INFO] [stdout] 377 | fn add_item(&mut self, item: i32, w: &[f64], d: D) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:508:17 [INFO] [stdout] | [INFO] [stdout] 508 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:552:21 [INFO] [stdout] | [INFO] [stdout] 552 | Err(e) => continue, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/annoy/annoy.rs:609:13 [INFO] [stdout] | [INFO] [stdout] 609 | for i in 0..attempt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/annoy/annoy.rs:660:21 [INFO] [stdout] | [INFO] [stdout] 660 | Err(e) => continue, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/annoy/annoy.rs:697:13 [INFO] [stdout] | [INFO] [stdout] 697 | let node = Node::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/annoy/random.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn set_seed(n: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | aix.add_item(i as i32, &f, angular); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `_K` should have a snake case name [INFO] [stdout] --> src/annoy/annoy.rs:363:5 [INFO] [stdout] | [INFO] [stdout] 363 | _K: i32, // max number of n_descendants to fit into node [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `attempt` should have an upper case name [INFO] [stdout] --> src/annoy/annoy.rs:608:15 [INFO] [stdout] | [INFO] [stdout] 608 | const attempt: usize = 3; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `ATTEMPT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/annoy/annoy.rs:612:13 [INFO] [stdout] | [INFO] [stdout] 612 | self.distance.create_split(children.as_slice(), &mut m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/annoy/annoy.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | fn pq_distance(&self, distance: f64, mut margin: f64, child_nr: usize) -> f64 { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_with_vectors` [INFO] [stdout] --> src/annoy/annoy.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_with_vectors(_v: &[f64]) -> Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `copy` [INFO] [stdout] --> src/annoy/annoy.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn copy(dst: &mut Node, src: &Node) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normalize_distances` [INFO] [stdout] --> src/annoy/annoy.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | fn normalize_distances(&self, distance: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pq_initial_value` [INFO] [stdout] --> src/annoy/annoy.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 278 | fn pq_initial_value(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/annoy/annoy.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_f` [INFO] [stdout] --> src/annoy/annoy.rs:484:12 [INFO] [stdout] | [INFO] [stdout] 484 | pub fn get_f(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `V_ARRAY_SIZE` [INFO] [stdout] --> src/annoy/def.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub const V_ARRAY_SIZE: usize = 65536; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | aix.add_item(i as i32, &f, angular); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `_K` should have a snake case name [INFO] [stdout] --> src/annoy/annoy.rs:363:5 [INFO] [stdout] | [INFO] [stdout] 363 | _K: i32, // max number of n_descendants to fit into node [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `attempt` should have an upper case name [INFO] [stdout] --> src/annoy/annoy.rs:608:15 [INFO] [stdout] | [INFO] [stdout] 608 | const attempt: usize = 3; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `ATTEMPT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/annoy/annoy.rs:612:13 [INFO] [stdout] | [INFO] [stdout] 612 | self.distance.create_split(children.as_slice(), &mut m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 16.01s [INFO] running `Command { std: "docker" "inspect" "3abdd9c035a2af39581d9d4c846adfe972b32b4f00d57b60b16943ba6be1917c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3abdd9c035a2af39581d9d4c846adfe972b32b4f00d57b60b16943ba6be1917c", kill_on_drop: false }` [INFO] [stdout] 3abdd9c035a2af39581d9d4c846adfe972b32b4f00d57b60b16943ba6be1917c