[INFO] cloning repository https://github.com/mawalu/learning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mawalu/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmawalu%2Flearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmawalu%2Flearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d255f7af215fc75fe25847731098536b1eb8deb [INFO] checking mawalu/learning-rust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmawalu%2Flearning-rust" "/workspace/builds/worker-34/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-34/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mawalu/learning-rust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mawalu/learning-rust [INFO] finished tweaking git repo https://github.com/mawalu/learning-rust [INFO] tweaked toml for git repo https://github.com/mawalu/learning-rust written to /workspace/builds/worker-34/source/Cargo.toml [INFO] crate git repo https://github.com/mawalu/learning-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_bencode v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0de004e907a2e788f607d06b9e79d19ba67edcfa44d7a24eaf825e7f7b61bb56 [INFO] running `Command { std: "docker" "start" "-a" "0de004e907a2e788f607d06b9e79d19ba67edcfa44d7a24eaf825e7f7b61bb56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0de004e907a2e788f607d06b9e79d19ba67edcfa44d7a24eaf825e7f7b61bb56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0de004e907a2e788f607d06b9e79d19ba67edcfa44d7a24eaf825e7f7b61bb56", kill_on_drop: false }` [INFO] [stdout] 0de004e907a2e788f607d06b9e79d19ba67edcfa44d7a24eaf825e7f7b61bb56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-34/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2d7c94cb26e2a7e27e8487b2f3de07f1c1da3475e06fe306f23c3c2c967758fc [INFO] running `Command { std: "docker" "start" "-a" "2d7c94cb26e2a7e27e8487b2f3de07f1c1da3475e06fe306f23c3c2c967758fc", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling serde v1.0.105 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling serde_derive v1.0.105 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking serde_bytes v0.10.5 [INFO] [stderr] Checking serde_bencode v0.2.1 [INFO] [stderr] Checking bittorent v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/structs/bucket.rs:254:33 [INFO] [stdout] | [INFO] [stdout] 254 | .checked_sub_signed(Duration::minutes(16)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 193 | use chrono::Duration; [INFO] [stdout] | [INFO] [stdout] 193 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 193 | use crate::structs::node::Duration; [INFO] [stdout] | [INFO] [stdout] 193 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/structs/bucket.rs:258:33 [INFO] [stdout] | [INFO] [stdout] 258 | .checked_sub_signed(Duration::minutes(20)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 193 | use chrono::Duration; [INFO] [stdout] | [INFO] [stdout] 193 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 193 | use crate::structs::node::Duration; [INFO] [stdout] | [INFO] [stdout] 193 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashId` [INFO] [stdout] --> src/structs/message.rs:121:36 [INFO] [stdout] | [INFO] [stdout] 121 | assert_eq!(HashId::from_str(id).unwrap(), HashId::new([255; 20])) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 107 | use crate::HashId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashId` [INFO] [stdout] --> src/structs/message.rs:121:67 [INFO] [stdout] | [INFO] [stdout] 121 | assert_eq!(HashId::from_str(id).unwrap(), HashId::new([255; 20])) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 107 | use crate::HashId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashId` [INFO] [stdout] --> src/structs/message.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | assert_eq!(HashId::from_str(id).unwrap(), HashId::new([255; 20])) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 107 | use crate::HashId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashId` [INFO] [stdout] --> src/structs/message.rs:141:67 [INFO] [stdout] | [INFO] [stdout] 141 | assert_eq!(HashId::from_str(id).unwrap(), HashId::new([255; 20])) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 107 | use crate::HashId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashId` [INFO] [stdout] --> src/structs/message.rs:199:23 [INFO] [stdout] | [INFO] [stdout] 199 | let node_id = HashId::new([17; 20]); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 107 | use crate::HashId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenAuthority` [INFO] [stdout] --> src/structs/token.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | let mut signer = TokenAuthority::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 61 | use crate::structs::token::TokenAuthority; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Endpoint` [INFO] [stdout] --> src/structs/token.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | let data1 = Endpoint::new("127.0.0.1", 4444).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 61 | use crate::Endpoint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Endpoint` [INFO] [stdout] --> src/structs/token.rs:66:15 [INFO] [stdout] | [INFO] [stdout] 66 | let data2 = Endpoint::new("127.0.0.2", 5555).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 61 | use crate::Endpoint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/structs/message.rs (1 fix) [INFO] [stderr] Fixed src/structs/token.rs (1 fix) [INFO] [stderr] Fixed src/handler.rs (4 fixes) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stderr] Fixed src/structs/bucket.rs (3 fixes) [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bittorent` due to 11 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/handler.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(node: Node) -> DhtHandler { [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: `handle_str` [INFO] [stdout] --> src/handler.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn handle_str(&mut self, input: String) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `handel_message` [INFO] [stdout] --> src/handler.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn handel_message(&mut self, message: Message, endpoint: Endpoint) -> Result, InvalidHashIdError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `response` [INFO] [stdout] --> src/handler.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | fn response (&self, id: &String, response: Response) -> Result, InvalidHashIdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `protocol_error` [INFO] [stdout] --> src/handler.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | fn protocol_error (&self, id: &String) -> Result, InvalidHashIdError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `setup` [INFO] [stdout] --> src/handler.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | fn setup () -> DhtHandler { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs/bucket.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new() -> Kbuckets { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_closest_nodes` [INFO] [stdout] --> src/structs/bucket.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find_closest_nodes(&self, id: &HashId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_insert` [INFO] [stdout] --> src/structs/bucket.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn try_insert(&mut self, _our_id: &HashId, _new_node: Node) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_extend` [INFO] [stdout] --> src/structs/bucket.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn try_extend(&self, merged: &mut Vec, start: usize, offset: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_index` [INFO] [stdout] --> src/structs/bucket.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn find_index(&self, id: &HashId) -> Option<(usize, &Bucket)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find` [INFO] [stdout] --> src/structs/bucket.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn find(&self, id: &HashId) -> Option<&Bucket> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_index_mut` [INFO] [stdout] --> src/structs/bucket.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn find_index_mut(&mut self, id: HashId) -> Option<(usize, &mut Bucket)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_mut` [INFO] [stdout] --> src/structs/bucket.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn find_mut(&mut self, id: HashId) -> Option<&mut Bucket> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_timestamps` [INFO] [stdout] --> src/structs/bucket.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn update_timestamps(&mut self, id: &HashId) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `split` [INFO] [stdout] --> src/structs/bucket.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn split(&mut self, id: HashId) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `SIZE` [INFO] [stdout] --> src/structs/bucket.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | const SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs/bucket.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn new(upper_boundary: HashId) -> Bucket { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/structs/bucket.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn insert(&mut self, node: Node) -> Result<(), BucketError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_mut` [INFO] [stdout] --> src/structs/bucket.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn find_mut(&mut self, id: &HashId) -> Option<&mut Node> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_timestamps` [INFO] [stdout] --> src/structs/bucket.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn update_timestamps(&mut self, id: &HashId) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `questionables` [INFO] [stdout] --> src/structs/bucket.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn questionables(&self) -> Vec<&Node> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs/error.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new(message: String) -> BucketError { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs/message.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(code: u8, message: String) -> ErrorResponse { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_str` [INFO] [stdout] --> src/structs/message.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn from_str(input: String) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/structs/message.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn to_str(&self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/structs/node.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn to_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `questionable` [INFO] [stdout] --> src/structs/node.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn questionable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_compact` [INFO] [stdout] --> src/structs/node.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn to_compact(&self) -> [u8; 6] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/structs/node.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_str` [INFO] [stdout] --> src/structs/util.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn from_str(input: String) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/structs/util.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn to_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs/token.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> TokenAuthority { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate` [INFO] [stdout] --> src/structs/token.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn rotate(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sign` [INFO] [stdout] --> src/structs/token.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn sign(&self, data: &Endpoint) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `verify` [INFO] [stdout] --> src/structs/token.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn verify(&self, token: &String, data: &Endpoint) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `random_secret` [INFO] [stdout] --> src/structs/token.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | fn random_secret() -> Secret { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sign_with` [INFO] [stdout] --> src/structs/token.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | fn sign_with(data: &Endpoint, secret: &Secret) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "2d7c94cb26e2a7e27e8487b2f3de07f1c1da3475e06fe306f23c3c2c967758fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d7c94cb26e2a7e27e8487b2f3de07f1c1da3475e06fe306f23c3c2c967758fc", kill_on_drop: false }` [INFO] [stdout] 2d7c94cb26e2a7e27e8487b2f3de07f1c1da3475e06fe306f23c3c2c967758fc