[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#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwistrandj%2Frust-zk" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[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-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/wistrandj/rust-zk on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/wistrandj/rust-zk already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2dfce2c1a3defb9323c3e32618b9e36a84ecd8b1dabed1edb89f4ee199af25a6
[INFO] running `Command { std: "docker" "start" "-a" "2dfce2c1a3defb9323c3e32618b9e36a84ecd8b1dabed1edb89f4ee199af25a6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2dfce2c1a3defb9323c3e32618b9e36a84ecd8b1dabed1edb89f4ee199af25a6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2dfce2c1a3defb9323c3e32618b9e36a84ecd8b1dabed1edb89f4ee199af25a6", kill_on_drop: false }`
[INFO] [stdout] 2dfce2c1a3defb9323c3e32618b9e36a84ecd8b1dabed1edb89f4ee199af25a6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 41a835a1ccec1a2d1e8e170e13dc4a00ee50818f9b8165aa4ee0041350d3093c
[INFO] running `Command { std: "docker" "start" "-a" "41a835a1ccec1a2d1e8e170e13dc4a00ee50818f9b8165aa4ee0041350d3093c", kill_on_drop: false }`
[INFO] [stderr] Compiling autocfg v1.0.1
[INFO] [stderr] Compiling version_check v0.9.2
[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] Compiling bitflags v1.2.1
[INFO] [stderr] Compiling memchr v2.3.4
[INFO] [stderr] Checking hashbrown v0.9.1
[INFO] [stderr] Checking smallvec v1.4.2
[INFO] [stderr] Compiling num-traits v0.2.14
[INFO] [stderr] Compiling libsqlite3-sys v0.20.1
[INFO] [stderr] Compiling generic-array v0.14.4
[INFO] [stderr] Compiling num-integer v0.1.44
[INFO] [stderr] Checking fallible-iterator v0.2.0
[INFO] [stderr] Checking cfg-if v1.0.0
[INFO] [stderr] Checking cpuid-bool v0.1.2
[INFO] [stderr] Checking opaque-debug v0.3.0
[INFO] [stderr] Checking fallible-streaming-iterator v0.1.9
[INFO] [stderr] Checking hashlink v0.6.0
[INFO] [stderr] Checking time v0.1.44
[INFO] [stderr] Checking rusqlite v0.24.1
[INFO] [stderr] Checking chrono v0.4.19
[INFO] [stderr] Checking digest v0.9.0
[INFO] [stderr] Checking block-buffer v0.9.0
[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: unnecessary parentheses around match arm expression
[INFO] [stdout] --> src/feature.rs:24:23
[INFO] [stdout] |
[INFO] [stdout] 24 | Ok(number) => (number == 1),
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 24 - Ok(number) => (number == 1),
[INFO] [stdout] 24 + Ok(number) => number == 1,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout] --> src/feature.rs:41:23
[INFO] [stdout] |
[INFO] [stdout] 41 | Ok(number) => (number == 1),
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 41 - Ok(number) => (number == 1),
[INFO] [stdout] 41 + Ok(number) => number == 1,
[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: unnecessary parentheses around match arm expression
[INFO] [stdout] --> src/feature.rs:24:23
[INFO] [stdout] |
[INFO] [stdout] 24 | Ok(number) => (number == 1),
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 24 - Ok(number) => (number == 1),
[INFO] [stdout] 24 + Ok(number) => number == 1,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout] --> src/feature.rs:41:23
[INFO] [stdout] |
[INFO] [stdout] 41 | Ok(number) => (number == 1),
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 41 - Ok(number) => (number == 1),
[INFO] [stdout] 41 + Ok(number) => number == 1,
[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: 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: `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: 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: 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: 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: `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: `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: `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: `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: function `all_timeline_cards` is never used
[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 `all_open_cards` is never used
[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 `timestamp_of_file` is never used
[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 `modified_open_cards` is never used
[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 `CreateTagHistoryBatch` is never constructed
[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: struct `DropLatestTagHistoryBatch` is never constructed
[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 items `new` and `call_once` are never used
[INFO] [stdout] --> src/control/tag.rs:147:12
[INFO] [stdout] |
[INFO] [stdout] 146 | impl<'a> CreateTagHistoryBatch<'a> {
[INFO] [stdout] | ---------------------------------- associated items in this implementation
[INFO] [stdout] 147 | pub fn new(connection: &'a Connection) -> Result, &'static str> {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 157 | pub fn call_once(&self) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `new` and `call_once` are never used
[INFO] [stdout] --> src/control/tag.rs:163:12
[INFO] [stdout] |
[INFO] [stdout] 162 | impl<'a> DropLatestTagHistoryBatch<'a> {
[INFO] [stdout] | -------------------------------------- associated items in this implementation
[INFO] [stdout] 163 | pub fn new(connection: &'a Connection) -> Result, &'static str> {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 172 | pub fn call_once(self) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `load` is never used
[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 `cards` is never used
[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 `next_major_card` is never used
[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: function `list_cards` is never used
[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: methods `latest_batch_id_or_zero`, `insert_tag_to_a_batch_history`, `delete_card_tags_in_a_batch`, and `delete_batch_from_history` are never used
[INFO] [stdout] --> src/model/tag.rs:158:12
[INFO] [stdout] |
[INFO] [stdout] 8 | impl<'a> TagFeature<'a> {
[INFO] [stdout] | ----------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 158 | pub fn latest_batch_id_or_zero(&self) -> Result {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[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] 186 | pub fn delete_card_tags_in_a_batch(&self, batch_id: usize) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[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: struct `A` is never constructed
[INFO] [stdout] --> src/zkset.rs:6:8
[INFO] [stdout] |
[INFO] [stdout] 6 | struct A {
[INFO] [stdout] | ^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `is_major` is never used
[INFO] [stdout] --> src/card/face.rs:120:12
[INFO] [stdout] |
[INFO] [stdout] 81 | impl Face {
[INFO] [stdout] | --------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 120 | pub fn is_major(&self) -> bool {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Meta` is never constructed
[INFO] [stdout] --> src/card/meta.rs:5:12
[INFO] [stdout] |
[INFO] [stdout] 5 | pub struct Meta {
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Timestamp` is never constructed
[INFO] [stdout] --> src/card/meta.rs:24:12
[INFO] [stdout] |
[INFO] [stdout] 24 | pub struct Timestamp { }
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `rollback` is never used
[INFO] [stdout] --> src/feature.rs:5:8
[INFO] [stdout] |
[INFO] [stdout] 3 | pub trait Feature {
[INFO] [stdout] | ------- method in this trait
[INFO] [stdout] 4 | fn enable(&self, conn: &mut Connection);
[INFO] [stdout] 5 | fn rollback(&self, conn: &mut Connection);
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `has` is never used
[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 functions `from_text` and `from_str` are never used
[INFO] [stdout] --> src/hash.rs:25:12
[INFO] [stdout] |
[INFO] [stdout] 15 | impl Hash {
[INFO] [stdout] | --------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 25 | pub fn from_text(slice: &str) -> Hash {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 | pub fn from_str(slice: &str) -> Hash {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `hexcharvalue` is never used
[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 `hexslice` is never used
[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 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: `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: `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 `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: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 35 | let _ = zktag::zktag(timeline_file, &args);
[INFO] [stdout] | +++++++
[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] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout] |
[INFO] [stdout] 8 - const Sha256_size: usize = 32;
[INFO] [stdout] 8 + const SHA256_SIZE: usize = 32;
[INFO] [stdout] |
[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] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 41 | let _ = cmd.call_once(());
[INFO] [stdout] | +++++++
[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: function `all_timeline_cards` is never used
[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 `all_open_cards` is never used
[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 `timestamp_of_file` is never used
[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 `modified_open_cards` is never used
[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 `CreateTagHistoryBatch` is never constructed
[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: struct `DropLatestTagHistoryBatch` is never constructed
[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 items `new` and `call_once` are never used
[INFO] [stdout] --> src/control/tag.rs:147:12
[INFO] [stdout] |
[INFO] [stdout] 146 | impl<'a> CreateTagHistoryBatch<'a> {
[INFO] [stdout] | ---------------------------------- associated items in this implementation
[INFO] [stdout] 147 | pub fn new(connection: &'a Connection) -> Result, &'static str> {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 157 | pub fn call_once(&self) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `new` and `call_once` are never used
[INFO] [stdout] --> src/control/tag.rs:163:12
[INFO] [stdout] |
[INFO] [stdout] 162 | impl<'a> DropLatestTagHistoryBatch<'a> {
[INFO] [stdout] | -------------------------------------- associated items in this implementation
[INFO] [stdout] 163 | pub fn new(connection: &'a Connection) -> Result, &'static str> {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 172 | pub fn call_once(self) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `load` is never used
[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 `cards` is never used
[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 `next_major_card` is never used
[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: function `list_cards` is never used
[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: methods `latest_batch_id_or_zero`, `insert_tag_to_a_batch_history`, `delete_card_tags_in_a_batch`, and `delete_batch_from_history` are never used
[INFO] [stdout] --> src/model/tag.rs:158:12
[INFO] [stdout] |
[INFO] [stdout] 8 | impl<'a> TagFeature<'a> {
[INFO] [stdout] | ----------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 158 | pub fn latest_batch_id_or_zero(&self) -> Result {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[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] 186 | pub fn delete_card_tags_in_a_batch(&self, batch_id: usize) -> Result<(), &'static str> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[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: struct `A` is never constructed
[INFO] [stdout] --> src/zkset.rs:6:8
[INFO] [stdout] |
[INFO] [stdout] 6 | struct A {
[INFO] [stdout] | ^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `is_major` is never used
[INFO] [stdout] --> src/card/face.rs:120:12
[INFO] [stdout] |
[INFO] [stdout] 81 | impl Face {
[INFO] [stdout] | --------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 120 | pub fn is_major(&self) -> bool {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Meta` is never constructed
[INFO] [stdout] --> src/card/meta.rs:5:12
[INFO] [stdout] |
[INFO] [stdout] 5 | pub struct Meta {
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Timestamp` is never constructed
[INFO] [stdout] --> src/card/meta.rs:24:12
[INFO] [stdout] |
[INFO] [stdout] 24 | pub struct Timestamp { }
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `rollback` is never used
[INFO] [stdout] --> src/feature.rs:5:8
[INFO] [stdout] |
[INFO] [stdout] 3 | pub trait Feature {
[INFO] [stdout] | ------- method in this trait
[INFO] [stdout] 4 | fn enable(&self, conn: &mut Connection);
[INFO] [stdout] 5 | fn rollback(&self, conn: &mut Connection);
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `has` is never used
[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 functions `from_text` and `from_str` are never used
[INFO] [stdout] --> src/hash.rs:25:12
[INFO] [stdout] |
[INFO] [stdout] 15 | impl Hash {
[INFO] [stdout] | --------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 25 | pub fn from_text(slice: &str) -> Hash {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 | pub fn from_str(slice: &str) -> Hash {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `hexcharvalue` is never used
[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 `hexslice` is never used
[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: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 35 | let _ = zktag::zktag(timeline_file, &args);
[INFO] [stdout] | +++++++
[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] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout] |
[INFO] [stdout] 8 - const Sha256_size: usize = 32;
[INFO] [stdout] 8 + const SHA256_SIZE: usize = 32;
[INFO] [stdout] |
[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] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 41 | let _ = cmd.call_once(());
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.42s
[INFO] running `Command { std: "docker" "inspect" "41a835a1ccec1a2d1e8e170e13dc4a00ee50818f9b8165aa4ee0041350d3093c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "41a835a1ccec1a2d1e8e170e13dc4a00ee50818f9b8165aa4ee0041350d3093c", kill_on_drop: false }`
[INFO] [stdout] 41a835a1ccec1a2d1e8e170e13dc4a00ee50818f9b8165aa4ee0041350d3093c