[INFO] cloning repository https://github.com/pontuslaestadius/ftp-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pontuslaestadius/ftp-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpontuslaestadius%2Fftp-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpontuslaestadius%2Fftp-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 10ae254549c0d4c88f0f4e7c91e132405818891b [INFO] checking pontuslaestadius/ftp-rust against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpontuslaestadius%2Fftp-rust" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pontuslaestadius/ftp-rust on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pontuslaestadius/ftp-rust [INFO] finished tweaking git repo https://github.com/pontuslaestadius/ftp-rust [INFO] tweaked toml for git repo https://github.com/pontuslaestadius/ftp-rust written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/pontuslaestadius/ftp-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8d177783e289857ab3c5154f94a52ac98d93381ed0108dc55612755c75d4dfe0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8d177783e289857ab3c5154f94a52ac98d93381ed0108dc55612755c75d4dfe0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8d177783e289857ab3c5154f94a52ac98d93381ed0108dc55612755c75d4dfe0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d177783e289857ab3c5154f94a52ac98d93381ed0108dc55612755c75d4dfe0", kill_on_drop: false }` [INFO] [stdout] 8d177783e289857ab3c5154f94a52ac98d93381ed0108dc55612755c75d4dfe0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8bf376915a0eaa8a1604a9eabfba9de13a0b1bab27eb3b087a87dca2adf6ec26 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8bf376915a0eaa8a1604a9eabfba9de13a0b1bab27eb3b087a87dca2adf6ec26", kill_on_drop: false }` [INFO] [stderr] Checking ftp-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/ftp/mod.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `OpenOptions` [INFO] [stdout] --> src/ftp/server/mod.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/ftp/server/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/ftp/decode.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> src/ftp/decode.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/ftp/encode.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> src/ftp/encode.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/ftp/mod.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `OpenOptions` [INFO] [stdout] --> src/ftp/server/mod.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/ftp/server/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/ftp/decode.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> src/ftp/decode.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/ftp/encode.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> src/ftp/encode.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/ftp/server/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ftp/mod.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn start_server(address: &str, port: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/ftp/mod.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn start_server(address: &str, port: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/ftp/server/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut string: String = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ftp/server/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut c: usize; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/ftp/server/mod.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | fn notify_client_err(stream: &mut TcpStream, error: io::Error) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ftp/client/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn start(address: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/ftp/client/mod.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | let (mut stream, client) = super::client::new(self.address)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `decoded_size` is assigned to, but never used [INFO] [stdout] --> src/ftp/decode.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut decoded_size: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_decoded_size` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `decoded_pktn` is assigned to, but never used [INFO] [stdout] --> src/ftp/decode.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut decoded_pktn: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_decoded_pktn` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `decoded_size` is never read [INFO] [stdout] --> src/ftp/decode.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | "size" => decoded_size = value, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `decoded_pktn` is never read [INFO] [stdout] --> src/ftp/decode.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | "pktn" => decoded_pktn = value, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/ftp/encode.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let size = content.len(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ftp/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut f = OpenOptions::new() [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/ftp/mod.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut files = "examples/files/foo.txt"; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/ftp/server/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ftp/mod.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn start_server(address: &str, port: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/ftp/mod.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn start_server(address: &str, port: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/ftp/server/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut string: String = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ftp/server/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut c: usize; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/ftp/server/mod.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | fn notify_client_err(stream: &mut TcpStream, error: io::Error) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ftp/client/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn start(address: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/ftp/client/mod.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | let (mut stream, client) = super::client::new(self.address)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `decoded_size` is assigned to, but never used [INFO] [stdout] --> src/ftp/decode.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut decoded_size: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_decoded_size` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `decoded_pktn` is assigned to, but never used [INFO] [stdout] --> src/ftp/decode.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut decoded_pktn: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_decoded_pktn` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `decoded_size` is never read [INFO] [stdout] --> src/ftp/decode.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | "size" => decoded_size = value, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `decoded_pktn` is never read [INFO] [stdout] --> src/ftp/decode.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | "pktn" => decoded_pktn = value, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/ftp/encode.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let size = content.len(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ftp/server/mod.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut stream = stream.unwrap(); [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/ftp/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut f = OpenOptions::new() [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/ftp/server/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut string: String = String::new(); [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/ftp/mod.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut files = "examples/files/foo.txt"; [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/ftp/client/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut stream = super::connect(address)?; [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/ftp/server/mod.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut stream = stream.unwrap(); [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/ftp/server/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut string: String = String::new(); [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/ftp/decode.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut rows = section2.next().unwrap().split(';'); [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/ftp/client/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut stream = super::connect(address)?; [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/ftp/encode.rs:24:53 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn from_meta_data(metadata: metadata::Metadata, mut content: &mut String) -> Result, io::Error> { [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/ftp/decode.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut rows = section2.next().unwrap().split(';'); [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/ftp/encode.rs:24:53 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn from_meta_data(metadata: metadata::Metadata, mut content: &mut String) -> Result, io::Error> { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/ftp/client/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | self.action(input.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/ftp/encode.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/ftp/client/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | self.action(input.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/ftp/encode.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/ftp/mod.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `OpenOptions` [INFO] [stdout] --> src/ftp/server/mod.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/ftp/server/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/ftp/decode.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> src/ftp/decode.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/ftp/encode.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> src/ftp/encode.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/ftp/server/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ftp/mod.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn start_server(address: &str, port: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/ftp/mod.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn start_server(address: &str, port: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/ftp/server/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut string: String = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ftp/server/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut c: usize; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/ftp/server/mod.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | fn notify_client_err(stream: &mut TcpStream, error: io::Error) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ftp/client/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn start(address: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/ftp/client/mod.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | let (mut stream, client) = super::client::new(self.address)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `decoded_size` is assigned to, but never used [INFO] [stdout] --> src/ftp/decode.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut decoded_size: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_decoded_size` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `decoded_pktn` is assigned to, but never used [INFO] [stdout] --> src/ftp/decode.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut decoded_pktn: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_decoded_pktn` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `decoded_size` is never read [INFO] [stdout] --> src/ftp/decode.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | "size" => decoded_size = value, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `decoded_pktn` is never read [INFO] [stdout] --> src/ftp/decode.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | "pktn" => decoded_pktn = value, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/ftp/encode.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let size = content.len(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ftp/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut f = OpenOptions::new() [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: unused import: `File` [INFO] [stdout] --> src/ftp/mod.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `OpenOptions` [INFO] [stdout] --> src/ftp/server/mod.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/ftp/server/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/ftp/decode.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> src/ftp/decode.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/ftp/encode.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> src/ftp/encode.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ftp/mod.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut files = "examples/files/foo.txt"; [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/ftp/server/mod.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut stream = stream.unwrap(); [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/ftp/server/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut string: String = String::new(); [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/ftp/client/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut stream = super::connect(address)?; [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/ftp/decode.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut rows = section2.next().unwrap().split(';'); [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/ftp/encode.rs:24:53 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn from_meta_data(metadata: metadata::Metadata, mut content: &mut String) -> Result, io::Error> { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/ftp/client/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | self.action(input.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/ftp/encode.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/ftp/server/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ftp/mod.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn start_server(address: &str, port: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/ftp/mod.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn start_server(address: &str, port: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/ftp/server/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut string: String = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ftp/server/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut c: usize; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/ftp/server/mod.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | fn notify_client_err(stream: &mut TcpStream, error: io::Error) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ftp/client/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn start(address: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/ftp/client/mod.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | let (mut stream, client) = super::client::new(self.address)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `decoded_size` is assigned to, but never used [INFO] [stdout] --> src/ftp/decode.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut decoded_size: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_decoded_size` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `decoded_pktn` is assigned to, but never used [INFO] [stdout] --> src/ftp/decode.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut decoded_pktn: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_decoded_pktn` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `decoded_size` is never read [INFO] [stdout] --> src/ftp/decode.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | "size" => decoded_size = value, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `decoded_pktn` is never read [INFO] [stdout] --> src/ftp/decode.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | "pktn" => decoded_pktn = value, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/ftp/encode.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let size = content.len(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ftp/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut f = OpenOptions::new() [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/ftp/mod.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut files = "examples/files/foo.txt"; [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/ftp/server/mod.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut stream = stream.unwrap(); [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/ftp/server/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut string: String = String::new(); [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/ftp/client/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut stream = super::connect(address)?; [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/ftp/decode.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut rows = section2.next().unwrap().split(';'); [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/ftp/encode.rs:24:53 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn from_meta_data(metadata: metadata::Metadata, mut content: &mut String) -> Result, io::Error> { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/ftp/client/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | self.action(input.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/ftp/encode.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.00s [INFO] running `Command { std: "docker" "inspect" "8bf376915a0eaa8a1604a9eabfba9de13a0b1bab27eb3b087a87dca2adf6ec26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bf376915a0eaa8a1604a9eabfba9de13a0b1bab27eb3b087a87dca2adf6ec26", kill_on_drop: false }` [INFO] [stdout] 8bf376915a0eaa8a1604a9eabfba9de13a0b1bab27eb3b087a87dca2adf6ec26