[INFO] cloning repository https://github.com/ChocolateOverflow/shelf [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ChocolateOverflow/shelf" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChocolateOverflow%2Fshelf", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChocolateOverflow%2Fshelf'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 92fd6d1727506ccd3f27038a535c0efcc474fd07 [INFO] checking ChocolateOverflow/shelf against master#36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 for pr-81863 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChocolateOverflow%2Fshelf" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ChocolateOverflow/shelf on toolchain 36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ChocolateOverflow/shelf [INFO] finished tweaking git repo https://github.com/ChocolateOverflow/shelf [INFO] tweaked toml for git repo https://github.com/ChocolateOverflow/shelf written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/ChocolateOverflow/shelf already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "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] 2a8b29de555fbee1b5541bf3fec002c77bf1b89ccd0515b7828f9f01e3aab59e [INFO] running `Command { std: "docker" "start" "-a" "2a8b29de555fbee1b5541bf3fec002c77bf1b89ccd0515b7828f9f01e3aab59e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a8b29de555fbee1b5541bf3fec002c77bf1b89ccd0515b7828f9f01e3aab59e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a8b29de555fbee1b5541bf3fec002c77bf1b89ccd0515b7828f9f01e3aab59e", kill_on_drop: false }` [INFO] [stdout] 2a8b29de555fbee1b5541bf3fec002c77bf1b89ccd0515b7828f9f01e3aab59e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2e4ad2aeccb2ca054bc7bccedf25c64522b4c2b1a7fb25089ac15505b693a6a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a2e4ad2aeccb2ca054bc7bccedf25c64522b4c2b1a7fb25089ac15505b693a6a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling libc v0.2.85 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking dirs v3.0.1 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Checking serde v1.0.123 [INFO] [stderr] Checking serde_yaml v0.8.16 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking shelf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/core/fsio.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/core/fsio.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/core/shelf.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/core/fsio.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/core/fsio.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/core/shelf.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/core/fsio.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/core/fsio.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/core/shelf.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::download_handler::*` [INFO] [stdout] --> src/client.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::core::download_handler::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::module_handler::*` [INFO] [stdout] --> src/client.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::core::module_handler::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/core/fsio.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/core/fsio.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/core/shelf.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::download_handler::*` [INFO] [stdout] --> src/client.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::core::download_handler::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::module_handler::*` [INFO] [stdout] --> src/client.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::core::module_handler::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shelf` [INFO] [stdout] --> src/daemon.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shelf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modules_dir` [INFO] [stdout] --> src/daemon.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modules_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shelf` [INFO] [stdout] --> src/daemon.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut shelf = Shelf::new(load_index(path_to_index), load_favorites(path_to_fav)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shelf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_handler` [INFO] [stdout] --> src/daemon.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let module_handler = ModuleHandler::new(path_to_modules); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `download_handler` [INFO] [stdout] --> src/daemon.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut download_handler = DownloadHandler::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_download_handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verbose` [INFO] [stdout] --> src/daemon.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let verbose: bool = { args.is_present("verbose") }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verbose` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/core/download_handler.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn remove_item(&mut self, id: u64) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/core/fsio.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn load_favorites(file: PathBuf) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shelf` [INFO] [stdout] --> src/core/fsio.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shelf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/core/fsio.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `favorites` [INFO] [stdout] --> src/core/fsio.rs:54:49 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_favorites` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_url_valid(url: String) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | fn derive_code(url: String) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | fn derive_url(code: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shelf` [INFO] [stdout] --> src/client.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shelf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_metadata(code: String) -> HashMap { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_pages(code: String) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modules_dir` [INFO] [stdout] --> src/core/module_handler.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(modules_dir: PathBuf) -> ModuleHandler { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modules_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:51:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn derive_module(&self, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/module_handler.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:52:48 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/module_handler.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:44:32 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/shelf.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title_regex` [INFO] [stdout] --> src/core/shelf.rs:47:31 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn search_item(&self, title_regex: String) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_title_regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:49:52 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:51:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/daemon.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut shelf = Shelf::new(load_index(path_to_index), load_favorites(path_to_fav)); [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 variable: `modules_dir` [INFO] [stdout] --> src/client.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modules_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shelf` [INFO] [stdout] --> src/daemon.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shelf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modules_dir` [INFO] [stdout] --> src/daemon.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modules_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shelf` [INFO] [stdout] --> src/daemon.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut shelf = Shelf::new(load_index(path_to_index), load_favorites(path_to_fav)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shelf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_handler` [INFO] [stdout] --> src/daemon.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let module_handler = ModuleHandler::new(path_to_modules); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `download_handler` [INFO] [stdout] --> src/daemon.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut download_handler = DownloadHandler::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_download_handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/daemon.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut download_handler = DownloadHandler::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verbose` [INFO] [stdout] --> src/daemon.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let verbose: bool = { args.is_present("verbose") }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verbose` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verbose` [INFO] [stdout] --> src/client.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let verbose: bool = { args.is_present("verbose") }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verbose` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/core/download_handler.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn remove_item(&mut self, id: u64) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/core/download_handler.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn remove_item(&mut self, id: u64) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shelf` [INFO] [stdout] --> src/client.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shelf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/core/fsio.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn load_favorites(file: PathBuf) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modules_dir` [INFO] [stdout] --> src/client.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modules_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verbose` [INFO] [stdout] --> src/client.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let verbose: bool = { args.is_present("verbose") }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verbose` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/core/download_handler.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn remove_item(&mut self, id: u64) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/core/fsio.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn load_favorites(file: PathBuf) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shelf` [INFO] [stdout] --> src/core/fsio.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shelf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shelf` [INFO] [stdout] --> src/core/fsio.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shelf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/core/fsio.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/core/fsio.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `favorites` [INFO] [stdout] --> src/core/fsio.rs:54:49 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_favorites` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `favorites` [INFO] [stdout] --> src/core/fsio.rs:54:49 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_favorites` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_url_valid(url: String) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | fn derive_code(url: String) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_url_valid(url: String) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | fn derive_url(code: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_metadata(code: String) -> HashMap { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | fn derive_code(url: String) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_pages(code: String) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | fn derive_url(code: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/core/fsio.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn load_favorites(file: PathBuf) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modules_dir` [INFO] [stdout] --> src/core/module_handler.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(modules_dir: PathBuf) -> ModuleHandler { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modules_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shelf` [INFO] [stdout] --> src/core/fsio.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shelf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_metadata(code: String) -> HashMap { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_pages(code: String) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:51:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn derive_module(&self, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/core/fsio.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `favorites` [INFO] [stdout] --> src/core/fsio.rs:54:49 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_favorites` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_url_valid(url: String) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | fn derive_code(url: String) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | fn derive_url(code: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_metadata(code: String) -> HashMap { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_pages(code: String) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modules_dir` [INFO] [stdout] --> src/core/module_handler.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(modules_dir: PathBuf) -> ModuleHandler { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modules_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:51:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn derive_module(&self, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/module_handler.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:52:48 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/module_handler.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:44:32 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/shelf.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title_regex` [INFO] [stdout] --> src/core/shelf.rs:47:31 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn search_item(&self, title_regex: String) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_title_regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:49:52 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:51:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modules_dir` [INFO] [stdout] --> src/core/module_handler.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(modules_dir: PathBuf) -> ModuleHandler { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modules_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:51:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn derive_module(&self, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/module_handler.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:52:48 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/module_handler.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/module_handler.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/module_handler.rs:52:48 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:44:32 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/module_handler.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/shelf.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/module_handler.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:44:32 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/core/shelf.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title_regex` [INFO] [stdout] --> src/core/shelf.rs:47:31 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn search_item(&self, title_regex: String) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_title_regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:49:52 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:51:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/daemon.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut shelf = Shelf::new(load_index(path_to_index), load_favorites(path_to_fav)); [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: variable does not need to be mutable [INFO] [stdout] --> src/daemon.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut download_handler = DownloadHandler::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title_regex` [INFO] [stdout] --> src/core/shelf.rs:47:31 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn search_item(&self, title_regex: String) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_title_regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:49:52 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/core/shelf.rs:51:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/core/shelf.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DlItem` [INFO] [stdout] --> src/core/download_handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct DlItem { [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: `new` [INFO] [stdout] --> src/core/download_handler.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(id: u64, pages: Vec, dest_dir: PathBuf) -> DlItem { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DownloadHandler` [INFO] [stdout] --> src/core/download_handler.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DownloadHandler { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/download_handler.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new() -> DownloadHandler { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `queue_item` [INFO] [stdout] --> src/core/download_handler.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn queue_item(&mut self, pages: Vec, dest_dir: PathBuf) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_item` [INFO] [stdout] --> src/core/download_handler.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn remove_item(&mut self, id: u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop_all` [INFO] [stdout] --> src/core/download_handler.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn stop_all(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `load_index` [INFO] [stdout] --> src/core/fsio.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn load_index(file: PathBuf) -> HashMap<(String, String), Item> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `load_favorites` [INFO] [stdout] --> src/core/fsio.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn load_favorites(file: PathBuf) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_shelf` [INFO] [stdout] --> src/core/fsio.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Module` [INFO] [stdout] --> src/core/module_handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Module { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/module_handler.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(mod_file: PathBuf) -> Module { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_url_valid` [INFO] [stdout] --> src/core/module_handler.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_url_valid(url: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_code` [INFO] [stdout] --> src/core/module_handler.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn derive_code(url: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_url` [INFO] [stdout] --> src/core/module_handler.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn derive_url(code: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_metadata` [INFO] [stdout] --> src/core/module_handler.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_metadata(code: String) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pages` [INFO] [stdout] --> src/core/module_handler.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_pages(code: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ModuleHandler` [INFO] [stdout] --> src/core/module_handler.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct ModuleHandler { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/module_handler.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(modules_dir: PathBuf) -> ModuleHandler { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_module` [INFO] [stdout] --> src/core/module_handler.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn derive_module(&self, url: &String) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_code` [INFO] [stdout] --> src/core/module_handler.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_url` [INFO] [stdout] --> src/core/module_handler.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/shelf.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/shelf.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new(index: HashMap<(String, String), Item>, favorites: Vec<(String, String)>) -> Shelf { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_item` [INFO] [stdout] --> src/core/shelf.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `download_item` [INFO] [stdout] --> src/core/shelf.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `search_item` [INFO] [stdout] --> src/core/shelf.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn search_item(&self, title_regex: String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pull_item` [INFO] [stdout] --> src/core/shelf.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn pull_item(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_item` [INFO] [stdout] --> src/core/shelf.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `edit_item` [INFO] [stdout] --> src/core/shelf.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `list_modules` [INFO] [stdout] --> src/client.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/core/download_handler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | id: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/core/download_handler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | id: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pages` [INFO] [stdout] --> src/core/download_handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pages: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pages` [INFO] [stdout] --> src/core/download_handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pages: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `dest_dir` [INFO] [stdout] --> src/core/download_handler.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | dest_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/download_handler.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(id: u64, pages: Vec, dest_dir: PathBuf) -> DlItem { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `dest_dir` [INFO] [stdout] --> src/core/download_handler.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | dest_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `count` [INFO] [stdout] --> src/core/download_handler.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | count: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/download_handler.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(id: u64, pages: Vec, dest_dir: PathBuf) -> DlItem { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `queue` [INFO] [stdout] --> src/core/download_handler.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | queue: LinkedList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `count` [INFO] [stdout] --> src/core/download_handler.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | count: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `queue_item` [INFO] [stdout] --> src/core/download_handler.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn queue_item(&mut self, pages: Vec, dest_dir: PathBuf) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DlItem` [INFO] [stdout] --> src/core/download_handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct DlItem { [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: `new` [INFO] [stdout] --> src/core/download_handler.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(id: u64, pages: Vec, dest_dir: PathBuf) -> DlItem { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_item` [INFO] [stdout] --> src/core/download_handler.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn remove_item(&mut self, id: u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DownloadHandler` [INFO] [stdout] --> src/core/download_handler.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DownloadHandler { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `queue` [INFO] [stdout] --> src/core/download_handler.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | queue: LinkedList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/download_handler.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new() -> DownloadHandler { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `queue_item` [INFO] [stdout] --> src/core/download_handler.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn queue_item(&mut self, pages: Vec, dest_dir: PathBuf) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `queue_item` [INFO] [stdout] --> src/core/download_handler.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn queue_item(&mut self, pages: Vec, dest_dir: PathBuf) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_item` [INFO] [stdout] --> src/core/download_handler.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn remove_item(&mut self, id: u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop_all` [INFO] [stdout] --> src/core/download_handler.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn stop_all(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop_all` [INFO] [stdout] --> src/core/download_handler.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn stop_all(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `load_index` [INFO] [stdout] --> src/core/fsio.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn load_index(file: PathBuf) -> HashMap<(String, String), Item> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_item` [INFO] [stdout] --> src/core/download_handler.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn remove_item(&mut self, id: u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `load_favorites` [INFO] [stdout] --> src/core/fsio.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn load_favorites(file: PathBuf) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop_all` [INFO] [stdout] --> src/core/download_handler.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn stop_all(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_shelf` [INFO] [stdout] --> src/core/fsio.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mod_file` [INFO] [stdout] --> src/core/module_handler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod_file: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_shelf` [INFO] [stdout] --> src/core/fsio.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/module_handler.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(mod_file: PathBuf) -> Module { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mod_file` [INFO] [stdout] --> src/core/module_handler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod_file: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_url_valid` [INFO] [stdout] --> src/core/module_handler.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_url_valid(url: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/module_handler.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(mod_file: PathBuf) -> Module { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_code` [INFO] [stdout] --> src/core/module_handler.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn derive_code(url: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_url_valid` [INFO] [stdout] --> src/core/module_handler.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_url_valid(url: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_url` [INFO] [stdout] --> src/core/module_handler.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn derive_url(code: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_code` [INFO] [stdout] --> src/core/module_handler.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn derive_code(url: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_metadata` [INFO] [stdout] --> src/core/module_handler.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_metadata(code: String) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_url` [INFO] [stdout] --> src/core/module_handler.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn derive_url(code: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pages` [INFO] [stdout] --> src/core/module_handler.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_pages(code: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_metadata` [INFO] [stdout] --> src/core/module_handler.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_metadata(code: String) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `modules` [INFO] [stdout] --> src/core/module_handler.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | modules: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pages` [INFO] [stdout] --> src/core/module_handler.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_pages(code: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_module` [INFO] [stdout] --> src/core/module_handler.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn derive_module(&self, url: &String) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `modules` [INFO] [stdout] --> src/core/module_handler.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | modules: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_code` [INFO] [stdout] --> src/core/module_handler.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_module` [INFO] [stdout] --> src/core/module_handler.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn derive_module(&self, url: &String) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_shelf` [INFO] [stdout] --> src/core/fsio.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_shelf(shelf: Shelf, index: PathBuf, favorites: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Module` [INFO] [stdout] --> src/core/module_handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Module { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/module_handler.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(mod_file: PathBuf) -> Module { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_url_valid` [INFO] [stdout] --> src/core/module_handler.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_url_valid(url: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_code` [INFO] [stdout] --> src/core/module_handler.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn derive_code(url: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_url` [INFO] [stdout] --> src/core/module_handler.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn derive_url(code: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_metadata` [INFO] [stdout] --> src/core/module_handler.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_metadata(code: String) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pages` [INFO] [stdout] --> src/core/module_handler.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_pages(code: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ModuleHandler` [INFO] [stdout] --> src/core/module_handler.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct ModuleHandler { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/module_handler.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(modules_dir: PathBuf) -> ModuleHandler { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_module` [INFO] [stdout] --> src/core/module_handler.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn derive_module(&self, url: &String) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_code` [INFO] [stdout] --> src/core/module_handler.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_url` [INFO] [stdout] --> src/core/module_handler.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/shelf.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/shelf.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new(index: HashMap<(String, String), Item>, favorites: Vec<(String, String)>) -> Shelf { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_item` [INFO] [stdout] --> src/core/shelf.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `download_item` [INFO] [stdout] --> src/core/shelf.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `search_item` [INFO] [stdout] --> src/core/shelf.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn search_item(&self, title_regex: String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pull_item` [INFO] [stdout] --> src/core/shelf.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn pull_item(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_item` [INFO] [stdout] --> src/core/shelf.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `edit_item` [INFO] [stdout] --> src/core/shelf.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `list_modules` [INFO] [stdout] --> src/client.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_url` [INFO] [stdout] --> src/core/module_handler.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_code` [INFO] [stdout] --> src/core/module_handler.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn derive_code(&self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/shelf.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_item` [INFO] [stdout] --> src/core/shelf.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `derive_url` [INFO] [stdout] --> src/core/module_handler.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn derive_url(&self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `download_item` [INFO] [stdout] --> src/core/shelf.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core/shelf.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `search_item` [INFO] [stdout] --> src/core/shelf.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn search_item(&self, title_regex: String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_item` [INFO] [stdout] --> src/core/shelf.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_item(&mut self, module: &String, url: &String) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pull_item` [INFO] [stdout] --> src/core/shelf.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn pull_item(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `download_item` [INFO] [stdout] --> src/core/shelf.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn download_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_item` [INFO] [stdout] --> src/core/shelf.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `search_item` [INFO] [stdout] --> src/core/shelf.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn search_item(&self, title_regex: String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `edit_item` [INFO] [stdout] --> src/core/shelf.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pull_item` [INFO] [stdout] --> src/core/shelf.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn pull_item(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `list_modules` [INFO] [stdout] --> src/daemon.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_item` [INFO] [stdout] --> src/core/shelf.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn remove_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `edit_item` [INFO] [stdout] --> src/core/shelf.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn edit_item(&mut self, module: &String, code: &String) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `list_modules` [INFO] [stdout] --> src/daemon.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn list_modules(shelf: &Shelf, modules_dir: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 64 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 65 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 65 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 64 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 54.05s [INFO] running `Command { std: "docker" "inspect" "a2e4ad2aeccb2ca054bc7bccedf25c64522b4c2b1a7fb25089ac15505b693a6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2e4ad2aeccb2ca054bc7bccedf25c64522b4c2b1a7fb25089ac15505b693a6a", kill_on_drop: false }` [INFO] [stdout] a2e4ad2aeccb2ca054bc7bccedf25c64522b4c2b1a7fb25089ac15505b693a6a