[INFO] cloning repository https://github.com/ItsaMeTuni/calendar-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ItsaMeTuni/calendar-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FItsaMeTuni%2Fcalendar-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FItsaMeTuni%2Fcalendar-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28b14211cbf6c2dc47adec80a6de241c59b0f441 [INFO] checking ItsaMeTuni/calendar-server against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FItsaMeTuni%2Fcalendar-server" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ItsaMeTuni/calendar-server on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ItsaMeTuni/calendar-server [INFO] finished tweaking git repo https://github.com/ItsaMeTuni/calendar-server [INFO] tweaked toml for git repo https://github.com/ItsaMeTuni/calendar-server written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/ItsaMeTuni/calendar-server already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: dependencies.chrono.feature [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 828d3c0e0ae1060d30cd17847e85a8a531da1161c56809d695670bda51bcafda [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "828d3c0e0ae1060d30cd17847e85a8a531da1161c56809d695670bda51bcafda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "828d3c0e0ae1060d30cd17847e85a8a531da1161c56809d695670bda51bcafda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "828d3c0e0ae1060d30cd17847e85a8a531da1161c56809d695670bda51bcafda", kill_on_drop: false }` [INFO] [stdout] 828d3c0e0ae1060d30cd17847e85a8a531da1161c56809d695670bda51bcafda [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6246f6fdb7931a0efb40b39628598c2901f63593c362f547e295f44c819be85e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6246f6fdb7931a0efb40b39628598c2901f63593c362f547e295f44c819be85e", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: dependencies.chrono.feature [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling syn v1.0.41 [INFO] [stderr] Checking subtle v2.3.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking tinyvec v0.3.4 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking once_cell v1.4.1 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling hashbrown v0.9.0 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Checking siphasher v0.3.3 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Checking pin-project-lite v0.1.7 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling smallvec v1.4.2 [INFO] [stderr] Compiling state v0.4.1 [INFO] [stderr] Checking unicode-xid v0.1.0 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Checking instant v0.1.7 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling pear_codegen v0.1.4 [INFO] [stderr] Compiling rocket_codegen v0.4.5 [INFO] [stderr] Compiling rocket v0.4.5 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Checking phf_shared v0.8.0 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking net2 v0.2.35 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking inotify-sys v0.1.3 [INFO] [stderr] Checking filetime v0.2.12 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking inotify v0.7.1 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking parking_lot v0.11.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking scheduled-thread-pool v0.2.5 [INFO] [stderr] Checking block-cipher-trait v0.6.2 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking universal-hash v0.3.0 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking aead v0.2.0 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking aes-soft v0.3.3 [INFO] [stderr] Checking r2d2 v0.8.9 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking polyval v0.3.3 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking sha2 v0.9.1 [INFO] [stderr] Checking aes v0.3.2 [INFO] [stderr] Checking ghash v0.2.3 [INFO] [stderr] Checking hkdf v0.8.0 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Checking notify v4.0.15 [INFO] [stderr] Checking chrono v0.4.15 [INFO] [stderr] Checking aes-gcm v0.5.0 [INFO] [stderr] Checking postgres-protocol v0.5.2 [INFO] [stderr] Checking cookie v0.11.3 [INFO] [stderr] Checking postgres-types v0.1.2 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling async-trait v0.1.40 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling devise_core v0.2.0 [INFO] [stderr] Checking thiserror v1.0.20 [INFO] [stderr] Compiling devise_codegen v0.2.0 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Compiling devise v0.2.0 [INFO] [stderr] Compiling pear v0.1.4 [INFO] [stderr] Checking rocket_http v0.4.5 [INFO] [stderr] Checking serde v1.0.116 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking tokio-postgres v0.5.5 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking postgres v0.17.5 [INFO] [stderr] Checking r2d2_postgres v0.16.0 [INFO] [stderr] Checking rocket_contrib v0.4.5 [INFO] [stderr] Checking backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | /// Remove the last comma ',' from the query. Panic if [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | /// the character removed was not a comma. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::export::Formatter` [INFO] [stdout] --> src/routes/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::export::Formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_cell_from_row` [INFO] [stdout] --> src/routes/routes_calendar.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::database_helpers::{FromRow, get_cell_from_row}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::configs::Configs` [INFO] [stdout] --> src/routes/routes_event.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::configs::Configs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::State` [INFO] [stdout] --> src/routes/routes_event.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::State; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut`, `Deref` [INFO] [stdout] --> src/routes/routes_event.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IsNull`, `Type` [INFO] [stdout] --> src/routes/routes_event.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | use postgres::types::{ToSql, Type, IsNull}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `postgres::types::private::BytesMut` [INFO] [stdout] --> src/routes/routes_event.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use postgres::types::private::BytesMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/routes/routes_event.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:290:5 [INFO] [stdout] | [INFO] [stdout] 290 | /// A query parameter can only have one type and we want to be able to [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | / let query = " [INFO] [stdout] 295 | | SELECT * FROM events [INFO] [stdout] 296 | | WHERE [INFO] [stdout] 297 | | calendar_id = $1 [INFO] [stdout] ... | [INFO] [stdout] 303 | | LIMIT $7; [INFO] [stdout] 304 | | "; [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 291 | /// use `since` and `until` as either a date or a date-time, so we have [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | / let query = " [INFO] [stdout] 295 | | SELECT * FROM events [INFO] [stdout] 296 | | WHERE [INFO] [stdout] 297 | | calendar_id = $1 [INFO] [stdout] ... | [INFO] [stdout] 303 | | LIMIT $7; [INFO] [stdout] 304 | | "; [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | /// a pair of parameters for each variable, one for each type. If, for example, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 293 | /// `since` is a date, `$2` will be `NULL`. [INFO] [stdout] 294 | / let query = " [INFO] [stdout] 295 | | SELECT * FROM events [INFO] [stdout] 296 | | WHERE [INFO] [stdout] 297 | | calendar_id = $1 [INFO] [stdout] ... | [INFO] [stdout] 303 | | LIMIT $7; [INFO] [stdout] 304 | | "; [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:293:5 [INFO] [stdout] | [INFO] [stdout] 293 | /// `since` is a date, `$2` will be `NULL`. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 294 | / let query = " [INFO] [stdout] 295 | | SELECT * FROM events [INFO] [stdout] 296 | | WHERE [INFO] [stdout] 297 | | calendar_id = $1 [INFO] [stdout] ... | [INFO] [stdout] 303 | | LIMIT $7; [INFO] [stdout] 304 | | "; [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database_error::DatabaseError` [INFO] [stdout] --> src/routes/common_query_params.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::database_error::DatabaseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `postgres::types::ToSql` [INFO] [stdout] --> src/routes/common_query_params.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use postgres::types::ToSql; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `postgres::Row` [INFO] [stdout] --> src/routes/common_query_params.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use postgres::Row; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Try` [INFO] [stdout] --> src/routes/common_query_params.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::Try; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::outcome::Outcome::Failure` [INFO] [stdout] --> src/routes/common_query_params.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::outcome::Outcome::Failure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::Status` [INFO] [stdout] --> src/routes/common_query_params.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::http::Status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Date`, `TimeZone`, `Utc` [INFO] [stdout] --> src/event.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::{Date, DateTime, TimeZone, NaiveDate, NaiveDateTime, Utc, NaiveTime, Duration}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserializer`, `Serializer` [INFO] [stdout] --> src/event.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | use serde::{Serialize, Deserialize, Serializer, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/event.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/event.rs:631:13 [INFO] [stdout] | [INFO] [stdout] 631 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/event.rs:666:13 [INFO] [stdout] | [INFO] [stdout] 666 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveTime` [INFO] [stdout] --> src/event.rs:742:22 [INFO] [stdout] | [INFO] [stdout] 742 | use chrono::{NaiveTime, NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Date`, `IsoWeek`, `ParseError`, `Utc` [INFO] [stdout] --> src/recurrence/mod.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Date, Utc, NaiveDate, Duration, Datelike, Weekday, Month, IsoWeek, ParseError}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `Outcome`, `Request`, `State` [INFO] [stdout] --> src/configs.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::request::{FromRequest, Outcome, Request, State}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | /// Remove the last comma ',' from the query. Panic if [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | /// the character removed was not a comma. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::export::Formatter` [INFO] [stdout] --> src/routes/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::export::Formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_cell_from_row` [INFO] [stdout] --> src/routes/routes_calendar.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::database_helpers::{FromRow, get_cell_from_row}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::configs::Configs` [INFO] [stdout] --> src/routes/routes_event.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::configs::Configs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::State` [INFO] [stdout] --> src/routes/routes_event.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::State; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut`, `Deref` [INFO] [stdout] --> src/routes/routes_event.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IsNull`, `Type` [INFO] [stdout] --> src/routes/routes_event.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | use postgres::types::{ToSql, Type, IsNull}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `postgres::types::private::BytesMut` [INFO] [stdout] --> src/routes/routes_event.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use postgres::types::private::BytesMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/routes/routes_event.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:290:5 [INFO] [stdout] | [INFO] [stdout] 290 | /// A query parameter can only have one type and we want to be able to [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | / let query = " [INFO] [stdout] 295 | | SELECT * FROM events [INFO] [stdout] 296 | | WHERE [INFO] [stdout] 297 | | calendar_id = $1 [INFO] [stdout] ... | [INFO] [stdout] 303 | | LIMIT $7; [INFO] [stdout] 304 | | "; [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 291 | /// use `since` and `until` as either a date or a date-time, so we have [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | / let query = " [INFO] [stdout] 295 | | SELECT * FROM events [INFO] [stdout] 296 | | WHERE [INFO] [stdout] 297 | | calendar_id = $1 [INFO] [stdout] ... | [INFO] [stdout] 303 | | LIMIT $7; [INFO] [stdout] 304 | | "; [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | /// a pair of parameters for each variable, one for each type. If, for example, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 293 | /// `since` is a date, `$2` will be `NULL`. [INFO] [stdout] 294 | / let query = " [INFO] [stdout] 295 | | SELECT * FROM events [INFO] [stdout] 296 | | WHERE [INFO] [stdout] 297 | | calendar_id = $1 [INFO] [stdout] ... | [INFO] [stdout] 303 | | LIMIT $7; [INFO] [stdout] 304 | | "; [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes/routes_event.rs:293:5 [INFO] [stdout] | [INFO] [stdout] 293 | /// `since` is a date, `$2` will be `NULL`. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 294 | / let query = " [INFO] [stdout] 295 | | SELECT * FROM events [INFO] [stdout] 296 | | WHERE [INFO] [stdout] 297 | | calendar_id = $1 [INFO] [stdout] ... | [INFO] [stdout] 303 | | LIMIT $7; [INFO] [stdout] 304 | | "; [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database_error::DatabaseError` [INFO] [stdout] --> src/routes/common_query_params.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::database_error::DatabaseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `postgres::types::ToSql` [INFO] [stdout] --> src/routes/common_query_params.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use postgres::types::ToSql; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `postgres::Row` [INFO] [stdout] --> src/routes/common_query_params.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use postgres::Row; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Try` [INFO] [stdout] --> src/routes/common_query_params.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::Try; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::outcome::Outcome::Failure` [INFO] [stdout] --> src/routes/common_query_params.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::outcome::Outcome::Failure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::Status` [INFO] [stdout] --> src/routes/common_query_params.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::http::Status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Date`, `TimeZone`, `Utc` [INFO] [stdout] --> src/event.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::{Date, DateTime, TimeZone, NaiveDate, NaiveDateTime, Utc, NaiveTime, Duration}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserializer`, `Serializer` [INFO] [stdout] --> src/event.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | use serde::{Serialize, Deserialize, Serializer, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/event.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/event.rs:631:13 [INFO] [stdout] | [INFO] [stdout] 631 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/event.rs:666:13 [INFO] [stdout] | [INFO] [stdout] 666 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveTime` [INFO] [stdout] --> src/event.rs:742:22 [INFO] [stdout] | [INFO] [stdout] 742 | use chrono::{NaiveTime, NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Date`, `IsoWeek`, `ParseError`, `Utc` [INFO] [stdout] --> src/recurrence/mod.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Date, Utc, NaiveDate, Duration, Datelike, Weekday, Month, IsoWeek, ParseError}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `Outcome`, `Request`, `State` [INFO] [stdout] --> src/configs.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::request::{FromRequest, Outcome, Request, State}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/routes/mod.rs:186:37 [INFO] [stdout] | [INFO] [stdout] 186 | RouteResult::BadRequest(x) => Err(Box::new(BadRequestError)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/recurrence/mod.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | let mut count = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/recurrence/mod.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_conn` [INFO] [stdout] --> src/connection_pool.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_conn(&self) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FailedConstraint` [INFO] [stdout] --> src/database_error.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | FailedConstraint(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ExpectedRow` [INFO] [stdout] --> src/database_error.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | ExpectedRow(i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Forbidden` [INFO] [stdout] --> src/routes/mod.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | Forbidden, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CALENDAR_FIELDS` [INFO] [stdout] --> src/calendar.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const CALENDAR_FIELDS: &str = "id, tenant_id"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/calendar.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(id: i32) -> Calendar [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EVENT_FIELDS` [INFO] [stdout] --> src/event.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub const EVENT_FIELDS: &str = "id, parent_event_id, start_date, start_time, end_date, end_time, rrule, exdates, rdates"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_id` [INFO] [stdout] --> src/event.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn get_id(&self) -> i32 { self.id } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_span` [INFO] [stdout] --> src/event.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn get_span(&self) -> EventSpan { self.span } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_recurrence` [INFO] [stdout] --> src/event.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn get_recurrence(&self) -> EventRecurrence { self.recurrence.clone() } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_children` [INFO] [stdout] --> src/event.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn get_children(&self, db: &mut PgsqlConn) -> Result, DatabaseError> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_span` [INFO] [stdout] --> src/event.rs:401:12 [INFO] [stdout] | [INFO] [stdout] 401 | pub fn get_span(&self) -> EventSpan { self.span } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_id` [INFO] [stdout] --> src/event.rs:403:12 [INFO] [stdout] | [INFO] [stdout] 403 | pub fn get_id(&self) -> i32 { self.id } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_parent_id` [INFO] [stdout] --> src/event.rs:405:12 [INFO] [stdout] | [INFO] [stdout] 405 | pub fn get_parent_id(&self) -> Option { self.parent_id } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_span` [INFO] [stdout] --> src/event.rs:455:12 [INFO] [stdout] | [INFO] [stdout] 455 | pub fn get_span(&self) -> EventSpan { self.span } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_parent_id` [INFO] [stdout] --> src/event.rs:457:12 [INFO] [stdout] | [INFO] [stdout] 457 | pub fn get_parent_id(&self) -> i32 { self.parent_id } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_row` [INFO] [stdout] --> src/event.rs:459:8 [INFO] [stdout] | [INFO] [stdout] 459 | fn from_row(row: &Row) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidProperty` [INFO] [stdout] --> src/recurrence/recurrence_parser.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | InvalidProperty(&'static str), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `serialize` [INFO] [stdout] --> src/recurrence/serde.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn serialize(rule: &RecurrenceRule, serializer: S) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deserialize` [INFO] [stdout] --> src/recurrence/serde.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn deserialize<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_interval` [INFO] [stdout] --> src/recurrence/mod.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | fn set_interval(mut self, interval: i32) -> Self [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_limit_date` [INFO] [stdout] --> src/recurrence/mod.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_limit_date(mut self, date: NaiveDate) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_limit_count` [INFO] [stdout] --> src/recurrence/mod.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | fn set_limit_count(mut self, count: u32) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/event.rs:680:25 [INFO] [stdout] | [INFO] [stdout] 680 | seq.serialize_element(&format!("{}", date.format(DATE_FORMAT))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/routes/mod.rs:186:37 [INFO] [stdout] | [INFO] [stdout] 186 | RouteResult::BadRequest(x) => Err(Box::new(BadRequestError)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/recurrence/mod.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | let mut count = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/recurrence/mod.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_conn` [INFO] [stdout] --> src/connection_pool.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_conn(&self) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FailedConstraint` [INFO] [stdout] --> src/database_error.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | FailedConstraint(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ExpectedRow` [INFO] [stdout] --> src/database_error.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | ExpectedRow(i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Forbidden` [INFO] [stdout] --> src/routes/mod.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | Forbidden, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CALENDAR_FIELDS` [INFO] [stdout] --> src/calendar.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const CALENDAR_FIELDS: &str = "id, tenant_id"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/calendar.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(id: i32) -> Calendar [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EVENT_FIELDS` [INFO] [stdout] --> src/event.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub const EVENT_FIELDS: &str = "id, parent_event_id, start_date, start_time, end_date, end_time, rrule, exdates, rdates"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_id` [INFO] [stdout] --> src/event.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn get_id(&self) -> i32 { self.id } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_span` [INFO] [stdout] --> src/event.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn get_span(&self) -> EventSpan { self.span } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_recurrence` [INFO] [stdout] --> src/event.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn get_recurrence(&self) -> EventRecurrence { self.recurrence.clone() } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_children` [INFO] [stdout] --> src/event.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn get_children(&self, db: &mut PgsqlConn) -> Result, DatabaseError> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_span` [INFO] [stdout] --> src/event.rs:401:12 [INFO] [stdout] | [INFO] [stdout] 401 | pub fn get_span(&self) -> EventSpan { self.span } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_id` [INFO] [stdout] --> src/event.rs:403:12 [INFO] [stdout] | [INFO] [stdout] 403 | pub fn get_id(&self) -> i32 { self.id } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_parent_id` [INFO] [stdout] --> src/event.rs:405:12 [INFO] [stdout] | [INFO] [stdout] 405 | pub fn get_parent_id(&self) -> Option { self.parent_id } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_span` [INFO] [stdout] --> src/event.rs:455:12 [INFO] [stdout] | [INFO] [stdout] 455 | pub fn get_span(&self) -> EventSpan { self.span } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_parent_id` [INFO] [stdout] --> src/event.rs:457:12 [INFO] [stdout] | [INFO] [stdout] 457 | pub fn get_parent_id(&self) -> i32 { self.parent_id } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_row` [INFO] [stdout] --> src/event.rs:459:8 [INFO] [stdout] | [INFO] [stdout] 459 | fn from_row(row: &Row) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidProperty` [INFO] [stdout] --> src/recurrence/recurrence_parser.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | InvalidProperty(&'static str), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `serialize` [INFO] [stdout] --> src/recurrence/serde.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn serialize(rule: &RecurrenceRule, serializer: S) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deserialize` [INFO] [stdout] --> src/recurrence/serde.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn deserialize<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_interval` [INFO] [stdout] --> src/recurrence/mod.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | fn set_interval(mut self, interval: i32) -> Self [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_limit_date` [INFO] [stdout] --> src/recurrence/mod.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_limit_date(mut self, date: NaiveDate) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_limit_count` [INFO] [stdout] --> src/recurrence/mod.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | fn set_limit_count(mut self, count: u32) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/event.rs:680:25 [INFO] [stdout] | [INFO] [stdout] 680 | seq.serialize_element(&format!("{}", date.format(DATE_FORMAT))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 51s [INFO] running `Command { std: "docker" "inspect" "6246f6fdb7931a0efb40b39628598c2901f63593c362f547e295f44c819be85e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6246f6fdb7931a0efb40b39628598c2901f63593c362f547e295f44c819be85e", kill_on_drop: false }` [INFO] [stdout] 6246f6fdb7931a0efb40b39628598c2901f63593c362f547e295f44c819be85e