[INFO] cloning repository https://github.com/afidegnum/usersman [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/afidegnum/usersman" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafidegnum%2Fusersman", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafidegnum%2Fusersman'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 10259063303c2111693f6caec4496053733eea13 [INFO] checking afidegnum/usersman against master#a874956d940ecb3ed524b6176a171219ac4787ea for pr-76104 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafidegnum%2Fusersman" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/afidegnum/usersman on toolchain a874956d940ecb3ed524b6176a171219ac4787ea [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a874956d940ecb3ed524b6176a171219ac4787ea" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/afidegnum/usersman [INFO] finished tweaking git repo https://github.com/afidegnum/usersman [INFO] tweaked toml for git repo https://github.com/afidegnum/usersman written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/afidegnum/usersman already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a874956d940ecb3ed524b6176a171219ac4787ea" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+a874956d940ecb3ed524b6176a171219ac4787ea" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a2b11b13fabfeb7947b56d4481e2efa0d8b7c190d155ac35fcd481ac14f27565 [INFO] running `Command { std: "docker" "start" "-a" "a2b11b13fabfeb7947b56d4481e2efa0d8b7c190d155ac35fcd481ac14f27565", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a2b11b13fabfeb7947b56d4481e2efa0d8b7c190d155ac35fcd481ac14f27565", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2b11b13fabfeb7947b56d4481e2efa0d8b7c190d155ac35fcd481ac14f27565", kill_on_drop: false }` [INFO] [stdout] a2b11b13fabfeb7947b56d4481e2efa0d8b7c190d155ac35fcd481ac14f27565 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+a874956d940ecb3ed524b6176a171219ac4787ea" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9ee7306cfe070cf20b8b1e435721c287119a2a99c3bd4d7118866fb4fc59a63 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e9ee7306cfe070cf20b8b1e435721c287119a2a99c3bd4d7118866fb4fc59a63", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling proc-macro2 v1.0.20 [INFO] [stderr] Compiling syn v1.0.40 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking once_cell v1.4.1 [INFO] [stderr] Checking smallvec v1.4.2 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking instant v0.1.6 [INFO] [stderr] Checking tinyvec v0.3.4 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking gimli v0.22.0 [INFO] [stderr] Checking object v0.20.0 [INFO] [stderr] Checking rustc-demangle v0.1.16 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Checking either v1.6.0 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling lexical-core v0.7.4 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling encoding_rs v0.8.24 [INFO] [stderr] Checking hashbrown v0.9.0 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling futures-core v0.3.5 [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Checking subtle v2.2.3 [INFO] [stderr] Compiling futures-sink v0.3.5 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking serde v0.8.23 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.5 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Checking unicode-xid v0.2.1 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling arc-swap v0.4.7 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.1.7 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling v_htmlescape v0.4.5 [INFO] [stderr] Compiling askama_escape v0.10.1 [INFO] [stderr] Checking rust-ini v0.13.0 [INFO] [stderr] Compiling hyperx v1.1.0 [INFO] [stderr] Compiling humansize v1.1.0 [INFO] [stderr] Compiling anyhow v1.0.32 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking unchecked-index v0.2.2 [INFO] [stderr] Checking quoted_printable v0.4.2 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking tracing-core v0.1.15 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling standback v0.2.10 [INFO] [stderr] Compiling time v0.2.20 [INFO] [stderr] Compiling cookie v0.14.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking lock_api v0.4.1 [INFO] [stderr] Checking miniz_oxide v0.4.1 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking yaml-rust v0.4.4 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking bytestring v0.1.5 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Checking blake2b_simd v0.5.10 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Checking serde_test v0.8.23 [INFO] [stderr] Checking twoway v0.2.1 [INFO] [stderr] Checking addr2line v0.13.0 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking tracing v0.1.19 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling hashbrown v0.1.8 [INFO] [stderr] Checking quote v1.0.7 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking signal-hook-registry v1.2.1 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking flate2 v1.0.17 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking backtrace v0.3.50 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Checking linked-hash-map v0.3.0 [INFO] [stderr] Checking rust-argon2 v0.5.1 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Compiling cexpr v0.3.6 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking resolv-conf v0.6.3 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking parking_lot v0.11.0 [INFO] [stderr] Checking sanitize-filename v0.2.1 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling cc v1.0.59 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking serde-hjson v0.9.1 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking scheduled-thread-pool v0.2.5 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking sha2 v0.9.1 [INFO] [stderr] Checking sha-1 v0.9.1 [INFO] [stderr] Checking r2d2 v0.8.9 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling postgres-protocol v0.5.2 [INFO] [stderr] Compiling clang-sys v0.26.4 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling async-trait v0.1.40 [INFO] [stderr] Compiling derive_more v0.99.9 [INFO] [stderr] Compiling actix-macros v0.1.2 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling actix-web-codegen v0.2.2 [INFO] [stderr] Compiling v_escape_derive v0.5.6 [INFO] [stderr] Compiling actix-web-codegen v0.3.0 [INFO] [stderr] Compiling postgres_query_macro v0.3.1 [INFO] [stderr] Compiling structopt-derive v0.4.10 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Checking time-macros v0.1.0 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking v_escape v0.7.4 [INFO] [stderr] Compiling which v2.0.1 [INFO] [stderr] Compiling bindgen v0.48.1 [INFO] [stderr] Checking thiserror v1.0.20 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking structopt v0.3.17 [INFO] [stderr] Checking actix-threadpool v0.3.3 [INFO] [stderr] Checking serde v1.0.115 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-util v0.2.0 [INFO] [stderr] Checking actix-codec v0.2.0 [INFO] [stderr] Checking actix-codec v0.3.0 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking actix-service v1.0.6 [INFO] [stderr] Checking actix-rt v1.1.1 [INFO] [stderr] Checking h2 v0.2.6 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking trust-dns-proto v0.18.0-alpha.2 [INFO] [stderr] Checking trust-dns-proto v0.19.5 [INFO] [stderr] Checking actix-utils v1.0.6 [INFO] [stderr] Checking actix-utils v2.0.0 [INFO] [stderr] Checking actix-server v1.0.3 [INFO] [stderr] Checking actix-tls v1.0.0 [INFO] [stderr] Checking actix-tls v2.0.0 [INFO] [stderr] Checking trust-dns-resolver v0.19.5 [INFO] [stderr] Checking actix-testing v1.0.1 [INFO] [stderr] Checking trust-dns-resolver v0.18.0-alpha.2 [INFO] [stderr] Compiling argonautica v0.2.0 [INFO] [stderr] Checking actix-connect v1.0.2 [INFO] [stderr] Checking actix-connect v2.0.0 [INFO] [stderr] Checking chrono v0.4.15 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking actix-router v0.2.4 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking postgres-types v0.1.2 [INFO] [stderr] Checking actix-http v1.0.1 [INFO] [stderr] Checking actix-http v2.0.0 [INFO] [stderr] Checking lettre v0.10.0-alpha.0 (https://github.com/lettre/lettre#04b42879) [INFO] [stderr] Checking config v0.10.1 [INFO] [stderr] Checking askama_shared v0.10.4 [INFO] [stderr] Checking tokio-postgres v0.5.5 [INFO] [stderr] Checking deadpool v0.5.2 [INFO] [stderr] Checking tokio-pg-mapper v0.1.8 [INFO] [stderr] Checking deadpool-postgres v0.5.6 [INFO] [stderr] Checking postgres_query v0.3.3 [INFO] [stderr] Checking awc v1.0.1 [INFO] [stderr] Checking awc v2.0.0 [INFO] [stderr] Compiling askama_derive v0.10.3 [INFO] [stderr] Checking actix-web v2.0.0 [INFO] [stderr] Checking actix-web v3.0.2 [INFO] [stderr] Compiling tokio-pg-mapper-derive v0.1.5 [INFO] [stderr] Checking askama v0.10.3 [INFO] [stderr] Checking actix-session v0.3.0 [INFO] [stderr] Checking actix-files v0.2.2 [INFO] [stderr] Checking actix-cors v0.2.0 [INFO] [stderr] Checking actix-multipart v0.3.0 [INFO] [stderr] Checking app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> src/main.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: template "index.html" not found in directories ["/opt/rustwide/workdir/templates"] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: template "user.html" not found in directories ["/opt/rustwide/workdir/templates"] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/content/models.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration` [INFO] [stdout] --> src/content/models.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{DateTime, Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/mail/email_service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/mail/model.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_pg_mapper_derive::PostgresMapper` [INFO] [stdout] --> src/mail/model.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio_pg_mapper_derive::PostgresMapper; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/mail/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_session::Session` [INFO] [stdout] --> src/auth/password_handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpResponse`, `error::BlockingError`, `http::header::LOCATION`, `web` [INFO] [stdout] --> src/auth/password_handler.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{error::BlockingError, http::header::LOCATION, web, HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pool` [INFO] [stdout] --> src/auth/password_handler.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use deadpool_postgres::{Client, Pool}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Deserialize` [INFO] [stdout] --> src/auth/password_handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Confirmation`, `User`, `is_signed_in`, `set_current_user`, `to_home` [INFO] [stdout] --> src/auth/password_handler.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | hash_password, is_signed_in, set_current_user, to_home, Confirmation, SessionUser, User, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpServer`, `middleware` [INFO] [stdout] --> src/media/upload.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{middleware, web, App, Error, HttpResponse, HttpServer}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::auth::SessionUser` [INFO] [stdout] --> src/templ.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::auth::SessionUser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> src/main.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: template "index.html" not found in directories ["/opt/rustwide/workdir/templates"] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: template "user.html" not found in directories ["/opt/rustwide/workdir/templates"] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/content/models.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration` [INFO] [stdout] --> src/content/models.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{DateTime, Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/mail/email_service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/mail/model.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_pg_mapper_derive::PostgresMapper` [INFO] [stdout] --> src/mail/model.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio_pg_mapper_derive::PostgresMapper; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/mail/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_session::Session` [INFO] [stdout] --> src/auth/password_handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpResponse`, `error::BlockingError`, `http::header::LOCATION`, `web` [INFO] [stdout] --> src/auth/password_handler.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{error::BlockingError, http::header::LOCATION, web, HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pool` [INFO] [stdout] --> src/auth/password_handler.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use deadpool_postgres::{Client, Pool}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Deserialize` [INFO] [stdout] --> src/auth/password_handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Confirmation`, `User`, `is_signed_in`, `set_current_user`, `to_home` [INFO] [stdout] --> src/auth/password_handler.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | hash_password, is_signed_in, set_current_user, to_home, Confirmation, SessionUser, User, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpServer`, `middleware` [INFO] [stdout] --> src/media/upload.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{middleware, web, App, Error, HttpResponse, HttpServer}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::auth::SessionUser` [INFO] [stdout] --> src/templ.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::auth::SessionUser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `UserTemplate<'_>` in the current scope [INFO] [stdout] --> src/main.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 29 | struct UserTemplate<'a> { [INFO] [stdout] | ----------------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 40 | .render() [INFO] [stdout] | ^^^^^^ method not found in `UserTemplate<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `UserTemplate<'_>` in the current scope [INFO] [stdout] --> src/main.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 29 | struct UserTemplate<'a> { [INFO] [stdout] | ----------------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 40 | .render() [INFO] [stdout] | ^^^^^^ method not found in `UserTemplate<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `Index` in the current scope [INFO] [stdout] --> src/main.rs:43:15 [INFO] [stdout] | [INFO] [stdout] 25 | struct Index; [INFO] [stdout] | ------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 43 | Index.render().unwrap() [INFO] [stdout] | ^^^^^^ method not found in `Index` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `Index` in the current scope [INFO] [stdout] --> src/main.rs:43:15 [INFO] [stdout] | [INFO] [stdout] 25 | struct Index; [INFO] [stdout] | ------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 43 | Index.render().unwrap() [INFO] [stdout] | ^^^^^^ method not found in `Index` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::result::Result: ToSql` is not satisfied [INFO] [stdout] --> src/auth/password_handler.rs:138:53 [INFO] [stdout] | [INFO] [stdout] 138 | let user = match client.query_opt(&statement, &[&path_uuid]).await? { [INFO] [stdout] | ^^^^^^^^^^ the trait `ToSql` is not implemented for `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: required for the cast to the object type `dyn ToSql + Sync` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/auth/password_handler.rs:138:22 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn add_user(client: &Client, path_id: &str, password: &str) -> SessionUser { [INFO] [stdout] | ______________________________________________________________________________________- [INFO] [stdout] 130 | | let path_uuid = Uuid::parse_str(path_id); [INFO] [stdout] 131 | | [INFO] [stdout] 132 | | let statement = client [INFO] [stdout] ... | [INFO] [stdout] 138 | | let user = match client.query_opt(&statement, &[&path_uuid]).await? { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `auth::model::SessionUser` [INFO] [stdout] ... | [INFO] [stdout] 181 | | } [INFO] [stdout] 182 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `auth::model::SessionUser` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::result::Result: ToSql` is not satisfied [INFO] [stdout] --> src/auth/password_handler.rs:138:53 [INFO] [stdout] | [INFO] [stdout] 138 | let user = match client.query_opt(&statement, &[&path_uuid]).await? { [INFO] [stdout] | ^^^^^^^^^^ the trait `ToSql` is not implemented for `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: required for the cast to the object type `dyn ToSql + Sync` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/auth/password_handler.rs:138:22 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn add_user(client: &Client, path_id: &str, password: &str) -> SessionUser { [INFO] [stdout] | ______________________________________________________________________________________- [INFO] [stdout] 130 | | let path_uuid = Uuid::parse_str(path_id); [INFO] [stdout] 131 | | [INFO] [stdout] 132 | | let statement = client [INFO] [stdout] ... | [INFO] [stdout] 138 | | let user = match client.query_opt(&statement, &[&path_uuid]).await? { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `auth::model::SessionUser` [INFO] [stdout] ... | [INFO] [stdout] 181 | | } [INFO] [stdout] 182 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `auth::model::SessionUser` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/auth/password_handler.rs:143:17 [INFO] [stdout] | [INFO] [stdout] 138 | let user = match client.query_opt(&statement, &[&path_uuid]).await? { [INFO] [stdout] | ________________- [INFO] [stdout] 139 | | Some(row) => SessionUser { [INFO] [stdout] | |______________________- [INFO] [stdout] 140 | || id: row.get(0), [INFO] [stdout] 141 | || email: row.get(1), [INFO] [stdout] 142 | || }, [INFO] [stdout] | ||_________- this is found to be of type `auth::model::SessionUser` [INFO] [stdout] 143 | | None => Err(AuthError::BadId), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^ expected struct `auth::model::SessionUser`, found enum `std::result::Result` [INFO] [stdout] 144 | | }; [INFO] [stdout] | |_____- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected type `auth::model::SessionUser` [INFO] [stdout] found enum `std::result::Result<_, AuthError>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/auth/password_handler.rs:151:28 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn add_user(client: &Client, path_id: &str, password: &str) -> SessionUser { [INFO] [stdout] | ______________________________________________________________________________________- [INFO] [stdout] 130 | | let path_uuid = Uuid::parse_str(path_id); [INFO] [stdout] 131 | | [INFO] [stdout] 132 | | let statement = client [INFO] [stdout] ... | [INFO] [stdout] 151 | | let password: String = hash_password(password)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `auth::model::SessionUser` [INFO] [stdout] ... | [INFO] [stdout] 181 | | } [INFO] [stdout] 182 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `auth::model::SessionUser` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/auth/password_handler.rs:156:16 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn add_user(client: &Client, path_id: &str, password: &str) -> SessionUser { [INFO] [stdout] | ______________________________________________________________________________________- [INFO] [stdout] 130 | | let path_uuid = Uuid::parse_str(path_id); [INFO] [stdout] 131 | | [INFO] [stdout] 132 | | let statement = client [INFO] [stdout] ... | [INFO] [stdout] 156 | | let rows = client [INFO] [stdout] | |________________^ [INFO] [stdout] 157 | || .query(&insert_statement, &[&email, &password]) [INFO] [stdout] 158 | || .await?; [INFO] [stdout] | ||_______________^ cannot use the `?` operator in an async function that returns `auth::model::SessionUser` [INFO] [stdout] ... | [INFO] [stdout] 181 | | } [INFO] [stdout] 182 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `auth::model::SessionUser` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_row_ref` found for struct `auth::model::SessionUser` in the current scope [INFO] [stdout] --> src/auth/password_handler.rs:173:33 [INFO] [stdout] | [INFO] [stdout] 173 | .map(|row| SessionUser::from_row_ref(row).unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `auth::model::SessionUser` [INFO] [stdout] | [INFO] [stdout] ::: src/auth/model.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct SessionUser { [INFO] [stdout] | ---------------------- function or associated item `from_row_ref` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_row_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromTokioPostgresRow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/auth/password_handler.rs:143:17 [INFO] [stdout] | [INFO] [stdout] 138 | let user = match client.query_opt(&statement, &[&path_uuid]).await? { [INFO] [stdout] | ________________- [INFO] [stdout] 139 | | Some(row) => SessionUser { [INFO] [stdout] | |______________________- [INFO] [stdout] 140 | || id: row.get(0), [INFO] [stdout] 141 | || email: row.get(1), [INFO] [stdout] 142 | || }, [INFO] [stdout] | ||_________- this is found to be of type `auth::model::SessionUser` [INFO] [stdout] 143 | | None => Err(AuthError::BadId), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^ expected struct `auth::model::SessionUser`, found enum `std::result::Result` [INFO] [stdout] 144 | | }; [INFO] [stdout] | |_____- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected type `auth::model::SessionUser` [INFO] [stdout] found enum `std::result::Result<_, AuthError>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/auth/password_handler.rs:151:28 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn add_user(client: &Client, path_id: &str, password: &str) -> SessionUser { [INFO] [stdout] | ______________________________________________________________________________________- [INFO] [stdout] 130 | | let path_uuid = Uuid::parse_str(path_id); [INFO] [stdout] 131 | | [INFO] [stdout] 132 | | let statement = client [INFO] [stdout] ... | [INFO] [stdout] 151 | | let password: String = hash_password(password)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `auth::model::SessionUser` [INFO] [stdout] ... | [INFO] [stdout] 181 | | } [INFO] [stdout] 182 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `auth::model::SessionUser` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/auth/password_handler.rs:156:16 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn add_user(client: &Client, path_id: &str, password: &str) -> SessionUser { [INFO] [stdout] | ______________________________________________________________________________________- [INFO] [stdout] 130 | | let path_uuid = Uuid::parse_str(path_id); [INFO] [stdout] 131 | | [INFO] [stdout] 132 | | let statement = client [INFO] [stdout] ... | [INFO] [stdout] 156 | | let rows = client [INFO] [stdout] | |________________^ [INFO] [stdout] 157 | || .query(&insert_statement, &[&email, &password]) [INFO] [stdout] 158 | || .await?; [INFO] [stdout] | ||_______________^ cannot use the `?` operator in an async function that returns `auth::model::SessionUser` [INFO] [stdout] ... | [INFO] [stdout] 181 | | } [INFO] [stdout] 182 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `auth::model::SessionUser` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_row_ref` found for struct `auth::model::SessionUser` in the current scope [INFO] [stdout] --> src/auth/password_handler.rs:173:33 [INFO] [stdout] | [INFO] [stdout] 173 | .map(|row| SessionUser::from_row_ref(row).unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `auth::model::SessionUser` [INFO] [stdout] | [INFO] [stdout] ::: src/auth/model.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct SessionUser { [INFO] [stdout] | ---------------------- function or associated item `from_row_ref` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_row_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromTokioPostgresRow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/auth/password_handler.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 178 | / match result { [INFO] [stdout] 179 | | Ok(content) => content, [INFO] [stdout] | | ------- this is found to be of type `auth::model::SessionUser` [INFO] [stdout] 180 | | Err(err) => AuthError::BadId, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ expected struct `auth::model::SessionUser`, found enum `AuthError` [INFO] [stdout] 181 | | } [INFO] [stdout] | |_____- `match` arms have incompatible types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/auth/password_handler.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 178 | / match result { [INFO] [stdout] 179 | | Ok(content) => content, [INFO] [stdout] | | ------- this is found to be of type `auth::model::SessionUser` [INFO] [stdout] 180 | | Err(err) => AuthError::BadId, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ expected struct `auth::model::SessionUser`, found enum `AuthError` [INFO] [stdout] 181 | | } [INFO] [stdout] | |_____- `match` arms have incompatible types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_pg_mapper::FromTokioPostgresRow` [INFO] [stdout] --> src/auth/password_handler.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_pg_mapper::FromTokioPostgresRow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `app` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `tokio_pg_mapper::FromTokioPostgresRow` [INFO] [stdout] --> src/auth/password_handler.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_pg_mapper::FromTokioPostgresRow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "e9ee7306cfe070cf20b8b1e435721c287119a2a99c3bd4d7118866fb4fc59a63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9ee7306cfe070cf20b8b1e435721c287119a2a99c3bd4d7118866fb4fc59a63", kill_on_drop: false }` [INFO] [stdout] e9ee7306cfe070cf20b8b1e435721c287119a2a99c3bd4d7118866fb4fc59a63