[INFO] cloning repository https://github.com/qisanyijiu/pipop_core [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qisanyijiu/pipop_core" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqisanyijiu%2Fpipop_core", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqisanyijiu%2Fpipop_core'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4ae10e1d0ffce1c296bf40cf7ee01a961d5c96ab [INFO] checking qisanyijiu/pipop_core/4ae10e1d0ffce1c296bf40cf7ee01a961d5c96ab against 1.94.0 for beta-1.95-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqisanyijiu%2Fpipop_core" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/qisanyijiu/pipop_core [INFO] removed 0 missing tests [INFO] finished tweaking git repo https://github.com/qisanyijiu/pipop_core [INFO] tweaked toml for git repo https://github.com/qisanyijiu/pipop_core written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/qisanyijiu/pipop_core on toolchain 1.94.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.94.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/qisanyijiu/pipop_core 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" "+1.94.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cbindgen v0.24.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.94.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b4f17c84887f4e97e7be15f9affc6a970e6cdf59809b34e78a9f7a4289c03e2 [INFO] running `Command { std: "docker" "start" "-a" "2b4f17c84887f4e97e7be15f9affc6a970e6cdf59809b34e78a9f7a4289c03e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b4f17c84887f4e97e7be15f9affc6a970e6cdf59809b34e78a9f7a4289c03e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b4f17c84887f4e97e7be15f9affc6a970e6cdf59809b34e78a9f7a4289c03e2", kill_on_drop: false }` [INFO] [stdout] 2b4f17c84887f4e97e7be15f9affc6a970e6cdf59809b34e78a9f7a4289c03e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.94.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62674df0b67dd82608f6c6131a9f9cf1c92d7b6435a26a05a67421908318a17d [INFO] running `Command { std: "docker" "start" "-a" "62674df0b67dd82608f6c6131a9f9cf1c92d7b6435a26a05a67421908318a17d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Compiling cbindgen v0.24.5 [INFO] [stderr] Checking textwrap v0.16.2 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking heck v0.4.1 [INFO] [stderr] Compiling ptpip_core v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rustix v1.1.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking tempfile v3.22.0 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Checking env_logger v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking serde_json v1.0.143 [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ptpip_core` [INFO] [stdout] --> tests/integration.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ptpip_core::commands::{CameraClient, ChunkDownloadConfig, DownloadProgressCallback}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `ptpip_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ptpip_core`, use `cargo add ptpip_core` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ptpip_core` [INFO] [stdout] --> tests/integration.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ptpip_core::error::Result; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `ptpip_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ptpip_core`, use `cargo add ptpip_core` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ptpip_core` [INFO] [stdout] --> tests/integration.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ptpip_core::types::SessionConfig; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `ptpip_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ptpip_core`, use `cargo add ptpip_core` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ptpip_core` [INFO] [stdout] --> tests/integration.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use ptpip_core::discovery::{discover_cameras, DiscoveryConfig}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `ptpip_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ptpip_core`, use `cargo add ptpip_core` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ptpip_core` [INFO] [stdout] --> tests/integration.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use ptpip_core::utils::get_timestamp; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `ptpip_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ptpip_core`, use `cargo add ptpip_core` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SocketAddrV4` [INFO] [stdout] --> src/discovery.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::{UdpSocket, SocketAddr, Ipv4Addr, SocketAddrV4}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/discovery.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PtpIpError` [INFO] [stdout] --> src/discovery.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::error::{PtpIpError, Result}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SessionConfig` [INFO] [stdout] --> src/discovery.rs:9:66 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::types::{DiscoveredCamera, ipv4_to_bytes, CCameraInfo, SessionConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/session.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{info, warn, error}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ObjectInfo`, `PtpIpMessageType`, `PtpIpPacket`, and `opcode_to_enum` [INFO] [stdout] --> src/session.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | SessionConfig, PtpOperationCode, PtpIpPacket, PtpIpMessageType, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | generate_transaction_id, opcode_to_enum, SessionHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 11 | DeviceInfo, StorageInfo, ObjectInfo [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `recv_packet` and `send_packet` [INFO] [stdout] --> src/session.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::transport::{send_packet, recv_packet, parse_device_info, parse_storage_info}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/commands.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReadBytesExt` [INFO] [stdout] --> src/commands.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use byteorder::{BigEndian, ReadBytesExt, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/types.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/transport.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, Read, Write, Cursor}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/transport.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{info, debug, warn, trace}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PtpOperationCode`, `is_response_opcode`, and `opcode_to_enum` [INFO] [stdout] --> src/transport.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | PtpOperationCode, opcode_to_enum, is_response_opcode, SessionConfig [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ptpip_core` (test "integration") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `SocketAddrV4` [INFO] [stdout] --> src/discovery.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::{UdpSocket, SocketAddr, Ipv4Addr, SocketAddrV4}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/discovery.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PtpIpError` [INFO] [stdout] --> src/discovery.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::error::{PtpIpError, Result}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SessionConfig` [INFO] [stdout] --> src/discovery.rs:9:66 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::types::{DiscoveredCamera, ipv4_to_bytes, CCameraInfo, SessionConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/session.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{info, warn, error}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ObjectInfo`, `PtpIpMessageType`, `PtpIpPacket`, and `opcode_to_enum` [INFO] [stdout] --> src/session.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | SessionConfig, PtpOperationCode, PtpIpPacket, PtpIpMessageType, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | generate_transaction_id, opcode_to_enum, SessionHandle, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 11 | DeviceInfo, StorageInfo, ObjectInfo [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `recv_packet` and `send_packet` [INFO] [stdout] --> src/session.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::transport::{send_packet, recv_packet, parse_device_info, parse_storage_info}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/commands.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReadBytesExt` [INFO] [stdout] --> src/commands.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use byteorder::{BigEndian, ReadBytesExt, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/types.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::AddrParseError` [INFO] [stdout] --> src/error.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | use std::net::AddrParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/transport.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, Read, Write, Cursor}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/transport.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{info, debug, warn, trace}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PtpOperationCode`, `is_response_opcode`, and `opcode_to_enum` [INFO] [stdout] --> src/transport.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | PtpOperationCode, opcode_to_enum, is_response_opcode, SessionConfig [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PtpOperationCode` [INFO] [stdout] --> src/transport.rs:375:42 [INFO] [stdout] | [INFO] [stdout] 375 | use crate::types::{PtpIpMessageType, PtpOperationCode, SessionConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CStr` [INFO] [stdout] --> src/utils.rs:178:20 [INFO] [stdout] | [INFO] [stdout] 178 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/utils.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/commands.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, Cursor, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/transport.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, Read, Write, Cursor}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut event_stream = stream.try_clone()?; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transaction_id` is never read [INFO] [stdout] --> src/session.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Session { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | transaction_id: u32, // 事务 ID 生成器 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u16_be` is never used [INFO] [stdout] --> src/utils.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn write_u16_be(value: u16) -> [u8; 2] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u32_be` is never used [INFO] [stdout] --> src/utils.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn write_u32_be(value: u32) -> [u8; 4] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u64_be` is never used [INFO] [stdout] --> src/utils.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_u64_be(value: u64) -> [u8; 8] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_timestamp` is never used [INFO] [stdout] --> src/utils.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn get_timestamp() -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checksum` is never used [INFO] [stdout] --> src/utils.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn checksum(data: &[u8]) -> u16 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `c_str_to_rust` is never used [INFO] [stdout] --> src/utils.rs:140:15 [INFO] [stdout] | [INFO] [stdout] 140 | pub unsafe fn c_str_to_rust(c_str: *const c_char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `duration_ms` is never used [INFO] [stdout] --> src/utils.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn duration_ms(start: u64, end: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chunk_vector` is never used [INFO] [stdout] --> src/utils.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn chunk_vector(data: &[T], chunk_size: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/transport.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, Read, Write, Cursor}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/commands.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, Cursor, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut event_stream = stream.try_clone()?; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transaction_id` is never read [INFO] [stdout] --> src/session.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Session { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | transaction_id: u32, // 事务 ID 生成器 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `read_timeout` and `write_timeout` are never read [INFO] [stdout] --> src/commands.rs:941:9 [INFO] [stdout] | [INFO] [stdout] 938 | struct MockStream { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 941 | read_timeout: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 942 | write_timeout: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_read_data` is never used [INFO] [stdout] --> src/commands.rs:959:12 [INFO] [stdout] | [INFO] [stdout] 945 | impl MockStream { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 959 | fn set_read_data(&mut self, data: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `read_timeout`, `write_timeout`, and `nodelay` are never read [INFO] [stdout] --> src/transport.rs:381:9 [INFO] [stdout] | [INFO] [stdout] 378 | struct MockStream { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 381 | read_timeout: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 382 | write_timeout: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 383 | nodelay: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "62674df0b67dd82608f6c6131a9f9cf1c92d7b6435a26a05a67421908318a17d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62674df0b67dd82608f6c6131a9f9cf1c92d7b6435a26a05a67421908318a17d", kill_on_drop: false }` [INFO] [stdout] 62674df0b67dd82608f6c6131a9f9cf1c92d7b6435a26a05a67421908318a17d