[INFO] cloning repository https://github.com/danilasar/tutorsite [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/danilasar/tutorsite" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanilasar%2Ftutorsite", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanilasar%2Ftutorsite'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 39aa341d0c8d9538d9ff98250a484d9ab3766022 [INFO] testing danilasar/tutorsite against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanilasar%2Ftutorsite" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/danilasar/tutorsite [INFO] finished tweaking git repo https://github.com/danilasar/tutorsite [INFO] tweaked toml for git repo https://github.com/danilasar/tutorsite written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/danilasar/tutorsite on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/danilasar/tutorsite already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 207b6b10733deb87008244418d0b0db3f5815716ba8b5395cf3f807694a32acb [INFO] running `Command { std: "docker" "start" "-a" "207b6b10733deb87008244418d0b0db3f5815716ba8b5395cf3f807694a32acb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "207b6b10733deb87008244418d0b0db3f5815716ba8b5395cf3f807694a32acb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "207b6b10733deb87008244418d0b0db3f5815716ba8b5395cf3f807694a32acb", kill_on_drop: false }` [INFO] [stdout] 207b6b10733deb87008244418d0b0db3f5815716ba8b5395cf3f807694a32acb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92ce4f3fb4685a3b4bc94b2fc38cc6558941ac0836e5aa2be8b9895e2d0a0e72 [INFO] running `Command { std: "docker" "start" "-a" "92ce4f3fb4685a3b4bc94b2fc38cc6558941ac0836e5aa2be8b9895e2d0a0e72", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.206 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling mio v1.0.1 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling serde_json v1.0.122 [INFO] [stderr] Compiling indexmap v2.3.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling cc v1.1.10 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling unicode-properties v0.1.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling flate2 v1.0.31 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling tokio v1.39.2 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling openssl-src v300.5.1+3.5.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling impl-more v0.1.6 [INFO] [stderr] Compiling rs_n_bit_words v0.1.3 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling rs_internal_state v0.1.3 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling libz-sys v1.1.20 [INFO] [stderr] Compiling libssh2-sys v0.3.0 [INFO] [stderr] Compiling libgit2-sys v0.17.0+1.8.1 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling parse-size v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.5 [INFO] [stderr] Compiling rs_internal_hasher v0.1.3 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling rs_hasher_ctx v0.1.3 [INFO] [stderr] Compiling env_filter v0.1.2 [INFO] [stderr] Compiling http-range v0.1.5 [INFO] [stderr] Compiling unicode-id v0.3.4 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling markdown v1.0.0-alpha.20 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling rs_sha512 v0.1.3 [INFO] [stderr] Compiling env_logger v0.11.5 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling serde_derive v1.0.206 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling pest v2.7.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling actix-multipart-derive v0.7.0 [INFO] [stderr] Compiling pest_meta v2.7.11 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling pest_generator v2.7.11 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling pest_derive v2.7.11 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_plain v1.0.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling handlebars v6.0.0 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling actix-session v0.10.0 [INFO] [stderr] Compiling actix-multipart v0.7.2 [INFO] [stderr] Compiling actix-files v0.6.6 [INFO] [stderr] Compiling git2 v0.19.0 [INFO] [stderr] Compiling tutors v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/post.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | let posts = sqlx::query_file_as!(Post, "sql/post/get_all.sql") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/post.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let posts = sqlx::query_file!("sql/post/get_list.sql") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/post.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | let post = sqlx::query_file_as!(Post, "sql/post/get_by_id.sql", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/post.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let q = sqlx::query_file!( [INFO] [stdout] | _________________^ [INFO] [stdout] 50 | | "sql/post/create.sql", [INFO] [stdout] 51 | | self.title.clone().unwrap_or_default(), [INFO] [stdout] 52 | | self.description.clone().unwrap_or_default(), [INFO] [stdout] 53 | | self.md_file.clone().unwrap_or_default()) [INFO] [stdout] | |_________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/post.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | match sqlx::query_file!("sql/post/delete.sql", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/post.rs:71:15 [INFO] [stdout] | [INFO] [stdout] 71 | match sqlx::query_file!("sql/post/delete_by_filename.sql", filename) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/post.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | if let Err(e) = sqlx::query_file!("sql/post/update.sql", [INFO] [stdout] | _________________________^ [INFO] [stdout] 88 | | self.id.clone().unwrap_or_default(), [INFO] [stdout] 89 | | self.title.clone().unwrap_or_default(), [INFO] [stdout] 90 | | self.description.clone().unwrap_or_default(), [INFO] [stdout] 91 | | self.md_file.clone().unwrap_or_default() [INFO] [stdout] 92 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/post.rs:106:25 [INFO] [stdout] | [INFO] [stdout] 106 | if let Err(e) = sqlx::query_file!("sql/post/rename_md_file.sql", [INFO] [stdout] | _________________________^ [INFO] [stdout] 107 | | old_filename, [INFO] [stdout] 108 | | new_filename [INFO] [stdout] 109 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/post.rs:122:25 [INFO] [stdout] | [INFO] [stdout] 122 | if let Err(e) = sqlx::query_file!("sql/post/update_metadata_by_filename.sql", [INFO] [stdout] | _________________________^ [INFO] [stdout] 123 | | self.md_file.clone().unwrap_or_default(), [INFO] [stdout] 124 | | self.title.clone().unwrap_or_default(), [INFO] [stdout] 125 | | self.description.clone().unwrap_or_default() [INFO] [stdout] 126 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/user.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | let result = sqlx::query_file!("sql/user/add.sql", [INFO] [stdout] | ______________________^ [INFO] [stdout] 20 | | login.clone(), [INFO] [stdout] 21 | | user_info.name.clone().unwrap_or(login), [INFO] [stdout] 22 | | user_info.password_hash.clone().unwrap()).fetch_one(pool).await; [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/user.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | let result = sqlx::query_file_as!(User, "sql/user/get_by_id.sql", id).fetch_one(pool).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/user.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 37 | let result = sqlx::query_file_as!(User, "sql/user/get_by_login.sql", login).fetch_one(pool).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/user.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | let result = sqlx::query_file_as!(User, "sql/user/get_by_token.sql", token).fetch_one(pool).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/session.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | match sqlx::query_file!("sql/session/remove_by_token.sql", token) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/session.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | match sqlx::query_file!("sql/session/remove_by_user.sql", user.id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/session.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 64 | let result = sqlx::query_file!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 65 | | "sql/session/add.sql", [INFO] [stdout] 66 | | token, [INFO] [stdout] 67 | | user.id [INFO] [stdout] 68 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] --> src/models/session.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | let result = sqlx::query_file!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 77 | | "sql/session/add_expirable.sql", [INFO] [stdout] 78 | | token, [INFO] [stdout] 79 | | user.id, [INFO] [stdout] 80 | | datetime.naive_utc() [INFO] [stdout] 81 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/handlers/post.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{get, post, http, HttpRequest, HttpResponse, web}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `errors` [INFO] [stdout] --> src/handlers/post.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::handlers::{errors, utils}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/post.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | if(!services::users::is_authored(&service_data).await) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - if(!services::users::is_authored(&service_data).await) { [INFO] [stdout] 70 + if !services::users::is_authored(&service_data).await { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/login.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | if(!regex_login.is_match(form.login.as_str())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - if(!regex_login.is_match(form.login.as_str())) { [INFO] [stdout] 18 + if !regex_login.is_match(form.login.as_str()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/login.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | if(!regex_login.is_match(form.password.as_str())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - if(!regex_login.is_match(form.password.as_str())) { [INFO] [stdout] 21 + if !regex_login.is_match(form.password.as_str()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/login.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | if(!auth_errors.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - if(!auth_errors.is_empty()) { [INFO] [stdout] 24 + if !auth_errors.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/login.rs:44:7 [INFO] [stdout] | [INFO] [stdout] 44 | if(user.is_some()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if(user.is_some()) { [INFO] [stdout] 44 + if user.is_some() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/login.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | if(services::users::is_authored(&service_data).await) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 79 - if(services::users::is_authored(&service_data).await) { [INFO] [stdout] 79 + if services::users::is_authored(&service_data).await { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/login.rs:114:7 [INFO] [stdout] | [INFO] [stdout] 114 | if(session_token.is_err()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - if(session_token.is_err()) { [INFO] [stdout] 114 + if session_token.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/login.rs:140:7 [INFO] [stdout] | [INFO] [stdout] 140 | if(!services::users::is_authored(&service_data).await) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - if(!services::users::is_authored(&service_data).await) { [INFO] [stdout] 140 + if !services::users::is_authored(&service_data).await { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_session::Session` [INFO] [stdout] --> src/handlers/utils/errors.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpRequest`, `get`, and `web` [INFO] [stdout] --> src/handlers/utils/errors.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{get, http, HttpRequest, HttpResponse, web}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::context::Context` [INFO] [stdout] --> src/handlers/utils/errors.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::context::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/handlers/update.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{get, post, http, HttpRequest, HttpResponse, web}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `header` [INFO] [stdout] --> src/handlers/update.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::http::{header, StatusCode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/update.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | if(!services::users::is_authored(&service_data).await) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 17 - if(!services::users::is_authored(&service_data).await) { [INFO] [stdout] 17 + if !services::users::is_authored(&service_data).await { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/handlers/mod.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use actix_web::{get, HttpRequest, HttpResponse, web}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/mod.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | if(entry.is_err()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - if(entry.is_err()) { [INFO] [stdout] 31 + if entry.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/mod.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | if(!is_dir) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - if(!is_dir) { [INFO] [stdout] 39 + if !is_dir { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Session` [INFO] [stdout] --> src/services/users.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_session::{Session, SessionGetError}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/services/git.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/services/git.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::read` [INFO] [stdout] --> src/services/git.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::read; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FetchOptions` and `Oid` [INFO] [stdout] --> src/services/git.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use git2::{FetchOptions, Oid, Repository}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Unexpected::Str` [INFO] [stdout] --> src/services/git.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde::de::Unexpected::Str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/services/git.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | if(path.extension().unwrap_or_default() != "md") { return false; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if(path.extension().unwrap_or_default() != "md") { return false; } [INFO] [stdout] 45 + if path.extension().unwrap_or_default() != "md" { return false; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/services/git.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | if(!check_path_to_post_md(new_file.clone().as_path())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if(!check_path_to_post_md(new_file.clone().as_path())) { [INFO] [stdout] 105 + if !check_path_to_post_md(new_file.clone().as_path()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/services/git.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | if(allowed_statuses.contains(&status)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 110 - if(allowed_statuses.contains(&status)) { [INFO] [stdout] 110 + if allowed_statuses.contains(&status) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/services/git.rs:165:7 [INFO] [stdout] | [INFO] [stdout] 165 | if(buf.trim() != " src/services/git.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | if(buf.trim() != "-->") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 180 - if(buf.trim() != "-->") { [INFO] [stdout] 180 + if buf.trim() != "-->" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/models/user.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | if(user_info.login.is_none() || user_info.password_hash.is_none()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if(user_info.login.is_none() || user_info.password_hash.is_none()) { [INFO] [stdout] 15 + if user_info.login.is_none() || user_info.password_hash.is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/models/session.rs:41:46 [INFO] [stdout] | [INFO] [stdout] 41 | -> Result [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - -> Result [INFO] [stdout] 41 + -> Result [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/models/session.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | if (user.id.is_none()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - if (user.id.is_none()) { [INFO] [stdout] 43 + if user.id.is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/models/session.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | if (user.login.is_none()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if (user.login.is_none()) { [INFO] [stdout] 44 + if user.login.is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/models/session.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | if (lifetime.is_none()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - if (lifetime.is_none()) { [INFO] [stdout] 63 + if lifetime.is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SessionGetError` and `Session` [INFO] [stdout] --> src/core/templator.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_session::{Session, SessionGetError}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::models::DbError` [INFO] [stdout] --> src/core/service_data.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::models::DbError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/core/files.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{Error, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers/post.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut post = post.unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/login.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | Err(e) => return utils::errors::page_500(&service_data).await [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/services/git.rs:259:28 [INFO] [stdout] | [INFO] [stdout] 259 | if let Err(e) = post.create(&service_data.context.db).await { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/git.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | let mut post = match parse_post_markdown(&changed_file.1) { [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/core/templator.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut data = json!({ "page": { "name": title.unwrap_or_default(), "content": content } }); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_type` [INFO] [stdout] --> src/core/files.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let content_type = field.content_disposition().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/core/files.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | Err(e) => return Err(UploadError::FileCreationError) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/core/files.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | Err(e) => return Err(UploadError::FileWritingError) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/core/files.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | Err(e) => return Err(UploadError::FileWritingError) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWriteExt` [INFO] [stdout] --> src/core/files.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{AsyncWriteExt, StreamExt, TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/services/git.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | Err(e) => return Err(BranchNotFound(branch.to_string())) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/services/git.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | let options = &markdown::Options::gfm(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tutors` (bin "tutors") due to 17 previous errors; 50 warnings emitted [INFO] running `Command { std: "docker" "inspect" "92ce4f3fb4685a3b4bc94b2fc38cc6558941ac0836e5aa2be8b9895e2d0a0e72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92ce4f3fb4685a3b4bc94b2fc38cc6558941ac0836e5aa2be8b9895e2d0a0e72", kill_on_drop: false }` [INFO] [stdout] 92ce4f3fb4685a3b4bc94b2fc38cc6558941ac0836e5aa2be8b9895e2d0a0e72