[INFO] cloning repository https://github.com/fritzlolpro/shorts-cutter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fritzlolpro/shorts-cutter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffritzlolpro%2Fshorts-cutter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffritzlolpro%2Fshorts-cutter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b9045ab22596f3bef3f9fc04b6510d1d104268a4 [INFO] checking fritzlolpro/shorts-cutter against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffritzlolpro%2Fshorts-cutter" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/fritzlolpro/shorts-cutter [INFO] finished tweaking git repo https://github.com/fritzlolpro/shorts-cutter [INFO] tweaked toml for git repo https://github.com/fritzlolpro/shorts-cutter written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/fritzlolpro/shorts-cutter on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/fritzlolpro/shorts-cutter 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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 rustc-demangle v0.1.25 [INFO] [stderr] Downloaded redox_syscall v0.5.15 [INFO] [stderr] Downloaded clap v4.5.41 [INFO] [stderr] Downloaded cc v1.2.30 [INFO] [stderr] Downloaded clap_builder v4.5.41 [INFO] [stderr] Downloaded tokio v1.46.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d8ec1328ce6b407d3befd9ee3ffbbefb88bad5f9a99e88ea4a8f6b388dcdf717 [INFO] running `Command { std: "docker" "start" "-a" "d8ec1328ce6b407d3befd9ee3ffbbefb88bad5f9a99e88ea4a8f6b388dcdf717", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d8ec1328ce6b407d3befd9ee3ffbbefb88bad5f9a99e88ea4a8f6b388dcdf717", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8ec1328ce6b407d3befd9ee3ffbbefb88bad5f9a99e88ea4a8f6b388dcdf717", kill_on_drop: false }` [INFO] [stdout] d8ec1328ce6b407d3befd9ee3ffbbefb88bad5f9a99e88ea4a8f6b388dcdf717 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e6a7a256b2b921df79316516d72fc581cc5f6b3953abd4b2b79d186963d398a [INFO] running `Command { std: "docker" "start" "-a" "1e6a7a256b2b921df79316516d72fc581cc5f6b3953abd4b2b79d186963d398a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking clap_builder v4.5.41 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Checking tokio v1.46.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking clap v4.5.41 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking shorts-cutter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/cli.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/utils.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::TempDir` [INFO] [stdout] --> src/worker.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 368 | use tempfile::TempDir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ffmpeg_filter_complex`, `supported_extensions`, `output_suffix`, `ffmpeg_timeout`, `max_threads`, and `log_filename_pattern` are never read [INFO] [stdout] --> src/config.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | /// Фильтр для FFmpeg (захардкожен) [INFO] [stdout] 7 | pub ffmpeg_filter_complex: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub supported_extensions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub output_suffix: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub ffmpeg_timeout: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub max_threads: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub log_filename_pattern: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `validate` are never used [INFO] [stdout] --> src/config.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl AppConfig { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 47 | /// Создает новую конфигурацию с значениями по умолчанию [INFO] [stdout] 48 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn validate(&self) -> crate::error::ConfigResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FFMPEG_BUFFER_SIZE` is never used [INFO] [stdout] --> src/config.rs:114:11 [INFO] [stdout] | [INFO] [stdout] 114 | pub const FFMPEG_BUFFER_SIZE: usize = 8192; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FFMPEG_NOT_FOUND` is never used [INFO] [stdout] --> src/config.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | pub const FFMPEG_NOT_FOUND: &str = [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRACEFUL_SHUTDOWN` is never used [INFO] [stdout] --> src/config.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 142 | pub const GRACEFUL_SHUTDOWN: &str = "Received shutdown signal. Finishing current tasks..."; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InsufficientSpace` is never constructed [INFO] [stdout] --> src/error.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum FileSystemError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 58 | InsufficientSpace, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileSystemError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `StderrParsingFailed` is never constructed [INFO] [stdout] --> src/error.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum FfmpegError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 81 | StderrParsingFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FfmpegError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CannotCreateLogFile`, `CannotWriteToLogFile`, and `InitializationFailed` are never constructed [INFO] [stdout] --> src/error.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub enum LoggingError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 87 | #[error("Cannot create log file: {path}")] [INFO] [stdout] 88 | CannotCreateLogFile { path: PathBuf }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | CannotWriteToLogFile, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | InitializationFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoggingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cannot_create_log` is never used [INFO] [stdout] --> src/error.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl LoggingError { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 159 | pub fn cannot_create_log(path: PathBuf) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `exit_code`, `stdout`, `duration`, and `command` are never read [INFO] [stdout] --> src/ffmpeg.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 146 | pub struct FfmpegExecutionResult { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 147 | pub success: bool, [INFO] [stdout] 148 | pub exit_code: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 149 | pub stdout: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 150 | pub stderr: String, [INFO] [stdout] 151 | pub duration: Duration, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 152 | pub command: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FfmpegExecutionResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `summary` is never used [INFO] [stdout] --> src/ffmpeg.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl FfmpegExecutionResult { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 156 | /// Возвращает краткое описание результата [INFO] [stdout] 157 | pub fn summary(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `estimate_output_size` is never used [INFO] [stdout] --> src/ffmpeg.rs:281:14 [INFO] [stdout] | [INFO] [stdout] 281 | pub async fn estimate_output_size(input_path: &Path) -> FfmpegResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `elapsed` is never used [INFO] [stdout] --> src/logger.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl FileProcessingLogger { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn elapsed(&self) -> Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_shutdown_signal` is never used [INFO] [stdout] --> src/logger.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn log_shutdown_signal() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_disk_space` is never used [INFO] [stdout] --> src/utils.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn check_disk_space(_output_path: &Path, estimated_size: Option) -> FileSystemResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_filename` is never used [INFO] [stdout] --> src/utils.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn sanitize_filename(filename: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_file_size` is never used [INFO] [stdout] --> src/utils.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn get_file_size(path: &Path) -> FileSystemResult { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_file_size` is never used [INFO] [stdout] --> src/utils.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn format_file_size(size: u64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `output_filename` is never used [INFO] [stdout] --> src/utils.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl FileTask { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn output_filename(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ffmpeg_result` is never read [INFO] [stdout] --> src/worker.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 15 | Success { [INFO] [stdout] | ------- field in this variant [INFO] [stdout] ... [INFO] [stdout] 19 | ffmpeg_result: FfmpegExecutionResult, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TaskResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `duration` is never read [INFO] [stdout] --> src/worker.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 21 | Failure { [INFO] [stdout] | ------- field in this variant [INFO] [stdout] ... [INFO] [stdout] 24 | duration: Duration, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TaskResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `input_path`, `duration`, and `is_success` are never used [INFO] [stdout] --> src/worker.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl TaskResult { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 29 | /// Возвращает путь к входному файлу [INFO] [stdout] 30 | pub fn input_path(&self) -> &std::path::PathBuf { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn duration(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_success(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_workers` is never read [INFO] [stdout] --> src/worker.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct WorkerPool { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 53 | semaphore: Arc, [INFO] [stdout] 54 | max_workers: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `available_permits` and `max_workers` are never used [INFO] [stdout] --> src/worker.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl WorkerPool { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn available_permits(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn max_workers(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `total_count`, `success_count`, and `failure_count` are never used [INFO] [stdout] --> src/worker.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 151 | impl ProcessingResults { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn total_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn success_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn failure_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProgressMonitor` is never constructed [INFO] [stdout] --> src/worker.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | pub struct ProgressMonitor { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `increment_completed`, `progress_percentage`, and `estimated_time_remaining` are never used [INFO] [stdout] --> src/worker.rs:322:12 [INFO] [stdout] | [INFO] [stdout] 320 | impl ProgressMonitor { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 321 | /// Создает новый монитор прогресса [INFO] [stdout] 322 | pub fn new(total_tasks: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn increment_completed(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub fn progress_percentage(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn estimated_time_remaining(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ffmpeg_filter_complex`, `supported_extensions`, `output_suffix`, `ffmpeg_timeout`, `max_threads`, and `log_filename_pattern` are never read [INFO] [stdout] --> src/config.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | /// Фильтр для FFmpeg (захардкожен) [INFO] [stdout] 7 | pub ffmpeg_filter_complex: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub supported_extensions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub output_suffix: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub ffmpeg_timeout: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub max_threads: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub log_filename_pattern: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `validate` are never used [INFO] [stdout] --> src/config.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl AppConfig { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 47 | /// Создает новую конфигурацию с значениями по умолчанию [INFO] [stdout] 48 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn validate(&self) -> crate::error::ConfigResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FFMPEG_BUFFER_SIZE` is never used [INFO] [stdout] --> src/config.rs:114:11 [INFO] [stdout] | [INFO] [stdout] 114 | pub const FFMPEG_BUFFER_SIZE: usize = 8192; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FFMPEG_NOT_FOUND` is never used [INFO] [stdout] --> src/config.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | pub const FFMPEG_NOT_FOUND: &str = [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRACEFUL_SHUTDOWN` is never used [INFO] [stdout] --> src/config.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 142 | pub const GRACEFUL_SHUTDOWN: &str = "Received shutdown signal. Finishing current tasks..."; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InsufficientSpace` is never constructed [INFO] [stdout] --> src/error.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum FileSystemError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 58 | InsufficientSpace, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileSystemError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `StderrParsingFailed` is never constructed [INFO] [stdout] --> src/error.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum FfmpegError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 81 | StderrParsingFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FfmpegError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CannotCreateLogFile`, `CannotWriteToLogFile`, and `InitializationFailed` are never constructed [INFO] [stdout] --> src/error.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub enum LoggingError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 87 | #[error("Cannot create log file: {path}")] [INFO] [stdout] 88 | CannotCreateLogFile { path: PathBuf }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | CannotWriteToLogFile, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | InitializationFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoggingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cannot_create_log` is never used [INFO] [stdout] --> src/error.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl LoggingError { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 159 | pub fn cannot_create_log(path: PathBuf) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `exit_code`, `stdout`, `duration`, and `command` are never read [INFO] [stdout] --> src/ffmpeg.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 146 | pub struct FfmpegExecutionResult { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 147 | pub success: bool, [INFO] [stdout] 148 | pub exit_code: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 149 | pub stdout: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 150 | pub stderr: String, [INFO] [stdout] 151 | pub duration: Duration, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 152 | pub command: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FfmpegExecutionResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `summary` is never used [INFO] [stdout] --> src/ffmpeg.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl FfmpegExecutionResult { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 156 | /// Возвращает краткое описание результата [INFO] [stdout] 157 | pub fn summary(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `estimate_output_size` is never used [INFO] [stdout] --> src/ffmpeg.rs:281:14 [INFO] [stdout] | [INFO] [stdout] 281 | pub async fn estimate_output_size(input_path: &Path) -> FfmpegResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `elapsed` is never used [INFO] [stdout] --> src/logger.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl FileProcessingLogger { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn elapsed(&self) -> Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_shutdown_signal` is never used [INFO] [stdout] --> src/logger.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn log_shutdown_signal() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_disk_space` is never used [INFO] [stdout] --> src/utils.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn check_disk_space(_output_path: &Path, estimated_size: Option) -> FileSystemResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_file_size` is never used [INFO] [stdout] --> src/utils.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn get_file_size(path: &Path) -> FileSystemResult { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `output_filename` is never used [INFO] [stdout] --> src/utils.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl FileTask { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn output_filename(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ffmpeg_result` is never read [INFO] [stdout] --> src/worker.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 15 | Success { [INFO] [stdout] | ------- field in this variant [INFO] [stdout] ... [INFO] [stdout] 19 | ffmpeg_result: FfmpegExecutionResult, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TaskResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `start_time` is never read [INFO] [stdout] --> src/worker.rs:317:5 [INFO] [stdout] | [INFO] [stdout] 314 | pub struct ProgressMonitor { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 317 | start_time: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `estimated_time_remaining` is never used [INFO] [stdout] --> src/worker.rs:346:12 [INFO] [stdout] | [INFO] [stdout] 320 | impl ProgressMonitor { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn estimated_time_remaining(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.40s [INFO] running `Command { std: "docker" "inspect" "1e6a7a256b2b921df79316516d72fc581cc5f6b3953abd4b2b79d186963d398a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e6a7a256b2b921df79316516d72fc581cc5f6b3953abd4b2b79d186963d398a", kill_on_drop: false }` [INFO] [stdout] 1e6a7a256b2b921df79316516d72fc581cc5f6b3953abd4b2b79d186963d398a