[INFO] cloning repository https://github.com/wistrandj/rust-zk
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wistrandj/rust-zk" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwistrandj%2Frust-zk", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwistrandj%2Frust-zk'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 594332d3b6c860519676cb3f7a34cf759d99dc88
[INFO] checking wistrandj/rust-zk against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwistrandj%2Frust-zk" "/workspace/builds/worker-9/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/wistrandj/rust-zk on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/wistrandj/rust-zk
[INFO] finished tweaking git repo https://github.com/wistrandj/rust-zk
[INFO] tweaked toml for git repo https://github.com/wistrandj/rust-zk written to /workspace/builds/worker-9/source/Cargo.toml
[INFO] crate git repo https://github.com/wistrandj/rust-zk already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4c153335a8c6521c3c5eb5e6927920931f5563a896504ae8703a9ec8211b3697
[INFO] running `Command { std: "docker" "start" "-a" "4c153335a8c6521c3c5eb5e6927920931f5563a896504ae8703a9ec8211b3697", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4c153335a8c6521c3c5eb5e6927920931f5563a896504ae8703a9ec8211b3697", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4c153335a8c6521c3c5eb5e6927920931f5563a896504ae8703a9ec8211b3697", kill_on_drop: false }`
[INFO] [stdout] 4c153335a8c6521c3c5eb5e6927920931f5563a896504ae8703a9ec8211b3697
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6aa4a28782a9211234e01c6742c8dde046428b39bea3c34a75a6e5600f995998
[INFO] running `Command { std: "docker" "start" "-a" "6aa4a28782a9211234e01c6742c8dde046428b39bea3c34a75a6e5600f995998", kill_on_drop: false }`
[INFO] [stderr] Compiling typenum v1.12.0
[INFO] [stderr] Compiling pkg-config v0.3.19
[INFO] [stderr] Compiling libc v0.2.80
[INFO] [stderr] Checking ahash v0.4.6
[INFO] [stderr] Checking smallvec v1.4.2
[INFO] [stderr] Checking opaque-debug v0.3.0
[INFO] [stderr] Checking cpuid-bool v0.1.2
[INFO] [stderr] Compiling num-traits v0.2.14
[INFO] [stderr] Compiling generic-array v0.14.4
[INFO] [stderr] Checking hashbrown v0.9.1
[INFO] [stderr] Checking hashlink v0.6.0
[INFO] [stderr] Compiling libsqlite3-sys v0.20.1
[INFO] [stderr] Checking num-integer v0.1.44
[INFO] [stderr] Checking rusqlite v0.24.1
[INFO] [stderr] Checking time v0.1.44
[INFO] [stderr] Checking digest v0.9.0
[INFO] [stderr] Checking block-buffer v0.9.0
[INFO] [stderr] Checking chrono v0.4.19
[INFO] [stderr] Checking sha2 v0.9.2
[INFO] [stderr] Checking rust-zk v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `params`
[INFO] [stdout] --> src/control/content.rs:4:28
[INFO] [stdout] |
[INFO] [stdout] 4 | use rusqlite::{Connection, params};
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout] --> src/control/content.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::fs;
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::hash`
[INFO] [stdout] --> src/control/content.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use crate::hash;
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `params`
[INFO] [stdout] --> src/control/tag.rs:1:28
[INFO] [stdout] |
[INFO] [stdout] 1 | use rusqlite::{Connection, params};
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::card::Face`
[INFO] [stdout] --> src/model/blob.rs:2:5
[INFO] [stdout] |
[INFO] [stdout] 2 | use crate::card::Face;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout] --> src/model/schema.rs:3:5
[INFO] [stdout] |
[INFO] [stdout] 3 | use std::collections::HashSet;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `params`
[INFO] [stdout] --> src/control/content.rs:4:28
[INFO] [stdout] |
[INFO] [stdout] 4 | use rusqlite::{Connection, params};
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout] --> src/control/content.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::fs;
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::hash`
[INFO] [stdout] --> src/control/content.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use crate::hash;
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `params`
[INFO] [stdout] --> src/control/tag.rs:1:28
[INFO] [stdout] |
[INFO] [stdout] 1 | use rusqlite::{Connection, params};
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::card::Face`
[INFO] [stdout] --> src/model/blob.rs:2:5
[INFO] [stdout] |
[INFO] [stdout] 2 | use crate::card::Face;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout] --> src/model/schema.rs:3:5
[INFO] [stdout] |
[INFO] [stdout] 3 | use std::collections::HashSet;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `conn`
[INFO] [stdout] --> src/control/content.rs:12:23
[INFO] [stdout] |
[INFO] [stdout] 12 | fn all_timeline_cards(conn: &Connection) -> Vec {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `folder`
[INFO] [stdout] --> src/control/content.rs:16:19
[INFO] [stdout] |
[INFO] [stdout] 16 | fn all_open_cards(folder: &Path) -> Vec {
[INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_folder`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout] --> src/control/content.rs:20:22
[INFO] [stdout] |
[INFO] [stdout] 20 | fn timestamp_of_file(file: &Path) -> Timestamp {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `args`
[INFO] [stdout] --> src/control/tag.rs:102:28
[INFO] [stdout] |
[INFO] [stdout] 102 | pub fn call_once(self, args: ()) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout] --> src/model/carddb.rs:28:16
[INFO] [stdout] |
[INFO] [stdout] 28 | if let Err(msg) = success {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `timeline_file`
[INFO] [stdout] --> src/zkinit.rs:70:15
[INFO] [stdout] |
[INFO] [stdout] 70 | pub fn zkinit(timeline_file: &PathBuf, args: &varg::Args) {
[INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeline_file`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `other`
[INFO] [stdout] --> src/card/meta.rs:26:18
[INFO] [stdout] |
[INFO] [stdout] 26 | fn eq(&self, other: &Timestamp) -> bool {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `other`
[INFO] [stdout] --> src/card/meta.rs:35:27
[INFO] [stdout] |
[INFO] [stdout] 35 | fn partial_cmp(&self, other: &Timestamp) -> Option {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout] --> src/feature.rs:8:23
[INFO] [stdout] |
[INFO] [stdout] 8 | pub fn enable_feature(name: &str, conn: &mut Connection, feature: &dyn Feature) {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout] --> src/feature.rs:12:26
[INFO] [stdout] |
[INFO] [stdout] 12 | pub fn has_feature_table(name: &str, conn: &Connection) -> bool {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout] --> src/feature.rs:29:12
[INFO] [stdout] |
[INFO] [stdout] 29 | pub fn has(name: &str, conn: &Connection) -> bool {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `set`
[INFO] [stdout] --> src/hash.rs:92:9
[INFO] [stdout] |
[INFO] [stdout] 92 | let set = b"0123456789abcdef";
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_set`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `hi`
[INFO] [stdout] --> src/hash.rs:90:17
[INFO] [stdout] |
[INFO] [stdout] 90 | fn hexcharvalue(hi: u8, lo: u8) -> u8 {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_hi`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `lo`
[INFO] [stdout] --> src/hash.rs:90:25
[INFO] [stdout] |
[INFO] [stdout] 90 | fn hexcharvalue(hi: u8, lo: u8) -> u8 {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_lo`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `slice`
[INFO] [stdout] --> src/hash.rs:65:21
[INFO] [stdout] |
[INFO] [stdout] 65 | pub fn from_str(slice: &str) -> Hash {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `timeline`
[INFO] [stdout] --> src/zktag.rs:88:14
[INFO] [stdout] |
[INFO] [stdout] 88 | pub fn zktag(timeline: &PathBuf, args: &Args) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeline`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/varg.rs:112:13
[INFO] [stdout] |
[INFO] [stdout] 112 | let mut a1: Vec = vec![];
[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/varg.rs:113:13
[INFO] [stdout] |
[INFO] [stdout] 113 | let mut a2: Vec = vec!["--timeline"].iter().map(|s| s.to_string()).collect();
[INFO] [stdout] | ----^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/varg.rs:114:13
[INFO] [stdout] |
[INFO] [stdout] 114 | let mut a3: Vec = vec!["./timeline.db"].iter().map(|s| s.to_string()).collect();
[INFO] [stdout] | ----^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/varg.rs:115:13
[INFO] [stdout] |
[INFO] [stdout] 115 | let mut a4: Vec = vec!["first", "--timeline"].iter().map(|s| s.to_string()).collect();
[INFO] [stdout] | ----^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `conn`
[INFO] [stdout] --> src/control/content.rs:12:23
[INFO] [stdout] |
[INFO] [stdout] 12 | fn all_timeline_cards(conn: &Connection) -> Vec {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `folder`
[INFO] [stdout] --> src/control/content.rs:16:19
[INFO] [stdout] |
[INFO] [stdout] 16 | fn all_open_cards(folder: &Path) -> Vec {
[INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_folder`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout] --> src/control/content.rs:20:22
[INFO] [stdout] |
[INFO] [stdout] 20 | fn timestamp_of_file(file: &Path) -> Timestamp {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `args`
[INFO] [stdout] --> src/control/tag.rs:102:28
[INFO] [stdout] |
[INFO] [stdout] 102 | pub fn call_once(self, args: ()) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout] --> src/model/carddb.rs:28:16
[INFO] [stdout] |
[INFO] [stdout] 28 | if let Err(msg) = success {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `timeline_file`
[INFO] [stdout] --> src/zkinit.rs:70:15
[INFO] [stdout] |
[INFO] [stdout] 70 | pub fn zkinit(timeline_file: &PathBuf, args: &varg::Args) {
[INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeline_file`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `other`
[INFO] [stdout] --> src/card/meta.rs:26:18
[INFO] [stdout] |
[INFO] [stdout] 26 | fn eq(&self, other: &Timestamp) -> bool {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `other`
[INFO] [stdout] --> src/card/meta.rs:35:27
[INFO] [stdout] |
[INFO] [stdout] 35 | fn partial_cmp(&self, other: &Timestamp) -> Option {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout] --> src/feature.rs:8:23
[INFO] [stdout] |
[INFO] [stdout] 8 | pub fn enable_feature(name: &str, conn: &mut Connection, feature: &dyn Feature) {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout] --> src/feature.rs:12:26
[INFO] [stdout] |
[INFO] [stdout] 12 | pub fn has_feature_table(name: &str, conn: &Connection) -> bool {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout] --> src/feature.rs:29:12
[INFO] [stdout] |
[INFO] [stdout] 29 | pub fn has(name: &str, conn: &Connection) -> bool {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `set`
[INFO] [stdout] --> src/hash.rs:92:9
[INFO] [stdout] |
[INFO] [stdout] 92 | let set = b"0123456789abcdef";
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_set`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `hi`
[INFO] [stdout] --> src/hash.rs:90:17
[INFO] [stdout] |
[INFO] [stdout] 90 | fn hexcharvalue(hi: u8, lo: u8) -> u8 {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_hi`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `lo`
[INFO] [stdout] --> src/hash.rs:90:25
[INFO] [stdout] |
[INFO] [stdout] 90 | fn hexcharvalue(hi: u8, lo: u8) -> u8 {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_lo`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `slice`
[INFO] [stdout] --> src/hash.rs:65:21
[INFO] [stdout] |
[INFO] [stdout] 65 | pub fn from_str(slice: &str) -> Hash {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `timeline`
[INFO] [stdout] --> src/zktag.rs:88:14
[INFO] [stdout] |
[INFO] [stdout] 88 | pub fn zktag(timeline: &PathBuf, args: &Args) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeline`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/model/tag.rs:19:13
[INFO] [stdout] |
[INFO] [stdout] 19 | let mut stmt = self.connection.prepare(sql);
[INFO] [stdout] | ----^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/model/tag.rs:19:13
[INFO] [stdout] |
[INFO] [stdout] 19 | let mut stmt = self.connection.prepare(sql);
[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: function is never used: `all_timeline_cards`
[INFO] [stdout] --> src/control/content.rs:12:4
[INFO] [stdout] |
[INFO] [stdout] 12 | fn all_timeline_cards(conn: &Connection) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `all_timeline_cards`
[INFO] [stdout] --> src/control/content.rs:12:4
[INFO] [stdout] |
[INFO] [stdout] 12 | fn all_timeline_cards(conn: &Connection) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `all_open_cards`
[INFO] [stdout] --> src/control/content.rs:16:4
[INFO] [stdout] |
[INFO] [stdout] 16 | fn all_open_cards(folder: &Path) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `timestamp_of_file`
[INFO] [stdout] --> src/control/content.rs:20:4
[INFO] [stdout] |
[INFO] [stdout] 20 | fn timestamp_of_file(file: &Path) -> Timestamp {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `all_open_cards`
[INFO] [stdout] --> src/control/content.rs:16:4
[INFO] [stdout] |
[INFO] [stdout] 16 | fn all_open_cards(folder: &Path) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `modified_open_cards`
[INFO] [stdout] --> src/control/content.rs:25:4
[INFO] [stdout] |
[INFO] [stdout] 25 | fn modified_open_cards(folder: &Path, conn: &Connection) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct is never constructed: `CreateTagHistoryBatch`
[INFO] [stdout] --> src/control/tag.rs:29:12
[INFO] [stdout] |
[INFO] [stdout] 29 | pub struct CreateTagHistoryBatch<'a> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `timestamp_of_file`
[INFO] [stdout] --> src/control/content.rs:20:4
[INFO] [stdout] |
[INFO] [stdout] 20 | fn timestamp_of_file(file: &Path) -> Timestamp {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct is never constructed: `DropLatestTagHistoryBatch`
[INFO] [stdout] --> src/control/tag.rs:34:12
[INFO] [stdout] |
[INFO] [stdout] 34 | pub struct DropLatestTagHistoryBatch<'a> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `modified_open_cards`
[INFO] [stdout] --> src/control/content.rs:25:4
[INFO] [stdout] |
[INFO] [stdout] 25 | fn modified_open_cards(folder: &Path, conn: &Connection) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout] --> src/control/tag.rs:147:12
[INFO] [stdout] |
[INFO] [stdout] 147 | pub fn new(connection: &'a Connection) -> Result, &'static str> {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct is never constructed: `CreateTagHistoryBatch`
[INFO] [stdout] --> src/control/tag.rs:29:12
[INFO] [stdout] |
[INFO] [stdout] 29 | pub struct CreateTagHistoryBatch<'a> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `call_once`
[INFO] [stdout] --> src/control/tag.rs:157:12
[INFO] [stdout] |
[INFO] [stdout] 157 | pub fn call_once(&self) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct is never constructed: `DropLatestTagHistoryBatch`
[INFO] [stdout] --> src/control/tag.rs:34:12
[INFO] [stdout] |
[INFO] [stdout] 34 | pub struct DropLatestTagHistoryBatch<'a> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout] --> src/control/tag.rs:163:12
[INFO] [stdout] |
[INFO] [stdout] 163 | pub fn new(connection: &'a Connection) -> Result, &'static str> {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout] --> src/control/tag.rs:147:12
[INFO] [stdout] |
[INFO] [stdout] 147 | pub fn new(connection: &'a Connection) -> Result, &'static str> {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `call_once`
[INFO] [stdout] --> src/control/tag.rs:172:12
[INFO] [stdout] |
[INFO] [stdout] 172 | pub fn call_once(self) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `load`
[INFO] [stdout] --> src/model/blob.rs:40:8
[INFO] [stdout] |
[INFO] [stdout] 40 | pub fn load(conn: &Connection, sha256: hash::Hash) -> Option> {
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `call_once`
[INFO] [stdout] --> src/control/tag.rs:157:12
[INFO] [stdout] |
[INFO] [stdout] 157 | pub fn call_once(&self) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout] --> src/control/tag.rs:163:12
[INFO] [stdout] |
[INFO] [stdout] 163 | pub fn new(connection: &'a Connection) -> Result, &'static str> {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `cards`
[INFO] [stdout] --> src/model/carddb.rs:6:4
[INFO] [stdout] |
[INFO] [stdout] 6 | fn cards(conn: &mut Connection) -> Vec {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `next_major_card`
[INFO] [stdout] --> src/model/cardfolder.rs:62:8
[INFO] [stdout] |
[INFO] [stdout] 62 | pub fn next_major_card(folder: &PathBuf) -> Face {
[INFO] [stdout] | ^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `call_once`
[INFO] [stdout] --> src/control/tag.rs:172:12
[INFO] [stdout] |
[INFO] [stdout] 172 | pub fn call_once(self) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `load`
[INFO] [stdout] --> src/model/blob.rs:40:8
[INFO] [stdout] |
[INFO] [stdout] 40 | pub fn load(conn: &Connection, sha256: hash::Hash) -> Option> {
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `list_cards`
[INFO] [stdout] --> src/model/cardfolder.rs:87:4
[INFO] [stdout] |
[INFO] [stdout] 87 | fn list_cards(path: &Path) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `cards`
[INFO] [stdout] --> src/model/carddb.rs:6:4
[INFO] [stdout] |
[INFO] [stdout] 6 | fn cards(conn: &mut Connection) -> Vec {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `latest_batch_id_or_zero`
[INFO] [stdout] --> src/model/tag.rs:158:12
[INFO] [stdout] |
[INFO] [stdout] 158 | pub fn latest_batch_id_or_zero(&self) -> Result {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `next_major_card`
[INFO] [stdout] --> src/model/cardfolder.rs:62:8
[INFO] [stdout] |
[INFO] [stdout] 62 | pub fn next_major_card(folder: &PathBuf) -> Face {
[INFO] [stdout] | ^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `insert_tag_to_a_batch_history`
[INFO] [stdout] --> src/model/tag.rs:175:12
[INFO] [stdout] |
[INFO] [stdout] 175 | pub fn insert_tag_to_a_batch_history(&self, batch_id: usize, tag_name: &str, major_card_number: usize) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `list_cards`
[INFO] [stdout] --> src/model/cardfolder.rs:87:4
[INFO] [stdout] |
[INFO] [stdout] 87 | fn list_cards(path: &Path) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `delete_card_tags_in_a_batch`
[INFO] [stdout] --> src/model/tag.rs:186:12
[INFO] [stdout] |
[INFO] [stdout] 186 | pub fn delete_card_tags_in_a_batch(&self, batch_id: usize) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `latest_batch_id_or_zero`
[INFO] [stdout] --> src/model/tag.rs:158:12
[INFO] [stdout] |
[INFO] [stdout] 158 | pub fn latest_batch_id_or_zero(&self) -> Result {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `delete_batch_from_history`
[INFO] [stdout] --> src/model/tag.rs:197:12
[INFO] [stdout] |
[INFO] [stdout] 197 | pub fn delete_batch_from_history(&self, batch_id: usize) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `is_major`
[INFO] [stdout] --> src/card/face.rs:120:12
[INFO] [stdout] |
[INFO] [stdout] 120 | pub fn is_major(&self) -> bool {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `insert_tag_to_a_batch_history`
[INFO] [stdout] --> src/model/tag.rs:175:12
[INFO] [stdout] |
[INFO] [stdout] 175 | pub fn insert_tag_to_a_batch_history(&self, batch_id: usize, tag_name: &str, major_card_number: usize) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `delete_card_tags_in_a_batch`
[INFO] [stdout] --> src/model/tag.rs:186:12
[INFO] [stdout] |
[INFO] [stdout] 186 | pub fn delete_card_tags_in_a_batch(&self, batch_id: usize) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `has`
[INFO] [stdout] --> src/feature.rs:29:8
[INFO] [stdout] |
[INFO] [stdout] 29 | pub fn has(name: &str, conn: &Connection) -> bool {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `delete_batch_from_history`
[INFO] [stdout] --> src/model/tag.rs:197:12
[INFO] [stdout] |
[INFO] [stdout] 197 | pub fn delete_batch_from_history(&self, batch_id: usize) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `is_major`
[INFO] [stdout] --> src/card/face.rs:120:12
[INFO] [stdout] |
[INFO] [stdout] 120 | pub fn is_major(&self) -> bool {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `from_text`
[INFO] [stdout] --> src/hash.rs:25:12
[INFO] [stdout] |
[INFO] [stdout] 25 | pub fn from_text(slice: &str) -> Hash {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `from_str`
[INFO] [stdout] --> src/hash.rs:65:12
[INFO] [stdout] |
[INFO] [stdout] 65 | pub fn from_str(slice: &str) -> Hash {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `has`
[INFO] [stdout] --> src/feature.rs:29:8
[INFO] [stdout] |
[INFO] [stdout] 29 | pub fn has(name: &str, conn: &Connection) -> bool {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `hexcharvalue`
[INFO] [stdout] --> src/hash.rs:90:4
[INFO] [stdout] |
[INFO] [stdout] 90 | fn hexcharvalue(hi: u8, lo: u8) -> u8 {
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `hexslice`
[INFO] [stdout] --> src/hash.rs:106:4
[INFO] [stdout] |
[INFO] [stdout] 106 | fn hexslice(slice: &str) -> [u8; Sha256_size] {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `from_text`
[INFO] [stdout] --> src/hash.rs:25:12
[INFO] [stdout] |
[INFO] [stdout] 25 | pub fn from_text(slice: &str) -> Hash {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `from_str`
[INFO] [stdout] --> src/hash.rs:65:12
[INFO] [stdout] |
[INFO] [stdout] 65 | pub fn from_str(slice: &str) -> Hash {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `hexcharvalue`
[INFO] [stdout] --> src/hash.rs:90:4
[INFO] [stdout] |
[INFO] [stdout] 90 | fn hexcharvalue(hi: u8, lo: u8) -> u8 {
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `hexslice`
[INFO] [stdout] --> src/hash.rs:106:4
[INFO] [stdout] |
[INFO] [stdout] 106 | fn hexslice(slice: &str) -> [u8; Sha256_size] {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout] --> src/main.rs:35:21
[INFO] [stdout] |
[INFO] [stdout] 35 | zktag::zktag(timeline_file, &args);
[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: unused `Result` that must be used
[INFO] [stdout] --> src/main.rs:35:21
[INFO] [stdout] |
[INFO] [stdout] 35 | zktag::zktag(timeline_file, &args);
[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: constant `Sha256_size` should have an upper case name
[INFO] [stdout] --> src/hash.rs:8:7
[INFO] [stdout] |
[INFO] [stdout] 8 | const Sha256_size: usize = 32;
[INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `SHA256_SIZE`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: constant `Sha256_size` should have an upper case name
[INFO] [stdout] --> src/hash.rs:8:7
[INFO] [stdout] |
[INFO] [stdout] 8 | const Sha256_size: usize = 32;
[INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `SHA256_SIZE`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout] --> src/zktag.rs:41:9
[INFO] [stdout] |
[INFO] [stdout] 41 | cmd.call_once(());
[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: unused `Result` that must be used
[INFO] [stdout] --> src/zktag.rs:41:9
[INFO] [stdout] |
[INFO] [stdout] 41 | cmd.call_once(());
[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: 50 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 54 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.54s
[INFO] running `Command { std: "docker" "inspect" "6aa4a28782a9211234e01c6742c8dde046428b39bea3c34a75a6e5600f995998", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6aa4a28782a9211234e01c6742c8dde046428b39bea3c34a75a6e5600f995998", kill_on_drop: false }`
[INFO] [stdout] 6aa4a28782a9211234e01c6742c8dde046428b39bea3c34a75a6e5600f995998