[INFO] cloning repository https://github.com/ajuvercr/only_scan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ajuvercr/only_scan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajuvercr%2Fonly_scan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajuvercr%2Fonly_scan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 105b076aefe475ef096f783e957922e75526e372 [INFO] building ajuvercr/only_scan against master#a7f375789bab1a4e4a291c963081a8ca7d2b6bd7 for pr-93180 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajuvercr%2Fonly_scan" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ajuvercr/only_scan on toolchain a7f375789bab1a4e4a291c963081a8ca7d2b6bd7 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ajuvercr/only_scan [INFO] finished tweaking git repo https://github.com/ajuvercr/only_scan [INFO] tweaked toml for git repo https://github.com/ajuvercr/only_scan written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/ajuvercr/only_scan already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e0b2460fbf6dd9e9ff7fbef6916b1e018b8cf1f55d5afd1ca740f9b321304a2f [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" "e0b2460fbf6dd9e9ff7fbef6916b1e018b8cf1f55d5afd1ca740f9b321304a2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e0b2460fbf6dd9e9ff7fbef6916b1e018b8cf1f55d5afd1ca740f9b321304a2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0b2460fbf6dd9e9ff7fbef6916b1e018b8cf1f55d5afd1ca740f9b321304a2f", kill_on_drop: false }` [INFO] [stdout] e0b2460fbf6dd9e9ff7fbef6916b1e018b8cf1f55d5afd1ca740f9b321304a2f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e0eba328a501f32c46dbb34a873d7eaad7266c22b0694f40dcac3286d972c1e [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" "8e0eba328a501f32c46dbb34a873d7eaad7266c22b0694f40dcac3286d972c1e", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.113 [INFO] [stderr] Compiling serde_derive v1.0.134 [INFO] [stderr] Compiling serde v1.0.134 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Compiling futures-sink v0.3.19 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling futures-io v0.3.19 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling serde_json v1.0.76 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling state v0.5.2 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling spin v0.9.2 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling normpath v0.3.2 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling byteorder v0.3.13 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling figment v0.10.6 [INFO] [stderr] Compiling multer v2.0.2 [INFO] [stderr] Compiling rocket v0.5.0-rc.1 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Compiling socket2 v0.4.3 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling filetime v0.2.15 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling inotify v0.7.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.5 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling r2d2 v0.8.9 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling notify v4.0.17 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling cool-id-generator v1.0.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.19 [INFO] [stderr] Compiling tracing-attributes v0.1.18 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling feignhttp-codegen v0.3.0 [INFO] [stderr] Compiling crud_helper v0.1.0 (/opt/rustwide/workdir/crud_helper) [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling async-stream v0.3.2 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling rocket_sync_db_pools_codegen v0.1.0-rc.1 [INFO] [stderr] Compiling tokio v1.15.0 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling futures-executor v0.3.19 [INFO] [stderr] Compiling futures v0.3.19 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling ubyte v0.10.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling h2 v0.3.10 [INFO] [stderr] Compiling diesel v1.4.8 [INFO] [stderr] Compiling handlebars v3.5.5 [INFO] [stderr] Compiling hyper v0.14.16 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.9 [INFO] [stderr] Compiling feignhttp v0.3.2 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 [INFO] [stderr] Compiling r2d2-diesel v1.0.0 [INFO] [stderr] Compiling rocket_dyn_templates v0.1.0-rc.1 [INFO] [stderr] Compiling rocket_sync_db_pools v0.1.0-rc.1 [INFO] [stderr] Compiling only_scan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] #[derive(FromForm, Deserialize, Serialize, Debug, AsChangeset, Clone)] [INFO] [stdout] #[table_name = "tasks"] pub struct TaskBuilder [INFO] [stdout] { [INFO] [stdout] pub done : :: std :: option :: Option < bool >, pub img : :: std :: option [INFO] [stdout] :: Option < Option < String > >, pub title : :: std :: option :: Option < [INFO] [stdout] String >, pub description : :: std :: option :: Option < String >, pub [INFO] [stdout] points : :: std :: option :: Option < i32 >, pub parent : :: std :: option [INFO] [stdout] :: Option < Option < i32 > >, pub children : :: std :: option :: Option < [INFO] [stdout] Vec < i32 > > [INFO] [stdout] } impl TaskBuilder [INFO] [stdout] { [INFO] [stdout] pub fn new() -> Self [INFO] [stdout] { [INFO] [stdout] Self [INFO] [stdout] { [INFO] [stdout] done : None, img : None, title : None, description : None, points [INFO] [stdout] : None, parent : None, children : None, [INFO] [stdout] } [INFO] [stdout] } pub fn update(self, this : & mut Task) [INFO] [stdout] { [INFO] [stdout] if let Some(x) = self.done { this.done = x ; } if let Some(x) = [INFO] [stdout] self.img { this.img = x ; } if let Some(x) = self.title [INFO] [stdout] { this.title = x ; } if let Some(x) = self.description [INFO] [stdout] { this.description = x ; } if let Some(x) = self.points [INFO] [stdout] { this.points = x ; } if let Some(x) = self.parent [INFO] [stdout] { this.parent = x ; } if let Some(x) = self.children [INFO] [stdout] { this.children = x ; } [INFO] [stdout] } [INFO] [stdout] } impl Task [INFO] [stdout] { [INFO] [stdout] pub fn builder() -> TaskBuilder { TaskBuilder :: new() } pub fn [INFO] [stdout] update(& mut self, this : TaskBuilder) [INFO] [stdout] { [INFO] [stdout] if let Some(x) = this.done { self.done = x ; } if let Some(x) = [INFO] [stdout] this.img { self.img = x ; } if let Some(x) = this.title [INFO] [stdout] { self.title = x ; } if let Some(x) = this.description [INFO] [stdout] { self.description = x ; } if let Some(x) = this.points [INFO] [stdout] { self.points = x ; } if let Some(x) = this.parent [INFO] [stdout] { self.parent = x ; } if let Some(x) = this.children [INFO] [stdout] { self.children = x ; } [INFO] [stdout] } [INFO] [stdout] } impl TaskBuilder [INFO] [stdout] { [INFO] [stdout] pub fn with_done(mut self, t : bool) -> Self [INFO] [stdout] { self.done = t.into() ; self } pub fn [INFO] [stdout] with_img(mut self, t : Option < String >) -> Self [INFO] [stdout] { self.img = t.into() ; self } pub fn with_title(mut self, t : String) -> [INFO] [stdout] Self { self.title = t.into() ; self } pub fn [INFO] [stdout] with_description(mut self, t : String) -> Self [INFO] [stdout] { self.description = t.into() ; self } pub fn [INFO] [stdout] with_points(mut self, t : i32) -> Self { self.points = t.into() ; self } [INFO] [stdout] pub fn with_parent(mut self, t : Option < i32 >) -> Self [INFO] [stdout] { self.parent = t.into() ; self } pub fn [INFO] [stdout] with_children(mut self, t : Vec < i32 >) -> Self [INFO] [stdout] { self.children = t.into() ; self } [INFO] [stdout] } [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/oauth/user.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | request::{self, FromRequest, Outcome}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/scrum/mod.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::{Build, Rocket, State}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/scrum/mod.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::oauth::{AuthUser, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `LOGIN_URL` [INFO] [stdout] --> src/oauth/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const LOGIN_URL: &'static str ="http://localhost:8001/oauth/authorize?response_type=code&client_id=only-scan&redirect_uri=http://localhost:8000/oauth/callback&state=bla"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6m 00s [INFO] running `Command { std: "docker" "inspect" "8e0eba328a501f32c46dbb34a873d7eaad7266c22b0694f40dcac3286d972c1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e0eba328a501f32c46dbb34a873d7eaad7266c22b0694f40dcac3286d972c1e", kill_on_drop: false }` [INFO] [stdout] 8e0eba328a501f32c46dbb34a873d7eaad7266c22b0694f40dcac3286d972c1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 31ed74f98f07ad2cf0106f28d0de2e61907c6e4eb39c1ca0442a70550d03c0ca [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" "31ed74f98f07ad2cf0106f28d0de2e61907c6e4eb39c1ca0442a70550d03c0ca", kill_on_drop: false }` [INFO] [stderr] Compiling migrations_internals v1.4.1 [INFO] [stderr] Compiling migrations_macros v1.4.2 [INFO] [stderr] Compiling diesel_migrations v1.4.0 [INFO] [stderr] Compiling only_scan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] #[derive(FromForm, Deserialize, Serialize, Debug, AsChangeset, Clone)] [INFO] [stdout] #[table_name = "tasks"] pub struct TaskBuilder [INFO] [stdout] { [INFO] [stdout] pub done : :: std :: option :: Option < bool >, pub img : :: std :: option [INFO] [stdout] :: Option < Option < String > >, pub title : :: std :: option :: Option < [INFO] [stdout] String >, pub description : :: std :: option :: Option < String >, pub [INFO] [stdout] points : :: std :: option :: Option < i32 >, pub parent : :: std :: option [INFO] [stdout] :: Option < Option < i32 > >, pub children : :: std :: option :: Option < [INFO] [stdout] Vec < i32 > > [INFO] [stdout] } impl TaskBuilder [INFO] [stdout] { [INFO] [stdout] pub fn new() -> Self [INFO] [stdout] { [INFO] [stdout] Self [INFO] [stdout] { [INFO] [stdout] done : None, img : None, title : None, description : None, points [INFO] [stdout] : None, parent : None, children : None, [INFO] [stdout] } [INFO] [stdout] } pub fn update(self, this : & mut Task) [INFO] [stdout] { [INFO] [stdout] if let Some(x) = self.done { this.done = x ; } if let Some(x) = [INFO] [stdout] self.img { this.img = x ; } if let Some(x) = self.title [INFO] [stdout] { this.title = x ; } if let Some(x) = self.description [INFO] [stdout] { this.description = x ; } if let Some(x) = self.points [INFO] [stdout] { this.points = x ; } if let Some(x) = self.parent [INFO] [stdout] { this.parent = x ; } if let Some(x) = self.children [INFO] [stdout] { this.children = x ; } [INFO] [stdout] } [INFO] [stdout] } impl Task [INFO] [stdout] { [INFO] [stdout] pub fn builder() -> TaskBuilder { TaskBuilder :: new() } pub fn [INFO] [stdout] update(& mut self, this : TaskBuilder) [INFO] [stdout] { [INFO] [stdout] if let Some(x) = this.done { self.done = x ; } if let Some(x) = [INFO] [stdout] this.img { self.img = x ; } if let Some(x) = this.title [INFO] [stdout] { self.title = x ; } if let Some(x) = this.description [INFO] [stdout] { self.description = x ; } if let Some(x) = this.points [INFO] [stdout] { self.points = x ; } if let Some(x) = this.parent [INFO] [stdout] { self.parent = x ; } if let Some(x) = this.children [INFO] [stdout] { self.children = x ; } [INFO] [stdout] } [INFO] [stdout] } impl TaskBuilder [INFO] [stdout] { [INFO] [stdout] pub fn with_done(mut self, t : bool) -> Self [INFO] [stdout] { self.done = t.into() ; self } pub fn [INFO] [stdout] with_img(mut self, t : Option < String >) -> Self [INFO] [stdout] { self.img = t.into() ; self } pub fn with_title(mut self, t : String) -> [INFO] [stdout] Self { self.title = t.into() ; self } pub fn [INFO] [stdout] with_description(mut self, t : String) -> Self [INFO] [stdout] { self.description = t.into() ; self } pub fn [INFO] [stdout] with_points(mut self, t : i32) -> Self { self.points = t.into() ; self } [INFO] [stdout] pub fn with_parent(mut self, t : Option < i32 >) -> Self [INFO] [stdout] { self.parent = t.into() ; self } pub fn [INFO] [stdout] with_children(mut self, t : Vec < i32 >) -> Self [INFO] [stdout] { self.children = t.into() ; self } [INFO] [stdout] } [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/oauth/user.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | request::{self, FromRequest, Outcome}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/scrum/mod.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::{Build, Rocket, State}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/scrum/mod.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::oauth::{AuthUser, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `LOGIN_URL` [INFO] [stdout] --> src/oauth/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const LOGIN_URL: &'static str ="http://localhost:8001/oauth/authorize?response_type=code&client_id=only-scan&redirect_uri=http://localhost:8000/oauth/callback&state=bla"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 17.39s [INFO] running `Command { std: "docker" "inspect" "31ed74f98f07ad2cf0106f28d0de2e61907c6e4eb39c1ca0442a70550d03c0ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31ed74f98f07ad2cf0106f28d0de2e61907c6e4eb39c1ca0442a70550d03c0ca", kill_on_drop: false }` [INFO] [stdout] 31ed74f98f07ad2cf0106f28d0de2e61907c6e4eb39c1ca0442a70550d03c0ca