[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] 17802dbedc13bee2462a76977a22784964357221 [INFO] checking danilasar/tutorsite against try#b2fb67b8b6007ced9ad3f3b752a6fec899e7859c for pr-138915 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanilasar%2Ftutorsite" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/danilasar/tutorsite on toolchain b2fb67b8b6007ced9ad3f3b752a6fec899e7859c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7-tc2/source/Cargo.toml [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" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded actix-session v0.10.0 [INFO] [stderr] Downloaded markdown v1.0.0-alpha.20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3c7c2dca35ff40b5b5ba078f4e2dc251cd84a0f46bcedb43b09f400b21c6ef4 [INFO] running `Command { std: "docker" "start" "-a" "b3c7c2dca35ff40b5b5ba078f4e2dc251cd84a0f46bcedb43b09f400b21c6ef4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3c7c2dca35ff40b5b5ba078f4e2dc251cd84a0f46bcedb43b09f400b21c6ef4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3c7c2dca35ff40b5b5ba078f4e2dc251cd84a0f46bcedb43b09f400b21c6ef4", kill_on_drop: false }` [INFO] [stdout] b3c7c2dca35ff40b5b5ba078f4e2dc251cd84a0f46bcedb43b09f400b21c6ef4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ce5cef0894c78999d80850c4069d2b4bfce52948589bc81e3b405d101cf7c364 [INFO] running `Command { std: "docker" "start" "-a" "ce5cef0894c78999d80850c4069d2b4bfce52948589bc81e3b405d101cf7c364", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling serde v1.0.206 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.122 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling syn v2.0.73 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling cc v1.1.10 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling libz-sys v1.1.20 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling tokio v1.39.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking brotli-decompressor v4.0.1 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling serde_derive v1.0.206 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Checking indexmap v2.3.0 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling sqlformat v0.2.4 [INFO] [stderr] Checking flate2 v1.0.31 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Checking brotli v6.0.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Compiling libssh2-sys v0.3.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Checking base64 v0.20.0 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling unicode-properties v0.1.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling sqlx-core v0.8.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling pest v2.7.11 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking impl-more v0.1.6 [INFO] [stderr] Checking actix-server v2.5.0 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Checking rs_n_bit_words v0.1.3 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Checking rs_internal_state v0.1.3 [INFO] [stderr] Compiling sqlx-postgres v0.8.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling pest_meta v2.7.11 [INFO] [stderr] Compiling libgit2-sys v0.17.0+1.8.1 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Compiling pest_generator v2.7.11 [INFO] [stderr] Checking rs_internal_hasher v0.1.3 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Checking actix-http v3.9.0 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Compiling parse-size v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.5 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Compiling sqlx-macros-core v0.8.0 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking pear v0.2.9 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Compiling actix-multipart-derive v0.7.0 [INFO] [stderr] Compiling pest_derive v2.7.11 [INFO] [stderr] Checking actix-web v4.9.0 [INFO] [stderr] Checking rs_hasher_ctx v0.1.3 [INFO] [stderr] Checking serde_plain v1.0.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking unicode-id v0.3.4 [INFO] [stderr] Checking http-range v0.1.5 [INFO] [stderr] Checking handlebars v6.0.0 [INFO] [stderr] Checking markdown v1.0.0-alpha.20 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Compiling sqlx-macros v0.8.0 [INFO] [stderr] Checking rs_sha512 v0.1.3 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Checking actix-files v0.6.6 [INFO] [stderr] Checking actix-multipart v0.7.2 [INFO] [stderr] Checking actix-session v0.10.0 [INFO] [stderr] Checking sqlx v0.8.0 [INFO] [stderr] Checking git2 v0.19.0 [INFO] [stderr] Checking tutors v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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] error: error communicating with database: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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: Connection refused (os error 111) [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)]` 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)]` 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: 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)]` 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)]` 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)]` 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)]` on by default [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)]` 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: 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)]` on by default [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 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] [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] [stderr] error: could not compile `tutors` (bin "tutors" test) due to 17 previous errors; 50 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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" "ce5cef0894c78999d80850c4069d2b4bfce52948589bc81e3b405d101cf7c364", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce5cef0894c78999d80850c4069d2b4bfce52948589bc81e3b405d101cf7c364", kill_on_drop: false }` [INFO] [stdout] ce5cef0894c78999d80850c4069d2b4bfce52948589bc81e3b405d101cf7c364