[INFO] cloning repository https://github.com/internet-of-plants/server [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/internet-of-plants/server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finternet-of-plants%2Fserver"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finternet-of-plants%2Fserver'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] ad2431ff9b905fe215cf5bf30439f47cc66a0d8a [INFO] checking internet-of-plants/server against try#ea663bba38739867a4b75ac820991b4f5d093c3b for pr-62262-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finternet-of-plants%2Fserver" "/workspace/builds/worker-4/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/internet-of-plants/server on toolchain ea663bba38739867a4b75ac820991b4f5d093c3b [INFO] running `"/workspace/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/internet-of-plants/server [INFO] removed path dependency codegen from git repo https://github.com/internet-of-plants/server [INFO] finished tweaking git repo https://github.com/internet-of-plants/server [INFO] tweaked toml for git repo https://github.com/internet-of-plants/server written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/internet-of-plants/server already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: dependency (codegen) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-4/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/workspace/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: dependency (codegen) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] e888313cc715e7c4a7e1d2463ef7c71fc45f010ad5db2c1ef7af879791fd2569 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "e888313cc715e7c4a7e1d2463ef7c71fc45f010ad5db2c1ef7af879791fd2569"` [INFO] [stderr] warning: dependency (codegen) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling v_htmlescape v0.4.5 [INFO] [stderr] Compiling if_chain v0.1.3 [INFO] [stderr] Compiling ring v0.13.5 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Checking tower-service v0.1.0 [INFO] [stderr] Compiling actix-web v0.7.19 [INFO] [stderr] Checking slugify v0.1.0 [INFO] [stderr] Checking socket2 v0.3.11 [INFO] [stderr] Checking hostname v0.1.5 [INFO] [stderr] Checking rand_chacha v0.1.1 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Checking argon2rs v0.2.5 [INFO] [stderr] Checking flate2 v1.0.12 [INFO] [stderr] Checking codegen v0.1.1 [INFO] [stderr] Checking string v0.2.1 [INFO] [stderr] Checking http v0.1.19 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking env_logger v0.5.13 [INFO] [stderr] Checking resolv-conf v0.6.2 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Checking tokio-reactor v0.1.10 [INFO] [stderr] Checking scheduled-thread-pool v0.2.2 [INFO] [stderr] Checking tokio-fs v0.1.6 [INFO] [stderr] Checking r2d2 v0.8.6 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Checking tokio-udp v0.1.5 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking tokio-uds v0.2.5 [INFO] [stderr] Checking tokio-signal v0.2.7 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Checking parking_lot_core v0.4.0 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking h2 v0.1.26 [INFO] [stderr] Checking webpki v0.18.1 [INFO] [stderr] Checking sct v0.4.0 [INFO] [stderr] Checking cookie v0.11.1 [INFO] [stderr] Checking rustls v0.14.0 [INFO] [stderr] Checking webpki-roots v0.15.0 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Compiling synstructure v0.12.1 [INFO] [stderr] Checking tokio-rustls v0.8.1 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Compiling v_escape_derive v0.5.6 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling actix_derive v0.3.2 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling derive_more v0.13.0 [INFO] [stderr] Checking v_escape v0.7.4 [INFO] [stderr] Checking failure v0.1.6 [INFO] [stderr] Checking trust-dns-proto v0.6.3 [INFO] [stderr] Checking trust-dns-proto v0.5.0 [INFO] [stderr] Checking image v0.19.0 [INFO] [stderr] Checking trust-dns-resolver v0.10.3 [INFO] [stderr] Checking diesel v1.4.3 [INFO] [stderr] Checking actix v0.7.9 [INFO] [stderr] Checking serde v1.0.101 [INFO] [stderr] Checking actix-net v0.2.6 [INFO] [stderr] Checking serde_json v1.0.41 [INFO] [stderr] Checking serde_urlencoded v0.5.5 [INFO] [stderr] Checking validator v0.8.0 [INFO] [stderr] Compiling validator_derive v0.8.0 [INFO] [stderr] Checking server_iop v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] error: expected one of `.`, `::`, `;`, `?`, or an operator, found `let` [INFO] [stderr] --> src/lib/tests.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 18 | let user_id = insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id [INFO] [stderr] | - help: a semicolon may be missing here [INFO] [stderr] 19 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::controller` [INFO] [stderr] --> src/controllers/cultivation.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use codegen::controller; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `controller` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::controller` [INFO] [stderr] --> src/controllers/event.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use codegen::controller; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `controller` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use codegen::controller; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `controller` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::controller` [INFO] [stderr] --> src/controllers/user.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use codegen::controller; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `controller` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::handler` [INFO] [stderr] --> src/db/cultivation.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use codegen::handler; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `handler` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::handler` [INFO] [stderr] --> src/db/event.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use codegen::handler; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `handler` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::handler` [INFO] [stderr] --> src/db/taxonomy.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use codegen::handler; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `handler` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::handler` [INFO] [stderr] --> src/db/user.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use codegen::handler; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `handler` in the root [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/cultivation.rs:8:3 [INFO] [stderr] | [INFO] [stderr] 8 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/cultivation.rs:14:3 [INFO] [stderr] | [INFO] [stderr] 14 | #[controller(log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/cultivation.rs:20:3 [INFO] [stderr] | [INFO] [stderr] 20 | #[controller(json, validate, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/event.rs:8:3 [INFO] [stderr] | [INFO] [stderr] 8 | #[controller(log, path, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/event.rs:14:3 [INFO] [stderr] | [INFO] [stderr] 14 | #[controller(log, json, validate, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | view_controller!(find, super::FindKingdomBySlug); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:23:11 [INFO] [stderr] | [INFO] [stderr] 23 | #[controller(log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | view_controller!(index, super::IndexKingdom); [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | view_controller!(find, super::FindPhylumBySlug); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 39 | view_controller!(index_slug, super::IndexPhylum); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | view_controller!(find, super::FindClassBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | view_controller!(index_slug, super::IndexClass); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 50 | view_controller!(find, super::FindOrderBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | view_controller!(index_slug, super::IndexOrder); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | view_controller!(find, super::FindFamilyBySlug); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | view_controller!(index_slug, super::IndexFamily); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | view_controller!(find, super::FindGenusBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | view_controller!(index_slug, super::IndexGenus); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 68 | view_controller!(find, super::FindSpeciesBySlug); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 69 | view_controller!(index_slug, super::IndexSpecies); [INFO] [stderr] | -------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/user.rs:11:3 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(validate, log, json, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/user.rs:27:3 [INFO] [stderr] | [INFO] [stderr] 27 | #[controller(log, json, validate, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/user.rs:39:3 [INFO] [stderr] | [INFO] [stderr] 39 | #[controller(log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/cultivation.rs:7:3 [INFO] [stderr] | [INFO] [stderr] 7 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/cultivation.rs:29:3 [INFO] [stderr] | [INFO] [stderr] 29 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/cultivation.rs:48:3 [INFO] [stderr] | [INFO] [stderr] 48 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/event.rs:7:3 [INFO] [stderr] | [INFO] [stderr] 7 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/event.rs:31:3 [INFO] [stderr] | [INFO] [stderr] 31 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:9:3 [INFO] [stderr] | [INFO] [stderr] 9 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:19:3 [INFO] [stderr] | [INFO] [stderr] 19 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:28:3 [INFO] [stderr] | [INFO] [stderr] 28 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:39:3 [INFO] [stderr] | [INFO] [stderr] 39 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:50:3 [INFO] [stderr] | [INFO] [stderr] 50 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:62:3 [INFO] [stderr] | [INFO] [stderr] 62 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:74:3 [INFO] [stderr] | [INFO] [stderr] 74 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:87:3 [INFO] [stderr] | [INFO] [stderr] 87 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:100:3 [INFO] [stderr] | [INFO] [stderr] 100 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:114:3 [INFO] [stderr] | [INFO] [stderr] 114 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:128:3 [INFO] [stderr] | [INFO] [stderr] 128 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:143:3 [INFO] [stderr] | [INFO] [stderr] 143 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:158:3 [INFO] [stderr] | [INFO] [stderr] 158 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:174:3 [INFO] [stderr] | [INFO] [stderr] 174 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/user.rs:8:3 [INFO] [stderr] | [INFO] [stderr] 8 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/user.rs:27:3 [INFO] [stderr] | [INFO] [stderr] 27 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindUser` in this scope [INFO] [stderr] --> src/controllers/user.rs:15:30 [INFO] [stderr] | [INFO] [stderr] 15 | send(req.state().db, FindUser(user_id(&req)?)).response() [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib/types.rs:27:27 [INFO] [stderr] | [INFO] [stderr] 27 | pub type HttpFuture = Box>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] error: no rules expected the token `,` [INFO] [stderr] --> src/db/user.rs:163:128 [INFO] [stderr] | [INFO] [stderr] 163 | assert_eq!(&super::authenticate(db, AuthenticateUser("username".to_owned(), "password".to_owned())).unwrap().username, ,"username"); [INFO] [stderr] | ^ no rules expected this token in macro call [INFO] [stderr] [INFO] [stderr] error[E0255]: the name `POOL` is defined multiple times [INFO] [stderr] --> src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{prelude::*, lib::tests::POOL, router::router, lib::schema::*}; [INFO] [stderr] | ---------------- previous import of the type `POOL` here [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_^ `POOL` redefined here [INFO] [stderr] | [INFO] [stderr] = note: `POOL` must be defined only once in the type namespace of this module [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] help: you can use `as` to change the binding name of the import [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{prelude::*, lib::tests::POOL as OtherPOOL, router::router, lib::schema::*}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0255]: the name `POOL` is defined multiple times [INFO] [stderr] --> src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{prelude::*, lib::tests::POOL, router::router, lib::schema::*}; [INFO] [stderr] | ---------------- previous import of the value `POOL` here [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_^ `POOL` redefined here [INFO] [stderr] | [INFO] [stderr] = note: `POOL` must be defined only once in the value namespace of this module [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] help: you can use `as` to change the binding name of the import [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{prelude::*, lib::tests::POOL as OtherPOOL, router::router, lib::schema::*}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `diesel::insert` [INFO] [stderr] --> src/lib/tests.rs:12:14 [INFO] [stderr] | [INFO] [stderr] 12 | use diesel::{insert, prelude::*}; [INFO] [stderr] | ^^^^^^ no `insert` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::lib::db::test_db` [INFO] [stderr] --> src/lib/tests.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 90 | use crate::lib::db::test_db; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ no `test_db` in `lib::db` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::lib::db::clear` [INFO] [stderr] --> src/lib/tests.rs:129:39 [INFO] [stderr] | [INFO] [stderr] 129 | use crate::{actors::db::Database, lib::db::clear, tests::DB, tests::POOL}; [INFO] [stderr] | ^^^^^^^^^^^^^^ no `clear` in `lib::db` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::controller` [INFO] [stderr] --> src/controllers/cultivation.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use codegen::controller; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `controller` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::lib::router` [INFO] [stderr] --> src/controllers/cultivation.rs:30:22 [INFO] [stderr] | [INFO] [stderr] 30 | tests::POOL, router::router, tests::authenticate_tester, tests::new_species, tests::set_cookie, tests::extract_header, tests::new_server, [INFO] [stderr] | ^^^^^^ could not find `router` in `lib` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::controller` [INFO] [stderr] --> src/controllers/event.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use codegen::controller; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `controller` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use codegen::controller; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `controller` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::controller` [INFO] [stderr] --> src/controllers/user.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use codegen::controller; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `controller` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::handler` [INFO] [stderr] --> src/db/cultivation.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use codegen::handler; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `handler` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::lib::utils::hash_password` [INFO] [stderr] --> src/db/cultivation.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | use crate::lib::{tests::lock_db, schema::*, tests::POOL, utils::hash_password, tests::new_species}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ no `hash_password` in `lib::utils` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::handler` [INFO] [stderr] --> src/db/event.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use codegen::handler; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `handler` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::lib::utils::hash_password` [INFO] [stderr] --> src/db/event.rs:40:62 [INFO] [stderr] | [INFO] [stderr] 40 | use crate::lib::{tests::lock_db, schema::*, tests::POOL, utils::hash_password}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ no `hash_password` in `lib::utils` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::handler` [INFO] [stderr] --> src/db/taxonomy.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use codegen::handler; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `handler` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `codegen::handler` [INFO] [stderr] --> src/db/user.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use codegen::handler; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `handler` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `crate::actors::db`, `crate::tests`, `crate::tests` [INFO] [stderr] --> src/lib/tests.rs:129:25 [INFO] [stderr] | [INFO] [stderr] 129 | use crate::{actors::db::Database, lib::db::clear, tests::DB, tests::POOL}; [INFO] [stderr] | ^^ ^^^^^ ^^^^^ unresolved import [INFO] [stderr] | | | [INFO] [stderr] | | unresolved import [INFO] [stderr] | could not find `db` in `actors` [INFO] [stderr] help: a similar path exists [INFO] [stderr] | [INFO] [stderr] 129 | use crate::{actors::db::Database, lib::db::clear, crate::lib::tests::DB, tests::POOL}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: a similar path exists [INFO] [stderr] | [INFO] [stderr] 129 | use crate::{actors::db::Database, lib::db::clear, tests::DB, crate::lib::tests::POOL}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `lib` [INFO] [stderr] --> src/controllers/event.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | use lib::{ [INFO] [stderr] | ^^^ use of undeclared type or module `lib` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `lib` [INFO] [stderr] --> src/controllers/user.rs:49:9 [INFO] [stderr] | [INFO] [stderr] 49 | use lib::{db::test_pool, router::router, tests::extract_cookie, tests::set_cookie, tests::new_server, tests::new_species}; [INFO] [stderr] | ^^^ use of undeclared type or module `lib` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `config` [INFO] [stderr] --> src/lib/utils.rs:132:9 [INFO] [stderr] | [INFO] [stderr] 132 | use config::{IMAGE_PATH, THUMB_PATH}; [INFO] [stderr] | ^^^^^^ help: a similar path exists: `crate::config` [INFO] [stderr] | [INFO] [stderr] = note: `use` statements changed in Rust 2018; read more at [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `controllers` [INFO] [stderr] --> src/controllers/event.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | use controllers::user::tests::signup; [INFO] [stderr] | ^^^^^^^^^^^ use of undeclared type or module `controllers` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `models`, `controllers::user::tests::signup`, `lib::db::test_pool`, `lib::router::router`, `lib::tests::authenticate_tester`, `lib::tests::new_cultivation`, `lib::tests::new_server` [INFO] [stderr] --> src/controllers/user.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | use models::{SigninForm, SignupForm}; [INFO] [stderr] | ^^^^^^ help: a similar path exists: `crate::models` [INFO] [stderr] | [INFO] [stderr] ::: src/controllers/event.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | use controllers::user::tests::signup; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 29 | db::test_pool, router::router, tests::authenticate_tester, tests::new_cultivation, types::*, tests::new_server [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `models` [INFO] [stderr] --> src/controllers/event.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | use models::{EventForm, EventView}; [INFO] [stderr] | ^^^^^^ help: a similar path exists: `crate::models` [INFO] [stderr] | [INFO] [stderr] = note: `use` statements changed in Rust 2018; read more at [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/cultivation.rs:8:3 [INFO] [stderr] | [INFO] [stderr] 8 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/cultivation.rs:14:3 [INFO] [stderr] | [INFO] [stderr] 14 | #[controller(log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/cultivation.rs:20:3 [INFO] [stderr] | [INFO] [stderr] 20 | #[controller(json, validate, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/event.rs:8:3 [INFO] [stderr] | [INFO] [stderr] 8 | #[controller(log, path, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/event.rs:14:3 [INFO] [stderr] | [INFO] [stderr] 14 | #[controller(log, json, validate, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot find macro `opt_cookie` in this scope [INFO] [stderr] --> src/controllers/event.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | opt_cookie!(req, cookie); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `header` in this scope [INFO] [stderr] --> src/controllers/event.rs:49:24 [INFO] [stderr] | [INFO] [stderr] 49 | assert_eq!(header!(r, "content-length"), size); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `header` in this scope [INFO] [stderr] --> src/controllers/event.rs:60:24 [INFO] [stderr] | [INFO] [stderr] 60 | assert_eq!(header!(r, "content-length"), "0"); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | view_controller!(find, super::FindKingdomBySlug); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:23:11 [INFO] [stderr] | [INFO] [stderr] 23 | #[controller(log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | view_controller!(index, super::IndexKingdom); [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | view_controller!(find, super::FindPhylumBySlug); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 39 | view_controller!(index_slug, super::IndexPhylum); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | view_controller!(find, super::FindClassBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | view_controller!(index_slug, super::IndexClass); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 50 | view_controller!(find, super::FindOrderBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | view_controller!(index_slug, super::IndexOrder); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | view_controller!(find, super::FindFamilyBySlug); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | view_controller!(index_slug, super::IndexFamily); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | view_controller!(find, super::FindGenusBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | view_controller!(index_slug, super::IndexGenus); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 68 | view_controller!(find, super::FindSpeciesBySlug); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/taxonomy.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | #[controller(path, log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 69 | view_controller!(index_slug, super::IndexSpecies); [INFO] [stderr] | -------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/user.rs:11:3 [INFO] [stderr] | [INFO] [stderr] 11 | #[controller(validate, log, json, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/user.rs:27:3 [INFO] [stderr] | [INFO] [stderr] 27 | #[controller(log, json, validate, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `controller` [INFO] [stderr] --> src/controllers/user.rs:39:3 [INFO] [stderr] | [INFO] [stderr] 39 | #[controller(log, inline)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/cultivation.rs:7:3 [INFO] [stderr] | [INFO] [stderr] 7 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/cultivation.rs:29:3 [INFO] [stderr] | [INFO] [stderr] 29 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/cultivation.rs:48:3 [INFO] [stderr] | [INFO] [stderr] 48 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/event.rs:7:3 [INFO] [stderr] | [INFO] [stderr] 7 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/event.rs:31:3 [INFO] [stderr] | [INFO] [stderr] 31 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:9:3 [INFO] [stderr] | [INFO] [stderr] 9 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:19:3 [INFO] [stderr] | [INFO] [stderr] 19 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:28:3 [INFO] [stderr] | [INFO] [stderr] 28 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:39:3 [INFO] [stderr] | [INFO] [stderr] 39 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:50:3 [INFO] [stderr] | [INFO] [stderr] 50 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:62:3 [INFO] [stderr] | [INFO] [stderr] 62 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:74:3 [INFO] [stderr] | [INFO] [stderr] 74 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:87:3 [INFO] [stderr] | [INFO] [stderr] 87 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:100:3 [INFO] [stderr] | [INFO] [stderr] 100 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:114:3 [INFO] [stderr] | [INFO] [stderr] 114 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:128:3 [INFO] [stderr] | [INFO] [stderr] 128 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:143:3 [INFO] [stderr] | [INFO] [stderr] 143 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:158:3 [INFO] [stderr] | [INFO] [stderr] 158 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/taxonomy.rs:174:3 [INFO] [stderr] | [INFO] [stderr] 174 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/user.rs:8:3 [INFO] [stderr] | [INFO] [stderr] 8 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the attribute macro `handler` [INFO] [stderr] --> src/db/user.rs:27:3 [INFO] [stderr] | [INFO] [stderr] 27 | #[handler] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `env` [INFO] [stderr] --> src/lib/db.rs:25:15 [INFO] [stderr] | [INFO] [stderr] 25 | let url = env::var("DATABASE_TEST_URL") [INFO] [stderr] | ^^^ use of undeclared type or module `env` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `kingdom` [INFO] [stderr] --> src/lib/tests.rs:19:25 [INFO] [stderr] | [INFO] [stderr] 19 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `kingdom` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cultivations` [INFO] [stderr] --> src/lib/tests.rs:26:17 [INFO] [stderr] | [INFO] [stderr] 26 | insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap() [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `cultivations` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `kingdom` [INFO] [stderr] --> src/lib/tests.rs:33:25 [INFO] [stderr] | [INFO] [stderr] 33 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `kingdom` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `config` in `{{root}}` [INFO] [stderr] --> src/lib/utils.rs:138:23 [INFO] [stderr] | [INFO] [stderr] 138 | let image = ::config::TEST_IMAGE; [INFO] [stderr] | ^^^^^^ could not find `config` in `{{root}}` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `config` in `{{root}}` [INFO] [stderr] --> src/lib/utils.rs:157:47 [INFO] [stderr] | [INFO] [stderr] 157 | let image = super::decode_b64_image(::config::TEST_IMAGE).unwrap(); [INFO] [stderr] | ^^^^^^ could not find `config` in `{{root}}` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cultivations` [INFO] [stderr] --> src/db/cultivation.rs:74:20 [INFO] [stderr] | [INFO] [stderr] 74 | assert_eq!(cultivations::table.find(cultivation.id).select(cultivations::identifier).first::(&POOL.get().unwrap()), Some("identifier".to_owned())); [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `cultivations` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cultivations` [INFO] [stderr] --> src/db/cultivation.rs:74:68 [INFO] [stderr] | [INFO] [stderr] 74 | assert_eq!(cultivations::table.find(cultivation.id).select(cultivations::identifier).first::(&POOL.get().unwrap()), Some("identifier".to_owned())); [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `cultivations` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cultivations` [INFO] [stderr] --> src/db/cultivation.rs:88:17 [INFO] [stderr] | [INFO] [stderr] 88 | assert!(cultivations::table.filter(cultivation::user_id.eq(user_id)).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `cultivations` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cultivations` [INFO] [stderr] --> src/db/cultivation.rs:101:17 [INFO] [stderr] | [INFO] [stderr] 101 | assert!(cultivations::table.filter(cultivation::user_id.eq(user_id)).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `cultivations` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cultivations` [INFO] [stderr] --> src/db/cultivation.rs:114:17 [INFO] [stderr] | [INFO] [stderr] 114 | assert!(cultivations::table.filter(cultivation::identifier.eq("identifier")).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `cultivations` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cultivations` [INFO] [stderr] --> src/db/cultivation.rs:122:52 [INFO] [stderr] | [INFO] [stderr] 122 | let cultivation: Cultivation = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `cultivations` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cultivations` [INFO] [stderr] --> src/db/cultivation.rs:139:52 [INFO] [stderr] | [INFO] [stderr] 139 | let cultivation: Cultivation = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `cultivations` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Id` [INFO] [stderr] --> src/db/cultivation.rs:141:65 [INFO] [stderr] | [INFO] [stderr] 141 | assert!(super::find(db, FindCultivation(cultivation.id, Id::min_value())).is_err()); [INFO] [stderr] | ^^ use of undeclared type or module `Id` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cultivations` [INFO] [stderr] --> src/db/cultivation.rs:149:29 [INFO] [stderr] | [INFO] [stderr] 149 | let _ = insert_into(cultivations::table).values(NewCultivation { user_id, species_slu, nickname: None, identifier: "identifier" }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `cultivations` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `kingdom` [INFO] [stderr] --> src/db/event.rs:43:29 [INFO] [stderr] | [INFO] [stderr] 43 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `kingdom` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `cultivations` [INFO] [stderr] --> src/db/event.rs:53:29 [INFO] [stderr] | [INFO] [stderr] 53 | let _ = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug: "species".to_owned(), nickname: None, identifier: "identifier".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `cultivations` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((models::cultivation::NewCultivationForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::cultivation::post}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:20:61 [INFO] [stderr] | [INFO] [stderr] 20 | .resource("/cultivation", |r| r.post().with(cultivation::post)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((models::cultivation::NewCultivationForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::cultivation::post}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((i64, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::cultivation::find}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:21:65 [INFO] [stderr] | [INFO] [stderr] 21 | .resource("/cultivation/{id}", |r| r.get().with(cultivation::find)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((i64, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::cultivation::find}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((i64, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::event::index}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:22:72 [INFO] [stderr] | [INFO] [stderr] 22 | .resource("/cultivation/{id}/events", |r| r.get().with(event::index)) [INFO] [stderr] | ^^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((i64, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::event::index}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((models::event::NewEventForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::event::post}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:23:55 [INFO] [stderr] | [INFO] [stderr] 23 | .resource("/event", |r| r.post().with(event::post)) [INFO] [stderr] | ^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((models::event::NewEventForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::event::post}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((models::user::SignupForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::user::signup}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:24:56 [INFO] [stderr] | [INFO] [stderr] 24 | .resource("/signup", |r| r.post().with(user::signup)) [INFO] [stderr] | ^^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((models::user::SignupForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::user::signup}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((models::user::SigninForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::user::signin}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:25:56 [INFO] [stderr] | [INFO] [stderr] 25 | .resource("/signin", |r| r.post().with(user::signin)) [INFO] [stderr] | ^^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((models::user::SigninForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::user::signin}` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:18:19 [INFO] [stderr] | [INFO] [stderr] 18 | let user_id = insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in this scope [INFO] [stderr] --> src/lib/tests.rs:18:149 [INFO] [stderr] | [INFO] [stderr] 18 | let user_id = insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:20:13 [INFO] [stderr] | [INFO] [stderr] 20 | let _ = insert_into(phyla::table).values(Phyla { id, kingdom_slug: "kingdom".to_owned(), name: "Phylum".to_owned(), slug: "phylum".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Phyla` in this scope [INFO] [stderr] --> src/lib/tests.rs:20:46 [INFO] [stderr] | [INFO] [stderr] 20 | let _ = insert_into(phyla::table).values(Phyla { id, kingdom_slug: "kingdom".to_owned(), name: "Phylum".to_owned(), slug: "phylum".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | let _ = insert_into(classes::table).values(Class { id, phylum_slug: "phylum".to_owned(), name: "Class".to_owned(), slug: "class".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | let _ = insert_into(orders::table).values(Order { id, class_slug: "class".to_owned(), name: "Order".to_owned(), slug: "order".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:23:13 [INFO] [stderr] | [INFO] [stderr] 23 | let _ = insert_into(families::table).values(Family { id, class_slug: "class".to_owned(), name: "Family".to_owned(), slug: "family".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | let _ = insert_into(genera::table).values(Genus { id, family_slug: "family".to_owned(), name: "Genus".to_owned(), slug: "genus".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:25:24 [INFO] [stderr] | [INFO] [stderr] 25 | let species_slug = insert_into(species::table).values(Species { id, genus_slug: "genus".to_owned(), name: "Species".to_owned(), slug: "species".to_owned() }).get_result(&POOL.get().unwrap()).unwrap().slug; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap() [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:33:13 [INFO] [stderr] | [INFO] [stderr] 33 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | let _ = insert_into(phyla::table).values(Phyla { id, kingdom_slug: "kingdom".to_owned(), name: "Phylum".to_owned(), slug: "phylum".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Phyla` in this scope [INFO] [stderr] --> src/lib/tests.rs:34:46 [INFO] [stderr] | [INFO] [stderr] 34 | let _ = insert_into(phyla::table).values(Phyla { id, kingdom_slug: "kingdom".to_owned(), name: "Phylum".to_owned(), slug: "phylum".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:35:13 [INFO] [stderr] | [INFO] [stderr] 35 | let _ = insert_into(classes::table).values(Class { id, phylum_slug: "phylum".to_owned(), name: "Class".to_owned(), slug: "class".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:36:13 [INFO] [stderr] | [INFO] [stderr] 36 | let _ = insert_into(orders::table).values(Order { id, class_slug: "class".to_owned(), name: "Order".to_owned(), slug: "order".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:37:13 [INFO] [stderr] | [INFO] [stderr] 37 | let _ = insert_into(families::table).values(Family { id, class_slug: "class".to_owned(), name: "Family".to_owned(), slug: "family".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:38:13 [INFO] [stderr] | [INFO] [stderr] 38 | let _ = insert_into(genera::table).values(Genus { id, family_slug: "family".to_owned(), name: "Genus".to_owned(), slug: "genus".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stderr] --> src/lib/tests.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | insert_into(species::table).values(Species { id, genus_slug: "genus".to_owned(), name: "Species".to_owned(), slug: "species".to_owned() }).get_result(&POOL.get().unwrap()).unwrap().species_slug [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::dsl::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::insert_into; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::query_builder::functions::insert_into; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Pool` in this scope [INFO] [stderr] --> src/lib/tests.rs:100:26 [INFO] [stderr] | [INFO] [stderr] 100 | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] | ^^^^ [INFO] [stderr] help: a builtin type with a similar name exists [INFO] [stderr] | [INFO] [stderr] 100 | pub static ref POOL: bool = test_pool(); [INFO] [stderr] | ^^^^ [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use crate::lib::db::Pool; [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::r2d2::Pool; [INFO] [stderr] | [INFO] [stderr] 3 | use r2d2::Pool; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `test_pool` in this scope [INFO] [stderr] --> src/lib/tests.rs:100:33 [INFO] [stderr] | [INFO] [stderr] 100 | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use crate::lib::db::test_pool; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Database` in this scope [INFO] [stderr] --> src/lib/tests.rs:105:52 [INFO] [stderr] | [INFO] [stderr] 105 | pub(crate) static ref DB: Mutex<&'static Mutex> = [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use crate::db::Database; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `Database` in this scope [INFO] [stderr] --> src/lib/tests.rs:106:39 [INFO] [stderr] | [INFO] [stderr] 106 | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use crate::db::Database; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Database` in this scope [INFO] [stderr] --> src/lib/tests.rs:128:41 [INFO] [stderr] | [INFO] [stderr] 128 | pub fn lock_db() -> MutexGuard<'static, Database> { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use crate::db::Database; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `CultivationForm` in this scope [INFO] [stderr] --> src/controllers/cultivation.rs:89:20 [INFO] [stderr] | [INFO] [stderr] 89 | let body = CultivationForm { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `NewCultivationForm` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Id` in this scope [INFO] [stderr] --> src/controllers/event.rs:36:25 [INFO] [stderr] | [INFO] [stderr] 36 | cultivation_id: Id, [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::types::Id; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/event.rs:66:23 [INFO] [stderr] | [INFO] [stderr] 66 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/event.rs:72:23 [INFO] [stderr] | [INFO] [stderr] 72 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `authenticate_tester` in this scope [INFO] [stderr] --> src/controllers/event.rs:73:22 [INFO] [stderr] | [INFO] [stderr] 73 | let cookie = authenticate_tester(&mut srv); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::authenticate_tester; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/event.rs:79:23 [INFO] [stderr] | [INFO] [stderr] 79 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `authenticate_tester` in this scope [INFO] [stderr] --> src/controllers/event.rs:80:22 [INFO] [stderr] | [INFO] [stderr] 80 | let cookie = authenticate_tester(&mut srv); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::authenticate_tester; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_cultivation` in this scope [INFO] [stderr] --> src/controllers/event.rs:81:18 [INFO] [stderr] | [INFO] [stderr] 81 | let id = new_cultivation().id; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::db::event::tests::new_cultivation; [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_cultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `signup` in this scope [INFO] [stderr] --> src/controllers/event.rs:83:22 [INFO] [stderr] | [INFO] [stderr] 83 | let cookie = signup( [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::controllers::user::signup; [INFO] [stderr] | [INFO] [stderr] 21 | use crate::controllers::user::tests::signup; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/event.rs:95:23 [INFO] [stderr] | [INFO] [stderr] 95 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `authenticate_tester` in this scope [INFO] [stderr] --> src/controllers/event.rs:96:22 [INFO] [stderr] | [INFO] [stderr] 96 | let cookie = authenticate_tester(&mut srv); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::authenticate_tester; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_cultivation` in this scope [INFO] [stderr] --> src/controllers/event.rs:97:18 [INFO] [stderr] | [INFO] [stderr] 97 | let id = new_cultivation().id; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::db::event::tests::new_cultivation; [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_cultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/event.rs:103:23 [INFO] [stderr] | [INFO] [stderr] 103 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `authenticate_tester` in this scope [INFO] [stderr] --> src/controllers/event.rs:104:22 [INFO] [stderr] | [INFO] [stderr] 104 | let cookie = authenticate_tester(&mut srv); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::authenticate_tester; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_cultivation` in this scope [INFO] [stderr] --> src/controllers/event.rs:105:27 [INFO] [stderr] | [INFO] [stderr] 105 | let cultivation = new_cultivation(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::db::event::tests::new_cultivation; [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_cultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/event.rs:116:23 [INFO] [stderr] | [INFO] [stderr] 116 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/event.rs:131:23 [INFO] [stderr] | [INFO] [stderr] 131 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_cultivation` in this scope [INFO] [stderr] --> src/controllers/event.rs:132:26 [INFO] [stderr] | [INFO] [stderr] 132 | let identifier = new_cultivation().identifier; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::db::event::tests::new_cultivation; [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_cultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/event.rs:160:23 [INFO] [stderr] | [INFO] [stderr] 160 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_cultivation` in this scope [INFO] [stderr] --> src/controllers/event.rs:161:26 [INFO] [stderr] | [INFO] [stderr] 161 | let identifier = new_cultivation().identifier; [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 21 | use crate::db::event::tests::new_cultivation; [INFO] [stderr] | [INFO] [stderr] 21 | use crate::lib::tests::new_cultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindUser` in this scope [INFO] [stderr] --> src/controllers/user.rs:15:30 [INFO] [stderr] | [INFO] [stderr] 15 | send(req.state().db, FindUser(user_id(&req)?)).response() [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `extract_header` in this scope [INFO] [stderr] --> src/controllers/user.rs:70:22 [INFO] [stderr] | [INFO] [stderr] 70 | assert!(&extract_header(r, "content-length") != "0"); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::extract_header; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `extract_header` in this scope [INFO] [stderr] --> src/controllers/user.rs:72:25 [INFO] [stderr] | [INFO] [stderr] 72 | assert_eq!(&extract_header(r, "content-length"), "0"); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::extract_header; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `extract_cookie` in this scope [INFO] [stderr] --> src/controllers/user.rs:75:9 [INFO] [stderr] | [INFO] [stderr] 75 | extract_cookie(&r) [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::extract_cookie; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `extract_header` in this scope [INFO] [stderr] --> src/controllers/user.rs:87:22 [INFO] [stderr] | [INFO] [stderr] 87 | assert!(&extract_header(r, "content-length") != "0"); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::extract_header; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `extract_header` in this scope [INFO] [stderr] --> src/controllers/user.rs:89:25 [INFO] [stderr] | [INFO] [stderr] 89 | assert_eq!(&extract_header(r, "content-length"), "0"); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::extract_header; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `set_cookie` in this scope [INFO] [stderr] --> src/controllers/user.rs:95:9 [INFO] [stderr] | [INFO] [stderr] 95 | set_cookie(req, cookie); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::set_cookie; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/user.rs:103:23 [INFO] [stderr] | [INFO] [stderr] 103 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/user.rs:115:23 [INFO] [stderr] | [INFO] [stderr] 115 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/user.rs:134:23 [INFO] [stderr] | [INFO] [stderr] 134 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/user.rs:153:23 [INFO] [stderr] | [INFO] [stderr] 153 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/user.rs:159:23 [INFO] [stderr] | [INFO] [stderr] 159 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/user.rs:165:23 [INFO] [stderr] | [INFO] [stderr] 165 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/user.rs:171:23 [INFO] [stderr] | [INFO] [stderr] 171 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/user.rs:185:23 [INFO] [stderr] | [INFO] [stderr] 185 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/user.rs:202:23 [INFO] [stderr] | [INFO] [stderr] 202 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_server` in this scope [INFO] [stderr] --> src/controllers/user.rs:215:23 [INFO] [stderr] | [INFO] [stderr] 215 | let mut srv = new_server(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 47 | use crate::lib::tests::new_server; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Id` in this scope [INFO] [stderr] --> src/db/cultivation.rs:59:22 [INFO] [stderr] | [INFO] [stderr] 59 | fn new_user() -> Id { [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::lib::types::Id; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/cultivation.rs:60:42 [INFO] [stderr] | [INFO] [stderr] 60 | insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in this scope [INFO] [stderr] --> src/db/cultivation.rs:60:139 [INFO] [stderr] | [INFO] [stderr] 60 | insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `User` in this scope [INFO] [stderr] --> src/db/cultivation.rs:60:190 [INFO] [stderr] | [INFO] [stderr] 60 | insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::user::User; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:68:42 [INFO] [stderr] | [INFO] [stderr] 68 | let cultivation = super::new(db, NewCultivation { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::NewCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:82:32 [INFO] [stderr] | [INFO] [stderr] 82 | assert!(super::new(db, NewCultivation { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::NewCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Cultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:88:86 [INFO] [stderr] | [INFO] [stderr] 88 | assert!(cultivations::table.filter(cultivation::user_id.eq(user_id)).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::Cultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:95:32 [INFO] [stderr] | [INFO] [stderr] 95 | assert!(super::new(db, NewCultivation { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::NewCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Cultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:101:86 [INFO] [stderr] | [INFO] [stderr] 101 | assert!(cultivations::table.filter(cultivation::user_id.eq(user_id)).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::Cultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:108:32 [INFO] [stderr] | [INFO] [stderr] 108 | assert!(super::new(db, NewCultivation { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::NewCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Cultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:114:94 [INFO] [stderr] | [INFO] [stderr] 114 | assert!(cultivations::table.filter(cultivation::identifier.eq("identifier")).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::Cultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Cultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:122:26 [INFO] [stderr] | [INFO] [stderr] 122 | let cultivation: Cultivation = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::Cultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:122:80 [INFO] [stderr] | [INFO] [stderr] 122 | let cultivation: Cultivation = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/cultivation.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | send(req.state().db, FindCultivation(id, user_id(&req)?)).response() [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::NewCultivation; [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/cultivation.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | send(req.state().db, IndexCultivation(user_id(&req)?)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/cultivation.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | send(req.state().db, NewCultivation::from(form, user_id(&req)?)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/event.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | send(req.state().db, IndexEvent(id, user_id(&req)?)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/event.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | send(req.state().db, form).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 32 | view_controller!(find, super::FindKingdomBySlug); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 38 | view_controller!(find, super::FindPhylumBySlug); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 44 | view_controller!(find, super::FindClassBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 50 | view_controller!(find, super::FindOrderBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:124:37 [INFO] [stderr] | [INFO] [stderr] 124 | assert_eq!(&super::find(db, FindCultivation(cultivation.id, user_id)).unwrap().identifier, "identifier"); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] help: a local variable with a similar name exists [INFO] [stderr] | [INFO] [stderr] 124 | assert_eq!(&super::find(db, cultivation(cultivation.id, user_id)).unwrap().identifier, "identifier"); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::FindCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 56 | view_controller!(find, super::FindFamilyBySlug); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 62 | view_controller!(find, super::FindGenusBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 68 | view_controller!(find, super::FindSpeciesBySlug); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:131:33 [INFO] [stderr] | [INFO] [stderr] 131 | assert!(super::find(db, FindCultivation(1, user_id)).is_err()); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::FindCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 39 | view_controller!(index_slug, super::IndexPhylum); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 45 | view_controller!(index_slug, super::IndexClass); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 51 | view_controller!(index_slug, super::IndexOrder); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 57 | view_controller!(index_slug, super::IndexFamily); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 63 | view_controller!(index_slug, super::IndexGenus); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 69 | view_controller!(index_slug, super::IndexSpecies); [INFO] [stderr] | -------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 25 | send(req.state().db, $msg).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 33 | view_controller!(index, super::IndexKingdom); [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/user.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | send(req.state().db, FindUser(user_id(&req)?)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/user.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | send(req.state().db, NewUser::try_from(form)?) [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/user.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | send(req.state().db, auth) [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Cultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:139:26 [INFO] [stderr] | [INFO] [stderr] 139 | let cultivation: Cultivation = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::Cultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:139:80 [INFO] [stderr] | [INFO] [stderr] 139 | let cultivation: Cultivation = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::NewCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:141:33 [INFO] [stderr] | [INFO] [stderr] 141 | assert!(super::find(db, FindCultivation(cultivation.id, Id::min_value())).is_err()); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] help: a local variable with a similar name exists [INFO] [stderr] | [INFO] [stderr] 141 | assert!(super::find(db, cultivation(cultivation.id, Id::min_value())).is_err()); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::FindCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:149:57 [INFO] [stderr] | [INFO] [stderr] 149 | let _ = insert_into(cultivations::table).values(NewCultivation { user_id, species_slu, nickname: None, identifier: "identifier" }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::NewCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `species_slu` in this scope [INFO] [stderr] --> src/db/cultivation.rs:149:83 [INFO] [stderr] | [INFO] [stderr] 149 | let _ = insert_into(cultivations::table).values(NewCultivation { user_id, species_slu, nickname: None, identifier: "identifier" }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ help: a local variable with a similar name exists: `species_slug` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `IndexCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:151:38 [INFO] [stderr] | [INFO] [stderr] 151 | assert_eq!(&super::index(db, IndexCultivation(user_id)).unwrap()[0].identifier, "identifier"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::IndexCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `IndexCultivation` in this scope [INFO] [stderr] --> src/db/cultivation.rs:157:38 [INFO] [stderr] | [INFO] [stderr] 157 | assert_eq!(&super::index(db, IndexCultivation(1)).unwrap(), vec![]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 56 | use crate::models::cultivation::IndexCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Kingdom` in this scope [INFO] [stderr] --> src/db/event.rs:43:52 [INFO] [stderr] | [INFO] [stderr] 43 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::taxonomy::Kingdom; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `id` in this scope [INFO] [stderr] --> src/db/event.rs:43:62 [INFO] [stderr] | [INFO] [stderr] 43 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::classes::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::cultivation::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::events::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::families::columns::id; [INFO] [stderr] | [INFO] [stderr] and 7 other candidates [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Phyla` in this scope [INFO] [stderr] --> src/db/event.rs:44:50 [INFO] [stderr] | [INFO] [stderr] 44 | let _ = insert_into(phyla::table).values(Phyla { id, kingdom_slug: "kingdom".to_owned(), name: "Phylum".to_owned(), slug: "phylum".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `id` in this scope [INFO] [stderr] --> src/db/event.rs:44:58 [INFO] [stderr] | [INFO] [stderr] 44 | let _ = insert_into(phyla::table).values(Phyla { id, kingdom_slug: "kingdom".to_owned(), name: "Phylum".to_owned(), slug: "phylum".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::classes::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::cultivation::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::events::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::families::columns::id; [INFO] [stderr] | [INFO] [stderr] and 7 other candidates [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Class` in this scope [INFO] [stderr] --> src/db/event.rs:45:52 [INFO] [stderr] | [INFO] [stderr] 45 | let _ = insert_into(classes::table).values(Class { id, phylum_slug: "phylum".to_owned(), name: "Class".to_owned(), slug: "class".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::taxonomy::Class; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `id` in this scope [INFO] [stderr] --> src/db/event.rs:45:60 [INFO] [stderr] | [INFO] [stderr] 45 | let _ = insert_into(classes::table).values(Class { id, phylum_slug: "phylum".to_owned(), name: "Class".to_owned(), slug: "class".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::classes::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::cultivation::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::events::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::families::columns::id; [INFO] [stderr] | [INFO] [stderr] and 7 other candidates [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Order` in this scope [INFO] [stderr] --> src/db/event.rs:46:51 [INFO] [stderr] | [INFO] [stderr] 46 | let _ = insert_into(orders::table).values(Order { id, class_slug: "class".to_owned(), name: "Order".to_owned(), slug: "order".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::taxonomy::Order; [INFO] [stderr] | [INFO] [stderr] 39 | use diesel::dsl::Order; [INFO] [stderr] | [INFO] [stderr] 39 | use diesel::helper_types::Order; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `id` in this scope [INFO] [stderr] --> src/db/event.rs:46:59 [INFO] [stderr] | [INFO] [stderr] 46 | let _ = insert_into(orders::table).values(Order { id, class_slug: "class".to_owned(), name: "Order".to_owned(), slug: "order".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::classes::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::cultivation::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::events::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::families::columns::id; [INFO] [stderr] | [INFO] [stderr] and 7 other candidates [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Family` in this scope [INFO] [stderr] --> src/db/event.rs:47:53 [INFO] [stderr] | [INFO] [stderr] 47 | let _ = insert_into(families::table).values(Family { id, class_slug: "class".to_owned(), name: "Family".to_owned(), slug: "family".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::taxonomy::Family; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `id` in this scope [INFO] [stderr] --> src/db/event.rs:47:62 [INFO] [stderr] | [INFO] [stderr] 47 | let _ = insert_into(families::table).values(Family { id, class_slug: "class".to_owned(), name: "Family".to_owned(), slug: "family".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::classes::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::cultivation::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::events::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::families::columns::id; [INFO] [stderr] | [INFO] [stderr] and 7 other candidates [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Genus` in this scope [INFO] [stderr] --> src/db/event.rs:48:51 [INFO] [stderr] | [INFO] [stderr] 48 | let _ = insert_into(genera::table).values(Genus { id, family_slug: "family".to_owned(), name: "Genus".to_owned(), slug: "genus".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::taxonomy::Genus; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `id` in this scope [INFO] [stderr] --> src/db/event.rs:48:59 [INFO] [stderr] | [INFO] [stderr] 48 | let _ = insert_into(genera::table).values(Genus { id, family_slug: "family".to_owned(), name: "Genus".to_owned(), slug: "genus".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::classes::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::cultivation::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::events::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::families::columns::id; [INFO] [stderr] | [INFO] [stderr] and 7 other candidates [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Species` in this scope [INFO] [stderr] --> src/db/event.rs:49:44 [INFO] [stderr] | [INFO] [stderr] 49 | insert_into(species::table).values(Species { id, genus_slug: "genus".to_owned(), name: "Species".to_owned(), slug: "species".to_owned() }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::taxonomy::Species; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `id` in this scope [INFO] [stderr] --> src/db/event.rs:49:54 [INFO] [stderr] | [INFO] [stderr] 49 | insert_into(species::table).values(Species { id, genus_slug: "genus".to_owned(), name: "Species".to_owned(), slug: "species".to_owned() }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::classes::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::cultivation::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::events::columns::id; [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::families::columns::id; [INFO] [stderr] | [INFO] [stderr] and 7 other candidates [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Id` in this scope [INFO] [stderr] --> src/db/event.rs:51:22 [INFO] [stderr] | [INFO] [stderr] 51 | let user_id: Id = insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id; [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::types::Id; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/event.rs:51:60 [INFO] [stderr] | [INFO] [stderr] 51 | let user_id: Id = insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id; [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in this scope [INFO] [stderr] --> src/db/event.rs:51:157 [INFO] [stderr] | [INFO] [stderr] 51 | let user_id: Id = insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id; [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `User` in this scope [INFO] [stderr] --> src/db/event.rs:51:208 [INFO] [stderr] | [INFO] [stderr] 51 | let user_id: Id = insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::user::User; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewCultivation` in this scope [INFO] [stderr] --> src/db/event.rs:53:57 [INFO] [stderr] | [INFO] [stderr] 53 | let _ = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug: "species".to_owned(), nickname: None, identifier: "identifier".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::cultivation::NewCultivation; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewEvent` in this scope [INFO] [stderr] --> src/db/event.rs:60:36 [INFO] [stderr] | [INFO] [stderr] 60 | let event = super::new(db, NewEvent { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::event::NewEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Event` in this scope [INFO] [stderr] --> src/db/event.rs:69:87 [INFO] [stderr] | [INFO] [stderr] 69 | assert_eq!(&events::table.filter(events::identifier.eq("identifier")).first::(&POOL.get().unwrap()).unwrap().identifier, "identifier"); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::event::Event; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewEvent` in this scope [INFO] [stderr] --> src/db/event.rs:75:32 [INFO] [stderr] | [INFO] [stderr] 75 | assert!(super::new(db, NewEvent { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::event::NewEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Event` in this scope [INFO] [stderr] --> src/db/event.rs:84:84 [INFO] [stderr] | [INFO] [stderr] 84 | assert!(&events::table.filter(events::identifier.eq("identifier")).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::event::Event; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewEvent` in this scope [INFO] [stderr] --> src/db/event.rs:91:51 [INFO] [stderr] | [INFO] [stderr] 91 | let _ = insert_into(events::table).values(NewEvent { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::event::NewEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `IndexEvent` in this scope [INFO] [stderr] --> src/db/event.rs:100:35 [INFO] [stderr] | [INFO] [stderr] 100 | assert!(!super::index(db, IndexEvent(cultivation.id, 1)).unwrap().len().is_empty()); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::event::IndexEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `IndexEvent` in this scope [INFO] [stderr] --> src/db/event.rs:107:34 [INFO] [stderr] | [INFO] [stderr] 107 | assert!(super::index(db, IndexEvent(cultivation.id, 1)).unwrap().is_empty()); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::event::IndexEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `IndexEvent` in this scope [INFO] [stderr] --> src/db/event.rs:113:34 [INFO] [stderr] | [INFO] [stderr] 113 | assert!(super::index(db, IndexEvent(cultivation.id, 1)).is_err()); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::event::IndexEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected value, found module `cultivation` [INFO] [stderr] --> src/db/event.rs:113:45 [INFO] [stderr] | [INFO] [stderr] 113 | assert!(super::index(db, IndexEvent(cultivation.id, 1)).is_err()); [INFO] [stderr] | ^^^^^^^^^^^--- [INFO] [stderr] | | [INFO] [stderr] | help: use the path separator to refer to an item: `cultivation::id` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `IndexEvent` in this scope [INFO] [stderr] --> src/db/event.rs:120:34 [INFO] [stderr] | [INFO] [stderr] 120 | assert!(super::index(db, IndexEvent(cultivation.id, 2)).is_err()); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 39 | use crate::models::event::IndexEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:41:33 [INFO] [stderr] | [INFO] [stderr] 41 | let id = super::new(db, NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:52:32 [INFO] [stderr] | [INFO] [stderr] 52 | assert!(super::new(db, NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `User` in this scope [INFO] [stderr] --> src/db/user.rs:57:38 [INFO] [stderr] | [INFO] [stderr] 57 | assert!(users::table.first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::User; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:63:32 [INFO] [stderr] | [INFO] [stderr] 63 | assert!(super::new(db, NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `User` in this scope [INFO] [stderr] --> src/db/user.rs:68:38 [INFO] [stderr] | [INFO] [stderr] 68 | assert!(users::table.first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::User; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:74:32 [INFO] [stderr] | [INFO] [stderr] 74 | assert!(super::new(db, NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `User` in this scope [INFO] [stderr] --> src/db/user.rs:79:38 [INFO] [stderr] | [INFO] [stderr] 79 | assert!(users::table.first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::User; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:85:32 [INFO] [stderr] | [INFO] [stderr] 85 | let _ = super::new(db, NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in module `super` [INFO] [stderr] --> src/db/user.rs:88:35 [INFO] [stderr] | [INFO] [stderr] 88 | password_hash: super::password_hash("password").unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^ not found in `super` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:91:32 [INFO] [stderr] | [INFO] [stderr] 91 | assert!(super::new(db, NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in module `super` [INFO] [stderr] --> src/db/user.rs:94:35 [INFO] [stderr] | [INFO] [stderr] 94 | password_hash: super::password_hash("password").unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^ not found in `super` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `User` in this scope [INFO] [stderr] --> src/db/user.rs:96:42 [INFO] [stderr] | [INFO] [stderr] 96 | assert_eq!(users::table.filter::(&POOL.get().unwrap()).unwrap().len(), 1); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::User; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:102:32 [INFO] [stderr] | [INFO] [stderr] 102 | let _ = super::new(db, NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in module `super` [INFO] [stderr] --> src/db/user.rs:105:35 [INFO] [stderr] | [INFO] [stderr] 105 | password_hash: super::password_hash("password").unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^ not found in `super` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:108:32 [INFO] [stderr] | [INFO] [stderr] 108 | assert!(super::new(db, NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in module `super` [INFO] [stderr] --> src/db/user.rs:111:35 [INFO] [stderr] | [INFO] [stderr] 111 | password_hash: super::password_hash("password").unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^ not found in `super` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `User` in this scope [INFO] [stderr] --> src/db/user.rs:113:42 [INFO] [stderr] | [INFO] [stderr] 113 | assert_eq!(users::table.filter::(&POOL.get().unwrap()).unwrap().len(), 1); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::User; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `User` in this scope [INFO] [stderr] --> src/db/user.rs:119:19 [INFO] [stderr] | [INFO] [stderr] 119 | let user: User = insert_into(users::table).values(NewUser { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::User; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:119:59 [INFO] [stderr] | [INFO] [stderr] 119 | let user: User = insert_into(users::table).values(NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in module `super` [INFO] [stderr] --> src/db/user.rs:122:35 [INFO] [stderr] | [INFO] [stderr] 122 | password_hash: super::password_hash("password").unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^ not found in `super` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `find` in module `super` [INFO] [stderr] --> src/db/user.rs:125:28 [INFO] [stderr] | [INFO] [stderr] 125 | assert_eq!(&super::find(db, FindUser(user.id)).unwrap().username, "username"); [INFO] [stderr] | ^^^^ not found in `super` [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::controllers::cultivation::find; [INFO] [stderr] | [INFO] [stderr] 35 | use crate::db::cultivation::find; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindUser` in this scope [INFO] [stderr] --> src/db/user.rs:125:37 [INFO] [stderr] | [INFO] [stderr] 125 | assert_eq!(&super::find(db, FindUser(user.id)).unwrap().username, "username"); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `find` in module `super` [INFO] [stderr] --> src/db/user.rs:131:24 [INFO] [stderr] | [INFO] [stderr] 131 | assert!(super::find(db, FindUser(1)).is_err()); [INFO] [stderr] | ^^^^ not found in `super` [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::controllers::cultivation::find; [INFO] [stderr] | [INFO] [stderr] 35 | use crate::db::cultivation::find; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindUser` in this scope [INFO] [stderr] --> src/db/user.rs:131:33 [INFO] [stderr] | [INFO] [stderr] 131 | assert!(super::find(db, FindUser(1)).is_err()); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `find` in module `super` [INFO] [stderr] --> src/db/user.rs:138:25 [INFO] [stderr] | [INFO] [stderr] 138 | assert!(&super::find(db, FindByUsername("username".to_owned())).is_err()); [INFO] [stderr] | ^^^^ not found in `super` [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::controllers::cultivation::find; [INFO] [stderr] | [INFO] [stderr] 35 | use crate::db::cultivation::find; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindByUsername` in this scope [INFO] [stderr] --> src/db/user.rs:138:34 [INFO] [stderr] | [INFO] [stderr] 138 | assert!(&super::find(db, FindByUsername("username".to_owned())).is_err()); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:139:50 [INFO] [stderr] | [INFO] [stderr] 139 | let _ = insert_into(users::table).values(NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in module `super` [INFO] [stderr] --> src/db/user.rs:142:35 [INFO] [stderr] | [INFO] [stderr] 142 | password_hash: super::password_hash("password").unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^ not found in `super` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `find` in module `super` [INFO] [stderr] --> src/db/user.rs:145:28 [INFO] [stderr] | [INFO] [stderr] 145 | assert_eq!(&super::find(db, FindByUsername("username".to_owned())).unwrap().username, "username"); [INFO] [stderr] | ^^^^ not found in `super` [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::controllers::cultivation::find; [INFO] [stderr] | [INFO] [stderr] 35 | use crate::db::cultivation::find; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindByUsername` in this scope [INFO] [stderr] --> src/db/user.rs:145:37 [INFO] [stderr] | [INFO] [stderr] 145 | assert_eq!(&super::find(db, FindByUsername("username".to_owned())).unwrap().username, "username"); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `find` in module `super` [INFO] [stderr] --> src/db/user.rs:151:24 [INFO] [stderr] | [INFO] [stderr] 151 | assert!(super::find(db, FindByUsername("username".to_owned())).is_err()); [INFO] [stderr] | ^^^^ not found in `super` [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::controllers::cultivation::find; [INFO] [stderr] | [INFO] [stderr] 35 | use crate::db::cultivation::find; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `FindByUsername` in this scope [INFO] [stderr] --> src/db/user.rs:151:33 [INFO] [stderr] | [INFO] [stderr] 151 | assert!(super::find(db, FindByUsername("username".to_owned())).is_err()); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:157:50 [INFO] [stderr] | [INFO] [stderr] 157 | let _ = insert_into(users::table).values(NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in module `super` [INFO] [stderr] --> src/db/user.rs:160:35 [INFO] [stderr] | [INFO] [stderr] 160 | password_hash: super::password_hash("password").unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^ not found in `super` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `AuthenticateUser` in this scope [INFO] [stderr] --> src/db/user.rs:169:42 [INFO] [stderr] | [INFO] [stderr] 169 | assert!(&super::authenticate(db, AuthenticateUser("username".to_owned(), "password".to_owned())).is_err()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::AuthenticateUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `NewUser` in this scope [INFO] [stderr] --> src/db/user.rs:175:50 [INFO] [stderr] | [INFO] [stderr] 175 | let _ = insert_into(users::table).values(NewUser { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::NewUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `password_hash` in module `super` [INFO] [stderr] --> src/db/user.rs:178:35 [INFO] [stderr] | [INFO] [stderr] 178 | password_hash: super::password_hash("password").unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^ not found in `super` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::lib::schema::users::columns::password_hash; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `AuthenticateUser` in this scope [INFO] [stderr] --> src/db/user.rs:181:42 [INFO] [stderr] | [INFO] [stderr] 181 | assert!(&super::authenticate(db, AuthenticateUser("username".to_owned(), "password2".to_owned())).is_err()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 35 | use crate::models::user::AuthenticateUser; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::Connection` [INFO] [stderr] --> src/lib/db.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | use diesel::Connection; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `lib::tests::POOL` [INFO] [stderr] --> src/lib/tests.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{prelude::*, lib::tests::POOL, router::router, lib::schema::*}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `client::ClientResponse` [INFO] [stderr] --> src/lib/tests.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | client::ClientResponse, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::future::Future` [INFO] [stderr] --> src/lib/tests.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use futures::future::Future; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib/types.rs:27:27 [INFO] [stderr] | [INFO] [stderr] 27 | pub type HttpFuture = Box>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `tests::POOL` [INFO] [stderr] --> src/controllers/cultivation.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 30 | tests::POOL, router::router, tests::authenticate_tester, tests::new_species, tests::set_cookie, tests::extract_header, tests::new_server, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::Future` [INFO] [stderr] --> src/controllers/user.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | use futures::Future; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::str::from_utf8` [INFO] [stderr] --> src/controllers/user.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | use std::str::from_utf8; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:18:212 [INFO] [stderr] | [INFO] [stderr] 18 | let user_id = insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:19:134 [INFO] [stderr] | [INFO] [stderr] 19 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:20:164 [INFO] [stderr] | [INFO] [stderr] 20 | let _ = insert_into(phyla::table).values(Phyla { id, kingdom_slug: "kingdom".to_owned(), name: "Phylum".to_owned(), slug: "phylum".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:21:162 [INFO] [stderr] | [INFO] [stderr] 21 | let _ = insert_into(classes::table).values(Class { id, phylum_slug: "phylum".to_owned(), name: "Class".to_owned(), slug: "class".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:22:159 [INFO] [stderr] | [INFO] [stderr] 22 | let _ = insert_into(orders::table).values(Order { id, class_slug: "class".to_owned(), name: "Order".to_owned(), slug: "order".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0560]: struct `models::taxonomy::Family` has no field named `class_slug` [INFO] [stderr] --> src/lib/tests.rs:23:62 [INFO] [stderr] | [INFO] [stderr] 23 | let _ = insert_into(families::table).values(Family { id, class_slug: "class".to_owned(), name: "Family".to_owned(), slug: "family".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ `models::taxonomy::Family` does not have this field [INFO] [stderr] | [INFO] [stderr] = note: available fields are: `id`, `order_slug`, `name`, `slug` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:23:164 [INFO] [stderr] | [INFO] [stderr] 23 | let _ = insert_into(families::table).values(Family { id, class_slug: "class".to_owned(), name: "Family".to_owned(), slug: "family".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:24:161 [INFO] [stderr] | [INFO] [stderr] 24 | let _ = insert_into(genera::table).values(Genus { id, family_slug: "family".to_owned(), name: "Genus".to_owned(), slug: "genus".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0063]: missing field `popular_name` in initializer of `models::taxonomy::Species` [INFO] [stderr] --> src/lib/tests.rs:25:59 [INFO] [stderr] | [INFO] [stderr] 25 | let species_slug = insert_into(species::table).values(Species { id, genus_slug: "genus".to_owned(), name: "Species".to_owned(), slug: "species".to_owned() }).get_result(&POOL.get().unwrap()).unwrap().slug; [INFO] [stderr] | ^^^^^^^ missing `popular_name` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:25:180 [INFO] [stderr] | [INFO] [stderr] 25 | let species_slug = insert_into(species::table).values(Species { id, genus_slug: "genus".to_owned(), name: "Species".to_owned(), slug: "species".to_owned() }).get_result(&POOL.get().unwrap()).unwrap().slug; [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/lib/tests.rs:26:113 [INFO] [stderr] | [INFO] [stderr] 26 | insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap() [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected struct `std::string::String`, found reference [INFO] [stderr] | help: try using a conversion method: `"identifier".to_string()` [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::string::String` [INFO] [stderr] found type `&'static str` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:26:146 [INFO] [stderr] | [INFO] [stderr] 26 | insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap() [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:33:134 [INFO] [stderr] | [INFO] [stderr] 33 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:34:164 [INFO] [stderr] | [INFO] [stderr] 34 | let _ = insert_into(phyla::table).values(Phyla { id, kingdom_slug: "kingdom".to_owned(), name: "Phylum".to_owned(), slug: "phylum".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:35:162 [INFO] [stderr] | [INFO] [stderr] 35 | let _ = insert_into(classes::table).values(Class { id, phylum_slug: "phylum".to_owned(), name: "Class".to_owned(), slug: "class".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:36:159 [INFO] [stderr] | [INFO] [stderr] 36 | let _ = insert_into(orders::table).values(Order { id, class_slug: "class".to_owned(), name: "Order".to_owned(), slug: "order".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0560]: struct `models::taxonomy::Family` has no field named `class_slug` [INFO] [stderr] --> src/lib/tests.rs:37:62 [INFO] [stderr] | [INFO] [stderr] 37 | let _ = insert_into(families::table).values(Family { id, class_slug: "class".to_owned(), name: "Family".to_owned(), slug: "family".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ `models::taxonomy::Family` does not have this field [INFO] [stderr] | [INFO] [stderr] = note: available fields are: `id`, `order_slug`, `name`, `slug` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:37:164 [INFO] [stderr] | [INFO] [stderr] 37 | let _ = insert_into(families::table).values(Family { id, class_slug: "class".to_owned(), name: "Family".to_owned(), slug: "family".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:38:161 [INFO] [stderr] | [INFO] [stderr] 38 | let _ = insert_into(genera::table).values(Genus { id, family_slug: "family".to_owned(), name: "Genus".to_owned(), slug: "genus".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0063]: missing field `popular_name` in initializer of `models::taxonomy::Species` [INFO] [stderr] --> src/lib/tests.rs:39:40 [INFO] [stderr] | [INFO] [stderr] 39 | insert_into(species::table).values(Species { id, genus_slug: "genus".to_owned(), name: "Species".to_owned(), slug: "species".to_owned() }).get_result(&POOL.get().unwrap()).unwrap().species_slug [INFO] [stderr] | ^^^^^^^ missing `popular_name` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/lib/tests.rs:39:161 [INFO] [stderr] | [INFO] [stderr] 39 | insert_into(species::table).values(Species { id, genus_slug: "genus".to_owned(), name: "Species".to_owned(), slug: "species".to_owned() }).get_result(&POOL.get().unwrap()).unwrap().species_slug [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] ... [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: expected a `std::ops::Fn<()>` closure, found `actix_web::application::App` [INFO] [stderr] --> src/lib/tests.rs:45:30 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ expected an `Fn<()>` closure, found `actix_web::application::App` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:12 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | --------- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::Fn<()>` is not implemented for `actix_web::application::App` [INFO] [stderr] = note: wrap the `actix_web::application::App` in a closure with no arguments: `|| { /* code */ } [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `actix_web::application::App: std::clone::Clone` is not satisfied [INFO] [stderr] --> src/lib/tests.rs:45:30 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::clone::Clone` is not implemented for `actix_web::application::App` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:31 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | ----- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] [INFO] [stderr] error[E0277]: `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] --> src/lib/tests.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:24 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | ---- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] | [INFO] [stderr] = help: within `actix_web::application::App`, the trait `std::marker::Send` is not implemented for `std::rc::Rc` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::Router` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::ApplicationParts` [INFO] [stderr] = note: required because it appears within the type `std::option::Option>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::App` [INFO] [stderr] [INFO] [stderr] error[E0277]: `std::rc::Rc>` cannot be sent between threads safely [INFO] [stderr] --> src/lib/tests.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ `std::rc::Rc>` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:24 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | ---- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] | [INFO] [stderr] = help: within `actix_web::application::App`, the trait `std::marker::Send` is not implemented for `std::rc::Rc>` [INFO] [stderr] = note: required because it appears within the type `actix_web::resource::DefaultResource` [INFO] [stderr] = note: required because it appears within the type `std::option::Option>` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::Router` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::ApplicationParts` [INFO] [stderr] = note: required because it appears within the type `std::option::Option>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::App` [INFO] [stderr] [INFO] [stderr] error[E0277]: `(dyn actix_web::middleware::Middleware + 'static)` cannot be sent between threads safely [INFO] [stderr] --> src/lib/tests.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn actix_web::middleware::Middleware + 'static)` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:24 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | ---- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Send` is not implemented for `(dyn actix_web::middleware::Middleware + 'static)` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<(dyn actix_web::middleware::Middleware + 'static)>` [INFO] [stderr] = note: required because it appears within the type `std::boxed::Box<(dyn actix_web::middleware::Middleware + 'static)>` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique + 'static)>>` [INFO] [stderr] = note: required because it appears within the type `alloc::raw_vec::RawVec + 'static)>>` [INFO] [stderr] = note: required because it appears within the type `std::vec::Vec + 'static)>>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::ApplicationParts` [INFO] [stderr] = note: required because it appears within the type `std::option::Option>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::App` [INFO] [stderr] [INFO] [stderr] error[E0277]: `(dyn actix_web::pred::Predicate + 'static)` cannot be sent between threads safely [INFO] [stderr] --> src/lib/tests.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn actix_web::pred::Predicate + 'static)` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:24 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | ---- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Send` is not implemented for `(dyn actix_web::pred::Predicate + 'static)` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<(dyn actix_web::pred::Predicate + 'static)>` [INFO] [stderr] = note: required because it appears within the type `std::boxed::Box<(dyn actix_web::pred::Predicate + 'static)>` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique + 'static)>>` [INFO] [stderr] = note: required because it appears within the type `alloc::raw_vec::RawVec + 'static)>>` [INFO] [stderr] = note: required because it appears within the type `std::vec::Vec + 'static)>>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::ApplicationParts` [INFO] [stderr] = note: required because it appears within the type `std::option::Option>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::App` [INFO] [stderr] [INFO] [stderr] error[E0277]: `std::rc::Rc + 'static)>>>` cannot be sent between threads safely [INFO] [stderr] --> src/lib/tests.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ `std::rc::Rc + 'static)>>>` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:24 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | ---- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] | [INFO] [stderr] = help: within `actix_web::router::ResourceItem`, the trait `std::marker::Send` is not implemented for `std::rc::Rc + 'static)>>>` [INFO] [stderr] = note: required because it appears within the type `actix_web::resource::Resource` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::ResourceItem` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique>` [INFO] [stderr] = note: required because it appears within the type `alloc::raw_vec::RawVec>` [INFO] [stderr] = note: required because it appears within the type `std::vec::Vec>` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::Router` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::ApplicationParts` [INFO] [stderr] = note: required because it appears within the type `std::option::Option>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::App` [INFO] [stderr] [INFO] [stderr] error[E0277]: `std::rc::Rc>` cannot be sent between threads safely [INFO] [stderr] --> src/lib/tests.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ `std::rc::Rc>` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:24 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | ---- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] | [INFO] [stderr] = help: within `actix_web::router::ResourceItem`, the trait `std::marker::Send` is not implemented for `std::rc::Rc>` [INFO] [stderr] = note: required because it appears within the type `actix_web::scope::Scope` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::ResourceItem` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique>` [INFO] [stderr] = note: required because it appears within the type `alloc::raw_vec::RawVec>` [INFO] [stderr] = note: required because it appears within the type `std::vec::Vec>` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::Router` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::ApplicationParts` [INFO] [stderr] = note: required because it appears within the type `std::option::Option>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::App` [INFO] [stderr] [INFO] [stderr] error[E0277]: `(dyn actix_web::handler::RouteHandler + 'static)` cannot be sent between threads safely [INFO] [stderr] --> src/lib/tests.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn actix_web::handler::RouteHandler + 'static)` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:24 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | ---- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Send` is not implemented for `(dyn actix_web::handler::RouteHandler + 'static)` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<(dyn actix_web::handler::RouteHandler + 'static)>` [INFO] [stderr] = note: required because it appears within the type `std::boxed::Box<(dyn actix_web::handler::RouteHandler + 'static)>` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::ResourceItem` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique>` [INFO] [stderr] = note: required because it appears within the type `alloc::raw_vec::RawVec>` [INFO] [stderr] = note: required because it appears within the type `std::vec::Vec>` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::Router` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::ApplicationParts` [INFO] [stderr] = note: required because it appears within the type `std::option::Option>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::App` [INFO] [stderr] [INFO] [stderr] error[E0277]: `std::rc::Rc + 'static)>>` cannot be sent between threads safely [INFO] [stderr] --> src/lib/tests.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ `std::rc::Rc + 'static)>>` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:24 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | ---- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] | [INFO] [stderr] = help: within `actix_web::route::Route`, the trait `std::marker::Send` is not implemented for `std::rc::Rc + 'static)>>` [INFO] [stderr] = note: required because it appears within the type `actix_web::route::InnerHandler` [INFO] [stderr] = note: required because it appears within the type `actix_web::route::Route` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `smallvec::SmallVec<[actix_web::route::Route; 3]>` [INFO] [stderr] = note: required because it appears within the type `actix_web::resource::Resource` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::ResourceItem` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique>` [INFO] [stderr] = note: required because it appears within the type `alloc::raw_vec::RawVec>` [INFO] [stderr] = note: required because it appears within the type `std::vec::Vec>` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::Router` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::ApplicationParts` [INFO] [stderr] = note: required because it appears within the type `std::option::Option>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::App` [INFO] [stderr] [INFO] [stderr] error[E0277]: `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] --> src/lib/tests.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | TestServer::with_factory(router(&[0; 32], *POOL)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-0.7.19/src/test.rs:107:24 [INFO] [stderr] | [INFO] [stderr] 107 | F: Fn() -> H + Send + Clone + 'static, [INFO] [stderr] | ---- required by this bound in `actix_web::test::TestServer::with_factory` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Send` is not implemented for `std::rc::Rc` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique>` [INFO] [stderr] = note: required because it appears within the type `alloc::raw_vec::RawVec>` [INFO] [stderr] = note: required because it appears within the type `std::vec::Vec>` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::PatternType` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::ResourceDef` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::ResourcePattern` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique>` [INFO] [stderr] = note: required because it appears within the type `alloc::raw_vec::RawVec>` [INFO] [stderr] = note: required because it appears within the type `std::vec::Vec>` [INFO] [stderr] = note: required because it appears within the type `actix_web::router::Router` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::ApplicationParts` [INFO] [stderr] = note: required because it appears within the type `std::option::Option>` [INFO] [stderr] = note: required because it appears within the type `actix_web::application::App` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `cookie` found for type `&mut actix_web::test::TestServer` in the current scope [INFO] [stderr] --> src/lib/tests.rs:53:17 [INFO] [stderr] | [INFO] [stderr] 53 | req.cookie(cookie); [INFO] [stderr] | ^^^^^^ method not found in `&mut actix_web::test::TestServer` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `headers` found for type `&mut actix_web::test::TestServer` in the current scope [INFO] [stderr] --> src/lib/tests.rs:61:9 [INFO] [stderr] | [INFO] [stderr] 61 | req.headers().get(header).unwrap().to_string().unwrap() [INFO] [stderr] | ^^^^^^^ method not found in `&mut actix_web::test::TestServer` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((models::cultivation::NewCultivationForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::cultivation::post}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:20:61 [INFO] [stderr] | [INFO] [stderr] 20 | .resource("/cultivation", |r| r.post().with(cultivation::post)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((models::cultivation::NewCultivationForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::cultivation::post}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((i64, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::cultivation::find}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:21:65 [INFO] [stderr] | [INFO] [stderr] 21 | .resource("/cultivation/{id}", |r| r.get().with(cultivation::find)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((i64, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::cultivation::find}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((i64, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::event::index}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:22:72 [INFO] [stderr] | [INFO] [stderr] 22 | .resource("/cultivation/{id}/events", |r| r.get().with(event::index)) [INFO] [stderr] | ^^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((i64, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::event::index}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((models::event::NewEventForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::event::post}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:23:55 [INFO] [stderr] | [INFO] [stderr] 23 | .resource("/event", |r| r.post().with(event::post)) [INFO] [stderr] | ^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((models::event::NewEventForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::event::post}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((models::user::SignupForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::user::signup}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:24:56 [INFO] [stderr] | [INFO] [stderr] 24 | .resource("/signup", |r| r.post().with(user::signup)) [INFO] [stderr] | ^^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((models::user::SignupForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::user::signup}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `fn((models::user::SigninForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::user::signin}: actix_web::with::WithFactory<_, lib::types::State, _>` is not satisfied [INFO] [stderr] --> src/router.rs:25:56 [INFO] [stderr] | [INFO] [stderr] 25 | .resource("/signin", |r| r.post().with(user::signin)) [INFO] [stderr] | ^^^^^^^^^^^^ the trait `actix_web::with::WithFactory<_, lib::types::State, _>` is not implemented for `fn((models::user::SigninForm, actix_web::httprequest::HttpRequest)) -> std::result::Result + 'static)>, lib::error::Error> {controllers::user::signin}` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/cultivation.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | send(req.state().db, FindCultivation(id, user_id(&req)?)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/cultivation.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | send(req.state().db, IndexCultivation(user_id(&req)?)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/cultivation.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | send(req.state().db, NewCultivation::from(form, user_id(&req)?)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:42:20 [INFO] [stderr] | [INFO] [stderr] 42 | set_cookie(req, cookie); [INFO] [stderr] | ^^^ expected mutable reference, found struct `actix_web::client::request::ClientRequestBuilder` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&mut actix_web::test::TestServer` [INFO] [stderr] found type `actix_web::client::request::ClientRequestBuilder` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:48:37 [INFO] [stderr] | [INFO] [stderr] 48 | assert!(&extract_header(r, "content-length") != "0"); [INFO] [stderr] | ^ expected mutable reference, found struct `actix_web::client::response::ClientResponse` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&mut actix_web::test::TestServer` [INFO] [stderr] found type `actix_web::client::response::ClientResponse` [INFO] [stderr] [INFO] [stderr] error: aborting due to 80 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0425, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: could not compile `server_iop`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:49:40 [INFO] [stderr] | [INFO] [stderr] 49 | assert_eq!(&extract_header(r, "content-type"), "application/json"); [INFO] [stderr] | ^ expected mutable reference, found struct `actix_web::client::response::ClientResponse` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&mut actix_web::test::TestServer` [INFO] [stderr] found type `actix_web::client::response::ClientResponse` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:52:40 [INFO] [stderr] | [INFO] [stderr] 52 | assert_eq!(&extract_header(r, "content-length"), "0"); [INFO] [stderr] | ^ expected mutable reference, found struct `actix_web::client::response::ClientResponse` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&mut actix_web::test::TestServer` [INFO] [stderr] found type `actix_web::client::response::ClientResponse` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:64:20 [INFO] [stderr] | [INFO] [stderr] 64 | set_cookie(req, cookie); [INFO] [stderr] | ^^^ expected mutable reference, found struct `actix_web::client::request::ClientRequestBuilder` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&mut actix_web::test::TestServer` [INFO] [stderr] found type `actix_web::client::request::ClientRequestBuilder` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:72:40 [INFO] [stderr] | [INFO] [stderr] 72 | assert_eq!(&extract_header(r, "content-length"), size); [INFO] [stderr] | ^ expected mutable reference, found struct `actix_web::client::response::ClientResponse` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&mut actix_web::test::TestServer` [INFO] [stderr] found type `actix_web::client::response::ClientResponse` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:95:20 [INFO] [stderr] | [INFO] [stderr] 95 | set_cookie(req, cookie); [INFO] [stderr] | ^^^ expected mutable reference, found struct `actix_web::client::request::ClientRequestBuilder` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&mut actix_web::test::TestServer` [INFO] [stderr] found type `actix_web::client::request::ClientRequestBuilder` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:101:37 [INFO] [stderr] | [INFO] [stderr] 101 | assert!(&extract_header(r, "content-length") != "0"); [INFO] [stderr] | ^ expected mutable reference, found struct `actix_web::client::response::ClientResponse` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&mut actix_web::test::TestServer` [INFO] [stderr] found type `actix_web::client::response::ClientResponse` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:102:40 [INFO] [stderr] | [INFO] [stderr] 102 | assert_eq!(&extract_header(r, "content-type"), "application/json"); [INFO] [stderr] | ^ expected mutable reference, found struct `actix_web::client::response::ClientResponse` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&mut actix_web::test::TestServer` [INFO] [stderr] found type `actix_web::client::response::ClientResponse` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:105:40 [INFO] [stderr] | [INFO] [stderr] 105 | assert_eq!(&extract_header(r, "content-length"), "0"); [INFO] [stderr] | ^ expected mutable reference, found struct `actix_web::client::response::ClientResponse` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&mut actix_web::test::TestServer` [INFO] [stderr] found type `actix_web::client::response::ClientResponse` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers/cultivation.rs:131:13 [INFO] [stderr] | [INFO] [stderr] 131 | "identifier".to_owned(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected &str, found struct `std::string::String` [INFO] [stderr] | help: consider borrowing here: `&"identifier".to_owned()` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&str` [INFO] [stderr] found type `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/event.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | send(req.state().db, IndexEvent(id, user_id(&req)?)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/event.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | send(req.state().db, form).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 32 | view_controller!(find, super::FindKingdomBySlug); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 38 | view_controller!(find, super::FindPhylumBySlug); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 44 | view_controller!(find, super::FindClassBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 50 | view_controller!(find, super::FindOrderBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 56 | view_controller!(find, super::FindFamilyBySlug); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 62 | view_controller!(find, super::FindGenusBySlug); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 68 | view_controller!(find, super::FindSpeciesBySlug); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 39 | view_controller!(index_slug, super::IndexPhylum); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 45 | view_controller!(index_slug, super::IndexClass); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 51 | view_controller!(index_slug, super::IndexOrder); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 57 | view_controller!(index_slug, super::IndexFamily); [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 63 | view_controller!(index_slug, super::IndexGenus); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | send(req.state().db, $msg(arg)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 69 | view_controller!(index_slug, super::IndexSpecies); [INFO] [stderr] | -------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/taxonomy.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 25 | send(req.state().db, $msg).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] ... [INFO] [stderr] 33 | view_controller!(index, super::IndexKingdom); [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/user.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | send(req.state().db, FindUser(user_id(&req)?)).response() [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/user.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | send(req.state().db, NewUser::try_from(form)?) [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `db::Database: models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not satisfied [INFO] [stderr] --> src/controllers/user.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | send(req.state().db, auth) [INFO] [stderr] | ^^^^ the trait `models::cultivation::_impl_act_findcultivation::actix::Handler<_>` is not implemented for `db::Database` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/utils.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn send( [INFO] [stderr] | ---- [INFO] [stderr] ... [INFO] [stderr] 32 | A: Handler, [INFO] [stderr] | ---------- required by this bound in `lib::utils::send` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/cultivation.rs:60:202 [INFO] [stderr] | [INFO] [stderr] 60 | insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/cultivation.rs:74:116 [INFO] [stderr] | [INFO] [stderr] 74 | assert_eq!(cultivations::table.find(cultivation.id).select(cultivations::identifier).first::(&POOL.get().unwrap()), Some("identifier".to_owned())); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/cultivation.rs:88:105 [INFO] [stderr] | [INFO] [stderr] 88 | assert!(cultivations::table.filter(cultivation::user_id.eq(user_id)).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/cultivation.rs:101:105 [INFO] [stderr] | [INFO] [stderr] 101 | assert!(cultivations::table.filter(cultivation::user_id.eq(user_id)).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/cultivation.rs:114:113 [INFO] [stderr] | [INFO] [stderr] 114 | assert!(cultivations::table.filter(cultivation::identifier.eq("identifier")).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/cultivation.rs:122:181 [INFO] [stderr] | [INFO] [stderr] 122 | let cultivation: Cultivation = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `identifier` on type `models::cultivation::CultivationView` [INFO] [stderr] --> src/db/cultivation.rs:124:88 [INFO] [stderr] | [INFO] [stderr] 124 | assert_eq!(&super::find(db, FindCultivation(cultivation.id, user_id)).unwrap().identifier, "identifier"); [INFO] [stderr] | ^^^^^^^^^^ unknown field [INFO] [stderr] | [INFO] [stderr] = note: available fields are: `id`, `user`, `species`, `nickname`, `last_event` ... and 3 others [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/cultivation.rs:139:181 [INFO] [stderr] | [INFO] [stderr] 139 | let cultivation: Cultivation = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug, nickname: None, identifier: "identifier" }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/cultivation.rs:149:154 [INFO] [stderr] | [INFO] [stderr] 149 | let _ = insert_into(cultivations::table).values(NewCultivation { user_id, species_slu, nickname: None, identifier: "identifier" }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `identifier` on type `models::cultivation::CultivationView` [INFO] [stderr] --> src/db/cultivation.rs:151:77 [INFO] [stderr] | [INFO] [stderr] 151 | assert_eq!(&super::index(db, IndexCultivation(user_id)).unwrap()[0].identifier, "identifier"); [INFO] [stderr] | ^^^^^^^^^^ unknown field [INFO] [stderr] | [INFO] [stderr] = note: available fields are: `id`, `user`, `species`, `nickname`, `last_event` ... and 3 others [INFO] [stderr] [INFO] [stderr] error[E0369]: binary operation `==` cannot be applied to type `&std::vec::Vec` [INFO] [stderr] --> src/db/cultivation.rs:157:9 [INFO] [stderr] | [INFO] [stderr] 157 | assert_eq!(&super::index(db, IndexCultivation(1)).unwrap(), vec![]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | &std::vec::Vec [INFO] [stderr] | std::vec::Vec<_> [INFO] [stderr] | [INFO] [stderr] = note: an implementation of `std::cmp::PartialEq` might be missing for `&std::vec::Vec` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:43:138 [INFO] [stderr] | [INFO] [stderr] 43 | let _ = insert_into(kingdom::table).values(Kingdom { id, name: "Kingdom".to_owned(), slug: "kingdom".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:44:168 [INFO] [stderr] | [INFO] [stderr] 44 | let _ = insert_into(phyla::table).values(Phyla { id, kingdom_slug: "kingdom".to_owned(), name: "Phylum".to_owned(), slug: "phylum".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:45:166 [INFO] [stderr] | [INFO] [stderr] 45 | let _ = insert_into(classes::table).values(Class { id, phylum_slug: "phylum".to_owned(), name: "Class".to_owned(), slug: "class".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:46:163 [INFO] [stderr] | [INFO] [stderr] 46 | let _ = insert_into(orders::table).values(Order { id, class_slug: "class".to_owned(), name: "Order".to_owned(), slug: "order".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:47:168 [INFO] [stderr] | [INFO] [stderr] 47 | let _ = insert_into(families::table).values(Family { id, class_slug: "class".to_owned(), name: "Family".to_owned(), slug: "family".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:48:165 [INFO] [stderr] | [INFO] [stderr] 48 | let _ = insert_into(genera::table).values(Genus { id, family_slug: "family".to_owned(), name: "Genus".to_owned(), slug: "genus".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:49:165 [INFO] [stderr] | [INFO] [stderr] 49 | insert_into(species::table).values(Species { id, genus_slug: "genus".to_owned(), name: "Species".to_owned(), slug: "species".to_owned() }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:51:220 [INFO] [stderr] | [INFO] [stderr] 51 | let user_id: Id = insert_into(users::table).values(NewUser { username: "username".to_owned(), email: "email@example.com".to_owned(), password_hash: password_hash("password").unwrap() }).get_result::(&POOL.get().unwrap()).unwrap().id; [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:53:188 [INFO] [stderr] | [INFO] [stderr] 53 | let _ = insert_into(cultivations::table).values(NewCultivation { user_id, species_slug: "species".to_owned(), nickname: None, identifier: "identifier".to_owned() }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters were supplied [INFO] [stderr] --> src/db/event.rs:59:27 [INFO] [stderr] | [INFO] [stderr] 42 | fn new_cultivation(identifier: String) { [INFO] [stderr] | -------------------------------------- defined here [INFO] [stderr] ... [INFO] [stderr] 59 | let cultivation = new_cultivation(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:69:100 [INFO] [stderr] | [INFO] [stderr] 69 | assert_eq!(&events::table.filter(events::identifier.eq("identifier")).first::(&POOL.get().unwrap()).unwrap().identifier, "identifier"); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:84:97 [INFO] [stderr] | [INFO] [stderr] 84 | assert!(&events::table.filter(events::identifier.eq("identifier")).first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters were supplied [INFO] [stderr] --> src/db/event.rs:90:27 [INFO] [stderr] | [INFO] [stderr] 42 | fn new_cultivation(identifier: String) { [INFO] [stderr] | -------------------------------------- defined here [INFO] [stderr] ... [INFO] [stderr] 90 | let cultivation = new_cultivation(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/event.rs:99:26 [INFO] [stderr] | [INFO] [stderr] 99 | }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `id` on type `()` [INFO] [stderr] --> src/db/event.rs:100:58 [INFO] [stderr] | [INFO] [stderr] 100 | assert!(!super::index(db, IndexEvent(cultivation.id, 1)).unwrap().len().is_empty()); [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `is_empty` found for type `usize` in the current scope [INFO] [stderr] --> src/db/event.rs:100:81 [INFO] [stderr] | [INFO] [stderr] 100 | assert!(!super::index(db, IndexEvent(cultivation.id, 1)).unwrap().len().is_empty()); [INFO] [stderr] | ^^^^^^^^ method not found in `usize` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters were supplied [INFO] [stderr] --> src/db/event.rs:106:27 [INFO] [stderr] | [INFO] [stderr] 42 | fn new_cultivation(identifier: String) { [INFO] [stderr] | -------------------------------------- defined here [INFO] [stderr] ... [INFO] [stderr] 106 | let cultivation = new_cultivation(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `id` on type `()` [INFO] [stderr] --> src/db/event.rs:107:57 [INFO] [stderr] | [INFO] [stderr] 107 | assert!(super::index(db, IndexEvent(cultivation.id, 1)).unwrap().is_empty()); [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters were supplied [INFO] [stderr] --> src/db/event.rs:119:27 [INFO] [stderr] | [INFO] [stderr] 42 | fn new_cultivation(identifier: String) { [INFO] [stderr] | -------------------------------------- defined here [INFO] [stderr] ... [INFO] [stderr] 119 | let cultivation = new_cultivation(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `id` on type `()` [INFO] [stderr] --> src/db/event.rs:120:57 [INFO] [stderr] | [INFO] [stderr] 120 | assert!(super::index(db, IndexEvent(cultivation.id, 2)).is_err()); [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/user.rs:46:72 [INFO] [stderr] | [INFO] [stderr] 46 | assert_eq!(users::table.find(id).select(users::id).first(&POOL.get().unwrap()), Some(id)); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/db/user.rs:46:9 [INFO] [stderr] | [INFO] [stderr] 46 | assert_eq!(users::table.find(id).select(users::id).first(&POOL.get().unwrap()), Some(id)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected enum `std::result::Result`, found enum `std::option::Option` [INFO] [stderr] | help: try using a variant of the expected type: `lib::error::_IMPL_SERIALIZE_FOR_ResponseType::_serde::export::Ok(*right_val)` [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::result::Result<_, diesel::result::Error>` [INFO] [stderr] found type `std::option::Option` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/user.rs:57:50 [INFO] [stderr] | [INFO] [stderr] 57 | assert!(users::table.first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/user.rs:68:50 [INFO] [stderr] | [INFO] [stderr] 68 | assert!(users::table.first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/user.rs:79:50 [INFO] [stderr] | [INFO] [stderr] 79 | assert!(users::table.first::(&POOL.get().unwrap()).is_err()); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/user.rs:96:54 [INFO] [stderr] | [INFO] [stderr] 96 | assert_eq!(users::table.filter::(&POOL.get().unwrap()).unwrap().len(), 1); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/user.rs:113:54 [INFO] [stderr] | [INFO] [stderr] 113 | assert_eq!(users::table.filter::(&POOL.get().unwrap()).unwrap().len(), 1); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/user.rs:123:29 [INFO] [stderr] | [INFO] [stderr] 123 | }).get_result(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/user.rs:143:26 [INFO] [stderr] | [INFO] [stderr] 143 | }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/user.rs:161:26 [INFO] [stderr] | [INFO] [stderr] 161 | }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for type `lib::tests::POOL` in the current scope [INFO] [stderr] --> src/db/user.rs:179:26 [INFO] [stderr] | [INFO] [stderr] 179 | }).execute(&POOL.get().unwrap()).unwrap(); [INFO] [stderr] | ^^^ method not found in `lib::tests::POOL` [INFO] [stderr] | [INFO] [stderr] ::: src/lib/tests.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | /// Database connection pool used in tests [INFO] [stderr] 100 | | pub static ref POOL: Pool = test_pool(); [INFO] [stderr] 101 | | [INFO] [stderr] ... | [INFO] [stderr] 106 | | Mutex::new(Box::leak(Box::new(Database(&*POOL).into()))); [INFO] [stderr] 107 | | } [INFO] [stderr] | |_- method `get` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `router::HttpMethod` [INFO] [stderr] candidate #2: `core::panic::BoxMeUp` [INFO] [stderr] candidate #3: `std::slice::SliceIndex` [INFO] [stderr] candidate #4: `diesel::row::NamedRow` [INFO] [stderr] candidate #5: `actix_web::middleware::session::SessionImpl` [INFO] [stderr] candidate #6: `rustls::server::StoresServerSessions` [INFO] [stderr] candidate #7: `rustls::client::StoresClientSessions` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `prelude` [INFO] [stderr] --> src/lib/tests.rs:12:22 [INFO] [stderr] | [INFO] [stderr] 12 | use diesel::{insert, prelude::*}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::future::Future` [INFO] [stderr] --> src/controllers/event.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 27 | use futures::future::Future; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `HttpMessage` [INFO] [stderr] --> src/controllers/user.rs:47:71 [INFO] [stderr] | [INFO] [stderr] 47 | use actix_web::{http::Method, http::StatusCode, test::TestServer, HttpMessage}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 353 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0063, E0255, E0277, E0308, E0369, E0412, E0422, E0423... [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: could not compile `server_iop`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "e888313cc715e7c4a7e1d2463ef7c71fc45f010ad5db2c1ef7af879791fd2569"` [INFO] running `"docker" "rm" "-f" "e888313cc715e7c4a7e1d2463ef7c71fc45f010ad5db2c1ef7af879791fd2569"` [INFO] [stdout] e888313cc715e7c4a7e1d2463ef7c71fc45f010ad5db2c1ef7af879791fd2569