[INFO] cloning repository https://github.com/muwuren/cnblog [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/muwuren/cnblog" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuwuren%2Fcnblog", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuwuren%2Fcnblog'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b194ca0a6926f35948ff9f166fa111ccd36158d3 [INFO] testing muwuren/cnblog against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuwuren%2Fcnblog" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/muwuren/cnblog on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/muwuren/cnblog [INFO] finished tweaking git repo https://github.com/muwuren/cnblog [INFO] tweaked toml for git repo https://github.com/muwuren/cnblog written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/muwuren/cnblog already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded iso8601 v0.4.1 [INFO] [stderr] Downloaded xmlrpc v0.15.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dfcda2504467e4015727776ff9231c3b278b44e2e7861f60156287ff91a1626c [INFO] running `Command { std: "docker" "start" "-a" "dfcda2504467e4015727776ff9231c3b278b44e2e7861f60156287ff91a1626c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dfcda2504467e4015727776ff9231c3b278b44e2e7861f60156287ff91a1626c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfcda2504467e4015727776ff9231c3b278b44e2e7861f60156287ff91a1626c", kill_on_drop: false }` [INFO] [stdout] dfcda2504467e4015727776ff9231c3b278b44e2e7861f60156287ff91a1626c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17e29e94b62ad184a90ee4b4e4d84a948ad2df8e2ec869915cc92358703280a9 [INFO] running `Command { std: "docker" "start" "-a" "17e29e94b62ad184a90ee4b4e4d84a948ad2df8e2ec869915cc92358703280a9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling tracing v0.1.30 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling filetime v0.2.15 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling libsqlite3-sys v0.23.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling tokio v1.16.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling iso8601 v0.4.1 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling rusqlite v0.26.3 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.11 [INFO] [stderr] Compiling hyper v0.14.16 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.9 [INFO] [stderr] Compiling xmlrpc v0.15.1 [INFO] [stderr] Compiling cnblog v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/main.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `filetime::FileTime` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use filetime::FileTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/main.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use xmlrpc::{Error, Request}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile` [INFO] [stdout] --> src/meta_weblog/cfg.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | use tempfile::{tempfile, NamedTempFile}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Post` [INFO] [stdout] --> src/main.rs:17:51 [INFO] [stdout] | [INFO] [stdout] 17 | use meta_weblog::weblog::{BlogInfo, CategoryInfo, Post}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | todo!("update local changed blog and upload"); [INFO] [stdout] | --------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 78 | todo!("update categories"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cfg` is never read [INFO] [stdout] --> src/main.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | cfg = overwrite_local_blogs_database(cfg); [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: unused variable: `blogs_path` [INFO] [stdout] --> src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let blogs_path: BTreeMap = blogs_path.into_iter().map(|path|->(String, ()) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blogs_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_path` [INFO] [stdout] --> src/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let root_path = Path::new(root_path); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weblog` [INFO] [stdout] --> src/main.rs:83:41 [INFO] [stdout] | [INFO] [stdout] 83 | fn upload_local_newd_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weblog` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weblog` [INFO] [stdout] --> src/main.rs:161:45 [INFO] [stdout] | [INFO] [stdout] 161 | fn delete_remote_changed_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weblog` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `postid` is never read [INFO] [stdout] --> src/main.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let mut postid = -1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/meta_weblog/cfg.rs:341:13 [INFO] [stdout] | [INFO] [stdout] 341 | let sql = "\ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/meta_weblog/cfg.rs:339:53 [INFO] [stdout] | [INFO] [stdout] 339 | fn query_blogs_info_do(&self, sql_suffix: &str, conn: &Connection) -> BTreeMap { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/meta_weblog/cfg.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let mut weblog = MetaWeblog::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: function is never used: `upload_local_newd_blog` [INFO] [stdout] --> src/main.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn upload_local_newd_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `overwrite_local_blogs_database` [INFO] [stdout] --> src/main.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn overwrite_local_blogs_database(cfg: Config) -> Config { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_blogs_by_blogs_info` [INFO] [stdout] --> src/main.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn save_blogs_by_blogs_info(blogs_info: Vec, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `download_remote_new_blog` [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn download_remote_new_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `delete_blogs_by_blogs_info` [INFO] [stdout] --> src/main.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn delete_blogs_by_blogs_info(blogs_info: Vec, root_path: &str, delete_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `delete_remote_changed_blog` [INFO] [stdout] --> src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn delete_remote_changed_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `update_remote_changed_blog` [INFO] [stdout] --> src/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn update_remote_changed_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_user_cfg` [INFO] [stdout] --> src/main.rs:190:4 [INFO] [stdout] | [INFO] [stdout] 190 | fn init_user_cfg(base_path: &str) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ask_question` [INFO] [stdout] --> src/main.rs:244:4 [INFO] [stdout] | [INFO] [stdout] 244 | fn ask_question() -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `convert2` [INFO] [stdout] --> src/meta_weblog/weblog.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn convert2(&mut self, a: Value) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DELETE_POST` [INFO] [stdout] --> src/meta_weblog/rpc.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const DELETE_POST: &str = "blogger.deletePost"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EDIT_POST` [INFO] [stdout] --> src/meta_weblog/rpc.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const EDIT_POST: &str = "metaWeblog.editPost"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GET_POST` [INFO] [stdout] --> src/meta_weblog/rpc.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const GET_POST: &str = "metaWeblog.getPost"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GET_RECENT_POSTS` [INFO] [stdout] --> src/meta_weblog/rpc.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const GET_RECENT_POSTS: &str = "metaWeblog.getRecentPosts"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GET_USERS_BLOGS` [INFO] [stdout] --> src/meta_weblog/rpc.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const GET_USERS_BLOGS: &str = "blogger.getUsersBlogs"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NEW_POST` [INFO] [stdout] --> src/meta_weblog/rpc.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const NEW_POST: &str = "metaWeblog.newPost"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NEW_CATEGORY` [INFO] [stdout] --> src/meta_weblog/rpc.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const NEW_CATEGORY: &str = "wp.newCategory"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `app_key` [INFO] [stdout] --> src/meta_weblog/rpc.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | app_key: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_post` [INFO] [stdout] --> src/meta_weblog/rpc.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new_post(&self, post: Post, publish: bool) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_category` [INFO] [stdout] --> src/meta_weblog/rpc.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn new_category(&self, category: WpCategory) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_post` [INFO] [stdout] --> src/meta_weblog/rpc.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn get_post(&self, postid: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_recent_posts` [INFO] [stdout] --> src/meta_weblog/rpc.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn get_recent_posts(&self, num: u32) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_users_blogs` [INFO] [stdout] --> src/meta_weblog/rpc.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn get_users_blogs(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `edit_post` [INFO] [stdout] --> src/meta_weblog/rpc.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn edit_post(&self, postid: &str, post: Post, publish: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_post` [INFO] [stdout] --> src/meta_weblog/rpc.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn delete_post(&self, postid: &str, publish: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLOGS_INFO_CFG` [INFO] [stdout] --> src/meta_weblog/cfg.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub const BLOGS_INFO_CFG: &str = "blogs_info.sqlite"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `USER_INFO_CFG` [INFO] [stdout] --> src/meta_weblog/cfg.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub const USER_INFO_CFG: &str = "user_info.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MASTER_BLOGS_CFG` [INFO] [stdout] --> src/meta_weblog/cfg.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const MASTER_BLOGS_CFG: &str = "MASTER_CNBLOG_BLOGS_INFO_CFG"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Config` [INFO] [stdout] --> src/meta_weblog/cfg.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/meta_weblog/cfg.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_account` [INFO] [stdout] --> src/meta_weblog/cfg.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn check_account(username: &str, password: &str) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_get_master_postid` [INFO] [stdout] --> src/meta_weblog/cfg.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn try_get_master_postid(username: &str, password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_blogs_cfg` [INFO] [stdout] --> src/meta_weblog/cfg.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn init_blogs_cfg(blogs_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_database` [INFO] [stdout] --> src/meta_weblog/cfg.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | fn create_database(database_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `upload_new_blogs_cfg` [INFO] [stdout] --> src/meta_weblog/cfg.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn upload_new_blogs_cfg(username: &str, password: &str, blogs_path: &Path) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `download_blogs_info` [INFO] [stdout] --> src/meta_weblog/cfg.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn download_blogs_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `download_blogs_info_to_path` [INFO] [stdout] --> src/meta_weblog/cfg.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | fn download_blogs_info_to_path(&self, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `file2base64` [INFO] [stdout] --> src/meta_weblog/cfg.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | fn file2base64(file_path: &Path) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `base642file` [INFO] [stdout] --> src/meta_weblog/cfg.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | fn base642file(base: &str, file_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_user_info_cfg` [INFO] [stdout] --> src/meta_weblog/cfg.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn write_user_info_cfg(username: &str, password: &str, postid: i32, user_info_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_user_info_cfg` [INFO] [stdout] --> src/meta_weblog/cfg.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn read_user_info_cfg(user_info_path: &Path) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_blogs_info_update` [INFO] [stdout] --> src/meta_weblog/cfg.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 277 | pub fn check_blogs_info_update(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_conn` [INFO] [stdout] --> src/meta_weblog/cfg.rs:307:12 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn init_conn(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_remote_new_blogs_info` [INFO] [stdout] --> src/meta_weblog/cfg.rs:319:12 [INFO] [stdout] | [INFO] [stdout] 319 | pub fn get_remote_new_blogs_info(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `query_blogs_existed_info_do` [INFO] [stdout] --> src/meta_weblog/cfg.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | fn query_blogs_existed_info_do(&self, conn: &Connection) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `query_blogs_not_existed_info_do` [INFO] [stdout] --> src/meta_weblog/cfg.rs:335:8 [INFO] [stdout] | [INFO] [stdout] 335 | fn query_blogs_not_existed_info_do(&self, conn: &Connection) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `query_blogs_info_do` [INFO] [stdout] --> src/meta_weblog/cfg.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn query_blogs_info_do(&self, sql_suffix: &str, conn: &Connection) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_remote_changed_blogs_info` [INFO] [stdout] --> src/meta_weblog/cfg.rs:372:12 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn get_remote_changed_blogs_info(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_remote_deleted_blogs_info` [INFO] [stdout] --> src/meta_weblog/cfg.rs:386:12 [INFO] [stdout] | [INFO] [stdout] 386 | pub fn get_remote_deleted_blogs_info(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `overwrite_local_database` [INFO] [stdout] --> src/meta_weblog/cfg.rs:404:12 [INFO] [stdout] | [INFO] [stdout] 404 | pub fn overwrite_local_database(self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_local_existed_blogs_path` [INFO] [stdout] --> src/meta_weblog/cfg.rs:424:12 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn get_local_existed_blogs_path(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BlogsInfoDO` [INFO] [stdout] --> src/meta_weblog/cfg.rs:435:12 [INFO] [stdout] | [INFO] [stdout] 435 | pub struct BlogsInfoDO { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Utility` [INFO] [stdout] --> src/meta_weblog/cfg.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 443 | pub struct Utility { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_file_timestamp` [INFO] [stdout] --> src/meta_weblog/cfg.rs:449:12 [INFO] [stdout] | [INFO] [stdout] 449 | pub fn get_file_timestamp(file_path: &Path) -> i64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `modify_file_timestamp` [INFO] [stdout] --> src/meta_weblog/cfg.rs:456:12 [INFO] [stdout] | [INFO] [stdout] 456 | pub fn modify_file_timestamp(file_path: &Path, timestamp: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/meta_weblog/cfg.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / conn.execute( [INFO] [stdout] 175 | | "\ [INFO] [stdout] 176 | | insert into BlogsInfo (blog_path, postid, datetime)\ [INFO] [stdout] 177 | | values (?, ?, ?, ?)", [INFO] [stdout] 178 | | params![MASTER_BLOGS_CFG, postid, now, 1], [INFO] [stdout] 179 | | ); [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: 71 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 25.88s [INFO] running `Command { std: "docker" "inspect" "17e29e94b62ad184a90ee4b4e4d84a948ad2df8e2ec869915cc92358703280a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17e29e94b62ad184a90ee4b4e4d84a948ad2df8e2ec869915cc92358703280a9", kill_on_drop: false }` [INFO] [stdout] 17e29e94b62ad184a90ee4b4e4d84a948ad2df8e2ec869915cc92358703280a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 054173524d077aca79a406a82961b04c6d9949490fbe50afa14229aa1f093437 [INFO] running `Command { std: "docker" "start" "-a" "054173524d077aca79a406a82961b04c6d9949490fbe50afa14229aa1f093437", kill_on_drop: false }` [INFO] [stderr] Compiling cnblog v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/main.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `filetime::FileTime` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use filetime::FileTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/main.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use xmlrpc::{Error, Request}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile` [INFO] [stdout] --> src/meta_weblog/cfg.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | use tempfile::{tempfile, NamedTempFile}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Post` [INFO] [stdout] --> src/main.rs:17:51 [INFO] [stdout] | [INFO] [stdout] 17 | use meta_weblog::weblog::{BlogInfo, CategoryInfo, Post}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | todo!("update local changed blog and upload"); [INFO] [stdout] | --------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 78 | todo!("update categories"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cfg` is never read [INFO] [stdout] --> src/main.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | cfg = overwrite_local_blogs_database(cfg); [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: unused variable: `blogs_path` [INFO] [stdout] --> src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let blogs_path: BTreeMap = blogs_path.into_iter().map(|path|->(String, ()) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blogs_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_path` [INFO] [stdout] --> src/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let root_path = Path::new(root_path); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weblog` [INFO] [stdout] --> src/main.rs:83:41 [INFO] [stdout] | [INFO] [stdout] 83 | fn upload_local_newd_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weblog` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weblog` [INFO] [stdout] --> src/main.rs:161:45 [INFO] [stdout] | [INFO] [stdout] 161 | fn delete_remote_changed_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weblog` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `postid` is never read [INFO] [stdout] --> src/main.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let mut postid = -1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sql` [INFO] [stdout] --> src/meta_weblog/cfg.rs:341:13 [INFO] [stdout] | [INFO] [stdout] 341 | let sql = "\ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/meta_weblog/cfg.rs:339:53 [INFO] [stdout] | [INFO] [stdout] 339 | fn query_blogs_info_do(&self, sql_suffix: &str, conn: &Connection) -> BTreeMap { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/meta_weblog/cfg.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let mut weblog = MetaWeblog::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: function is never used: `upload_local_newd_blog` [INFO] [stdout] --> src/main.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn upload_local_newd_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `overwrite_local_blogs_database` [INFO] [stdout] --> src/main.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn overwrite_local_blogs_database(cfg: Config) -> Config { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_blogs_by_blogs_info` [INFO] [stdout] --> src/main.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn save_blogs_by_blogs_info(blogs_info: Vec, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `download_remote_new_blog` [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn download_remote_new_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `delete_blogs_by_blogs_info` [INFO] [stdout] --> src/main.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn delete_blogs_by_blogs_info(blogs_info: Vec, root_path: &str, delete_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `delete_remote_changed_blog` [INFO] [stdout] --> src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn delete_remote_changed_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `update_remote_changed_blog` [INFO] [stdout] --> src/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn update_remote_changed_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_user_cfg` [INFO] [stdout] --> src/main.rs:190:4 [INFO] [stdout] | [INFO] [stdout] 190 | fn init_user_cfg(base_path: &str) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ask_question` [INFO] [stdout] --> src/main.rs:244:4 [INFO] [stdout] | [INFO] [stdout] 244 | fn ask_question() -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `convert2` [INFO] [stdout] --> src/meta_weblog/weblog.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn convert2(&mut self, a: Value) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DELETE_POST` [INFO] [stdout] --> src/meta_weblog/rpc.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const DELETE_POST: &str = "blogger.deletePost"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EDIT_POST` [INFO] [stdout] --> src/meta_weblog/rpc.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const EDIT_POST: &str = "metaWeblog.editPost"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GET_POST` [INFO] [stdout] --> src/meta_weblog/rpc.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const GET_POST: &str = "metaWeblog.getPost"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GET_RECENT_POSTS` [INFO] [stdout] --> src/meta_weblog/rpc.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const GET_RECENT_POSTS: &str = "metaWeblog.getRecentPosts"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GET_USERS_BLOGS` [INFO] [stdout] --> src/meta_weblog/rpc.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const GET_USERS_BLOGS: &str = "blogger.getUsersBlogs"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NEW_POST` [INFO] [stdout] --> src/meta_weblog/rpc.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const NEW_POST: &str = "metaWeblog.newPost"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NEW_CATEGORY` [INFO] [stdout] --> src/meta_weblog/rpc.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const NEW_CATEGORY: &str = "wp.newCategory"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `app_key` [INFO] [stdout] --> src/meta_weblog/rpc.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | app_key: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_post` [INFO] [stdout] --> src/meta_weblog/rpc.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new_post(&self, post: Post, publish: bool) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_category` [INFO] [stdout] --> src/meta_weblog/rpc.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn new_category(&self, category: WpCategory) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_post` [INFO] [stdout] --> src/meta_weblog/rpc.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn get_post(&self, postid: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_recent_posts` [INFO] [stdout] --> src/meta_weblog/rpc.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn get_recent_posts(&self, num: u32) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_users_blogs` [INFO] [stdout] --> src/meta_weblog/rpc.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn get_users_blogs(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `edit_post` [INFO] [stdout] --> src/meta_weblog/rpc.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn edit_post(&self, postid: &str, post: Post, publish: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_post` [INFO] [stdout] --> src/meta_weblog/rpc.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn delete_post(&self, postid: &str, publish: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLOGS_INFO_CFG` [INFO] [stdout] --> src/meta_weblog/cfg.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub const BLOGS_INFO_CFG: &str = "blogs_info.sqlite"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `USER_INFO_CFG` [INFO] [stdout] --> src/meta_weblog/cfg.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub const USER_INFO_CFG: &str = "user_info.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MASTER_BLOGS_CFG` [INFO] [stdout] --> src/meta_weblog/cfg.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const MASTER_BLOGS_CFG: &str = "MASTER_CNBLOG_BLOGS_INFO_CFG"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Config` [INFO] [stdout] --> src/meta_weblog/cfg.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/meta_weblog/cfg.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_account` [INFO] [stdout] --> src/meta_weblog/cfg.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn check_account(username: &str, password: &str) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_get_master_postid` [INFO] [stdout] --> src/meta_weblog/cfg.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn try_get_master_postid(username: &str, password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_blogs_cfg` [INFO] [stdout] --> src/meta_weblog/cfg.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn init_blogs_cfg(blogs_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_database` [INFO] [stdout] --> src/meta_weblog/cfg.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | fn create_database(database_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `upload_new_blogs_cfg` [INFO] [stdout] --> src/meta_weblog/cfg.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn upload_new_blogs_cfg(username: &str, password: &str, blogs_path: &Path) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `download_blogs_info` [INFO] [stdout] --> src/meta_weblog/cfg.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn download_blogs_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `download_blogs_info_to_path` [INFO] [stdout] --> src/meta_weblog/cfg.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | fn download_blogs_info_to_path(&self, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `file2base64` [INFO] [stdout] --> src/meta_weblog/cfg.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | fn file2base64(file_path: &Path) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `base642file` [INFO] [stdout] --> src/meta_weblog/cfg.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | fn base642file(base: &str, file_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_user_info_cfg` [INFO] [stdout] --> src/meta_weblog/cfg.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn write_user_info_cfg(username: &str, password: &str, postid: i32, user_info_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_user_info_cfg` [INFO] [stdout] --> src/meta_weblog/cfg.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn read_user_info_cfg(user_info_path: &Path) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_blogs_info_update` [INFO] [stdout] --> src/meta_weblog/cfg.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 277 | pub fn check_blogs_info_update(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_conn` [INFO] [stdout] --> src/meta_weblog/cfg.rs:307:12 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn init_conn(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_remote_new_blogs_info` [INFO] [stdout] --> src/meta_weblog/cfg.rs:319:12 [INFO] [stdout] | [INFO] [stdout] 319 | pub fn get_remote_new_blogs_info(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `query_blogs_existed_info_do` [INFO] [stdout] --> src/meta_weblog/cfg.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | fn query_blogs_existed_info_do(&self, conn: &Connection) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `query_blogs_not_existed_info_do` [INFO] [stdout] --> src/meta_weblog/cfg.rs:335:8 [INFO] [stdout] | [INFO] [stdout] 335 | fn query_blogs_not_existed_info_do(&self, conn: &Connection) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `query_blogs_info_do` [INFO] [stdout] --> src/meta_weblog/cfg.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | fn query_blogs_info_do(&self, sql_suffix: &str, conn: &Connection) -> BTreeMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_remote_changed_blogs_info` [INFO] [stdout] --> src/meta_weblog/cfg.rs:372:12 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn get_remote_changed_blogs_info(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_remote_deleted_blogs_info` [INFO] [stdout] --> src/meta_weblog/cfg.rs:386:12 [INFO] [stdout] | [INFO] [stdout] 386 | pub fn get_remote_deleted_blogs_info(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `overwrite_local_database` [INFO] [stdout] --> src/meta_weblog/cfg.rs:404:12 [INFO] [stdout] | [INFO] [stdout] 404 | pub fn overwrite_local_database(self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_local_existed_blogs_path` [INFO] [stdout] --> src/meta_weblog/cfg.rs:424:12 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn get_local_existed_blogs_path(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BlogsInfoDO` [INFO] [stdout] --> src/meta_weblog/cfg.rs:435:12 [INFO] [stdout] | [INFO] [stdout] 435 | pub struct BlogsInfoDO { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Utility` [INFO] [stdout] --> src/meta_weblog/cfg.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 443 | pub struct Utility { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_file_timestamp` [INFO] [stdout] --> src/meta_weblog/cfg.rs:449:12 [INFO] [stdout] | [INFO] [stdout] 449 | pub fn get_file_timestamp(file_path: &Path) -> i64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `modify_file_timestamp` [INFO] [stdout] --> src/meta_weblog/cfg.rs:456:12 [INFO] [stdout] | [INFO] [stdout] 456 | pub fn modify_file_timestamp(file_path: &Path, timestamp: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/meta_weblog/cfg.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / conn.execute( [INFO] [stdout] 175 | | "\ [INFO] [stdout] 176 | | insert into BlogsInfo (blog_path, postid, datetime)\ [INFO] [stdout] 177 | | values (?, ?, ?, ?)", [INFO] [stdout] 178 | | params![MASTER_BLOGS_CFG, postid, now, 1], [INFO] [stdout] 179 | | ); [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: 71 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.87s [INFO] running `Command { std: "docker" "inspect" "054173524d077aca79a406a82961b04c6d9949490fbe50afa14229aa1f093437", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "054173524d077aca79a406a82961b04c6d9949490fbe50afa14229aa1f093437", kill_on_drop: false }` [INFO] [stdout] 054173524d077aca79a406a82961b04c6d9949490fbe50afa14229aa1f093437 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b7e97fd6b74c7d7ba6c589458509407806ce8c59c6be49befba76d72e6fdb4a4 [INFO] running `Command { std: "docker" "start" "-a" "b7e97fd6b74c7d7ba6c589458509407806ce8c59c6be49befba76d72e6fdb4a4", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `PathBuf` [INFO] [stderr] --> src/main.rs:8:23 [INFO] [stderr] | [INFO] [stderr] 8 | use std::path::{Path, PathBuf}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `filetime::FileTime` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use filetime::FileTime; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Request` [INFO] [stderr] --> src/main.rs:12:21 [INFO] [stderr] | [INFO] [stderr] 12 | use xmlrpc::{Error, Request}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tempfile` [INFO] [stderr] --> src/meta_weblog/cfg.rs:13:16 [INFO] [stderr] | [INFO] [stderr] 13 | use tempfile::{tempfile, NamedTempFile}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Post` [INFO] [stderr] --> src/main.rs:17:51 [INFO] [stderr] | [INFO] [stderr] 17 | use meta_weblog::weblog::{BlogInfo, CategoryInfo, Post}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/main.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 77 | todo!("update local changed blog and upload"); [INFO] [stderr] | --------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 78 | todo!("update categories"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] = note: this warning originates in the macro `$crate::panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: value assigned to `cfg` is never read [INFO] [stderr] --> src/main.rs:73:9 [INFO] [stderr] | [INFO] [stderr] 73 | cfg = overwrite_local_blogs_database(cfg); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `blogs_path` [INFO] [stderr] --> src/main.rs:86:9 [INFO] [stderr] | [INFO] [stderr] 86 | let blogs_path: BTreeMap = blogs_path.into_iter().map(|path|->(String, ()) { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blogs_path` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `root_path` [INFO] [stderr] --> src/main.rs:91:9 [INFO] [stderr] | [INFO] [stderr] 91 | let root_path = Path::new(root_path); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `weblog` [INFO] [stderr] --> src/main.rs:83:41 [INFO] [stderr] | [INFO] [stderr] 83 | fn upload_local_newd_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weblog` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `weblog` [INFO] [stderr] --> src/main.rs:161:45 [INFO] [stderr] | [INFO] [stderr] 161 | fn delete_remote_changed_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weblog` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `postid` is never read [INFO] [stderr] --> src/main.rs:218:13 [INFO] [stderr] | [INFO] [stderr] 218 | let mut postid = -1; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sql` [INFO] [stderr] --> src/meta_weblog/cfg.rs:341:13 [INFO] [stderr] | [INFO] [stderr] 341 | let sql = "\ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_sql` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `conn` [INFO] [stderr] --> src/meta_weblog/cfg.rs:339:53 [INFO] [stderr] | [INFO] [stderr] 339 | fn query_blogs_info_do(&self, sql_suffix: &str, conn: &Connection) -> BTreeMap { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/meta_weblog/cfg.rs:77:13 [INFO] [stderr] | [INFO] [stderr] 77 | let mut weblog = MetaWeblog::new( [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `upload_local_newd_blog` [INFO] [stderr] --> src/main.rs:83:4 [INFO] [stderr] | [INFO] [stderr] 83 | fn upload_local_newd_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `overwrite_local_blogs_database` [INFO] [stderr] --> src/main.rs:96:4 [INFO] [stderr] | [INFO] [stderr] 96 | fn overwrite_local_blogs_database(cfg: Config) -> Config { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `save_blogs_by_blogs_info` [INFO] [stderr] --> src/main.rs:102:4 [INFO] [stderr] | [INFO] [stderr] 102 | fn save_blogs_by_blogs_info(blogs_info: Vec, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `download_remote_new_blog` [INFO] [stderr] --> src/main.rs:123:4 [INFO] [stderr] | [INFO] [stderr] 123 | fn download_remote_new_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `delete_blogs_by_blogs_info` [INFO] [stderr] --> src/main.rs:136:4 [INFO] [stderr] | [INFO] [stderr] 136 | fn delete_blogs_by_blogs_info(blogs_info: Vec, root_path: &str, delete_path: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `delete_remote_changed_blog` [INFO] [stderr] --> src/main.rs:161:4 [INFO] [stderr] | [INFO] [stderr] 161 | fn delete_remote_changed_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `update_remote_changed_blog` [INFO] [stderr] --> src/main.rs:176:4 [INFO] [stderr] | [INFO] [stderr] 176 | fn update_remote_changed_blog(cfg: &Config, weblog: &mut MetaWeblog, root_path: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `init_user_cfg` [INFO] [stderr] --> src/main.rs:190:4 [INFO] [stderr] | [INFO] [stderr] 190 | fn init_user_cfg(base_path: &str) -> Result<(), Error> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `ask_question` [INFO] [stderr] --> src/main.rs:244:4 [INFO] [stderr] | [INFO] [stderr] 244 | fn ask_question() -> (String, String) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `convert2` [INFO] [stderr] --> src/meta_weblog/weblog.rs:27:8 [INFO] [stderr] | [INFO] [stderr] 27 | fn convert2(&mut self, a: Value) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `DELETE_POST` [INFO] [stderr] --> src/meta_weblog/rpc.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | const DELETE_POST: &str = "blogger.deletePost"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `EDIT_POST` [INFO] [stderr] --> src/meta_weblog/rpc.rs:9:1 [INFO] [stderr] | [INFO] [stderr] 9 | const EDIT_POST: &str = "metaWeblog.editPost"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `GET_POST` [INFO] [stderr] --> src/meta_weblog/rpc.rs:11:1 [INFO] [stderr] | [INFO] [stderr] 11 | const GET_POST: &str = "metaWeblog.getPost"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `GET_RECENT_POSTS` [INFO] [stderr] --> src/meta_weblog/rpc.rs:12:1 [INFO] [stderr] | [INFO] [stderr] 12 | const GET_RECENT_POSTS: &str = "metaWeblog.getRecentPosts"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `GET_USERS_BLOGS` [INFO] [stderr] --> src/meta_weblog/rpc.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | const GET_USERS_BLOGS: &str = "blogger.getUsersBlogs"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `NEW_POST` [INFO] [stderr] --> src/meta_weblog/rpc.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | const NEW_POST: &str = "metaWeblog.newPost"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `NEW_CATEGORY` [INFO] [stderr] --> src/meta_weblog/rpc.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | const NEW_CATEGORY: &str = "wp.newCategory"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `app_key` [INFO] [stderr] --> src/meta_weblog/rpc.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | app_key: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_post` [INFO] [stderr] --> src/meta_weblog/rpc.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn new_post(&self, post: Post, publish: bool) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_category` [INFO] [stderr] --> src/meta_weblog/rpc.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 57 | pub fn new_category(&self, category: WpCategory) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_post` [INFO] [stderr] --> src/meta_weblog/rpc.rs:75:12 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn get_post(&self, postid: &str) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_recent_posts` [INFO] [stderr] --> src/meta_weblog/rpc.rs:90:12 [INFO] [stderr] | [INFO] [stderr] 90 | pub fn get_recent_posts(&self, num: u32) -> Result, Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_users_blogs` [INFO] [stderr] --> src/meta_weblog/rpc.rs:132:12 [INFO] [stderr] | [INFO] [stderr] 132 | pub fn get_users_blogs(&self) -> Result, Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `edit_post` [INFO] [stderr] --> src/meta_weblog/rpc.rs:153:12 [INFO] [stderr] | [INFO] [stderr] 153 | pub fn edit_post(&self, postid: &str, post: Post, publish: bool) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `delete_post` [INFO] [stderr] --> src/meta_weblog/rpc.rs:173:12 [INFO] [stderr] | [INFO] [stderr] 173 | pub fn delete_post(&self, postid: &str, publish: bool) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `BLOGS_INFO_CFG` [INFO] [stderr] --> src/meta_weblog/cfg.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | pub const BLOGS_INFO_CFG: &str = "blogs_info.sqlite"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `USER_INFO_CFG` [INFO] [stderr] --> src/meta_weblog/cfg.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | pub const USER_INFO_CFG: &str = "user_info.json"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MASTER_BLOGS_CFG` [INFO] [stderr] --> src/meta_weblog/cfg.rs:22:1 [INFO] [stderr] | [INFO] [stderr] 22 | const MASTER_BLOGS_CFG: &str = "MASTER_CNBLOG_BLOGS_INFO_CFG"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Config` [INFO] [stderr] --> src/meta_weblog/cfg.rs:33:12 [INFO] [stderr] | [INFO] [stderr] 33 | pub struct Config { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/meta_weblog/cfg.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `check_account` [INFO] [stderr] --> src/meta_weblog/cfg.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 76 | pub fn check_account(username: &str, password: &str) -> Result<(), Error> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `try_get_master_postid` [INFO] [stderr] --> src/meta_weblog/cfg.rs:87:12 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn try_get_master_postid(username: &str, password: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `init_blogs_cfg` [INFO] [stderr] --> src/meta_weblog/cfg.rs:112:12 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn init_blogs_cfg(blogs_path: &Path) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `create_database` [INFO] [stderr] --> src/meta_weblog/cfg.rs:122:8 [INFO] [stderr] | [INFO] [stderr] 122 | fn create_database(database_path: &Path) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `upload_new_blogs_cfg` [INFO] [stderr] --> src/meta_weblog/cfg.rs:148:12 [INFO] [stderr] | [INFO] [stderr] 148 | pub fn upload_new_blogs_cfg(username: &str, password: &str, blogs_path: &Path) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `download_blogs_info` [INFO] [stderr] --> src/meta_weblog/cfg.rs:193:12 [INFO] [stderr] | [INFO] [stderr] 193 | pub fn download_blogs_info(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `download_blogs_info_to_path` [INFO] [stderr] --> src/meta_weblog/cfg.rs:196:8 [INFO] [stderr] | [INFO] [stderr] 196 | fn download_blogs_info_to_path(&self, path: &Path) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `file2base64` [INFO] [stderr] --> src/meta_weblog/cfg.rs:208:8 [INFO] [stderr] | [INFO] [stderr] 208 | fn file2base64(file_path: &Path) -> String { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `base642file` [INFO] [stderr] --> src/meta_weblog/cfg.rs:220:8 [INFO] [stderr] | [INFO] [stderr] 220 | fn base642file(base: &str, file_path: &Path) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `write_user_info_cfg` [INFO] [stderr] --> src/meta_weblog/cfg.rs:230:12 [INFO] [stderr] | [INFO] [stderr] 230 | pub fn write_user_info_cfg(username: &str, password: &str, postid: i32, user_info_path: &Path) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `read_user_info_cfg` [INFO] [stderr] --> src/meta_weblog/cfg.rs:261:12 [INFO] [stderr] | [INFO] [stderr] 261 | pub fn read_user_info_cfg(user_info_path: &Path) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `check_blogs_info_update` [INFO] [stderr] --> src/meta_weblog/cfg.rs:277:12 [INFO] [stderr] | [INFO] [stderr] 277 | pub fn check_blogs_info_update(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `init_conn` [INFO] [stderr] --> src/meta_weblog/cfg.rs:307:12 [INFO] [stderr] | [INFO] [stderr] 307 | pub fn init_conn(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_remote_new_blogs_info` [INFO] [stderr] --> src/meta_weblog/cfg.rs:319:12 [INFO] [stderr] | [INFO] [stderr] 319 | pub fn get_remote_new_blogs_info(&self) -> Vec{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `query_blogs_existed_info_do` [INFO] [stderr] --> src/meta_weblog/cfg.rs:332:8 [INFO] [stderr] | [INFO] [stderr] 332 | fn query_blogs_existed_info_do(&self, conn: &Connection) -> BTreeMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `query_blogs_not_existed_info_do` [INFO] [stderr] --> src/meta_weblog/cfg.rs:335:8 [INFO] [stderr] | [INFO] [stderr] 335 | fn query_blogs_not_existed_info_do(&self, conn: &Connection) -> BTreeMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `query_blogs_info_do` [INFO] [stderr] --> src/meta_weblog/cfg.rs:339:8 [INFO] [stderr] | [INFO] [stderr] 339 | fn query_blogs_info_do(&self, sql_suffix: &str, conn: &Connection) -> BTreeMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_remote_changed_blogs_info` [INFO] [stderr] --> src/meta_weblog/cfg.rs:372:12 [INFO] [stderr] | [INFO] [stderr] 372 | pub fn get_remote_changed_blogs_info(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_remote_deleted_blogs_info` [INFO] [stderr] --> src/meta_weblog/cfg.rs:386:12 [INFO] [stderr] | [INFO] [stderr] 386 | pub fn get_remote_deleted_blogs_info(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `overwrite_local_database` [INFO] [stderr] --> src/meta_weblog/cfg.rs:404:12 [INFO] [stderr] | [INFO] [stderr] 404 | pub fn overwrite_local_database(self) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_local_existed_blogs_path` [INFO] [stderr] --> src/meta_weblog/cfg.rs:424:12 [INFO] [stderr] | [INFO] [stderr] 424 | pub fn get_local_existed_blogs_path(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `BlogsInfoDO` [INFO] [stderr] --> src/meta_weblog/cfg.rs:435:12 [INFO] [stderr] | [INFO] [stderr] 435 | pub struct BlogsInfoDO { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Utility` [INFO] [stderr] --> src/meta_weblog/cfg.rs:443:12 [INFO] [stderr] | [INFO] [stderr] 443 | pub struct Utility { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_file_timestamp` [INFO] [stderr] --> src/meta_weblog/cfg.rs:449:12 [INFO] [stderr] | [INFO] [stderr] 449 | pub fn get_file_timestamp(file_path: &Path) -> i64{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `modify_file_timestamp` [INFO] [stderr] --> src/meta_weblog/cfg.rs:456:12 [INFO] [stderr] | [INFO] [stderr] 456 | pub fn modify_file_timestamp(file_path: &Path, timestamp: i64) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/meta_weblog/cfg.rs:174:9 [INFO] [stderr] | [INFO] [stderr] 174 | / conn.execute( [INFO] [stderr] 175 | | "\ [INFO] [stderr] 176 | | insert into BlogsInfo (blog_path, postid, datetime)\ [INFO] [stderr] 177 | | values (?, ?, ?, ?)", [INFO] [stderr] 178 | | params![MASTER_BLOGS_CFG, postid, now, 1], [INFO] [stderr] 179 | | ); [INFO] [stderr] | |__________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `cnblog` (bin "cnblog" test) generated 71 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/cnblog-bce0d15641b4efb6) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/cnblog-9955f895c092f3a5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests cnblog [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b7e97fd6b74c7d7ba6c589458509407806ce8c59c6be49befba76d72e6fdb4a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7e97fd6b74c7d7ba6c589458509407806ce8c59c6be49befba76d72e6fdb4a4", kill_on_drop: false }` [INFO] [stdout] b7e97fd6b74c7d7ba6c589458509407806ce8c59c6be49befba76d72e6fdb4a4