[INFO] cloning repository https://github.com/Akamatsu21/cedar-agent [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Akamatsu21/cedar-agent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkamatsu21%2Fcedar-agent", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkamatsu21%2Fcedar-agent'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3ea4a2b771b0120ee84bccd6bd4bca1133e1d881 [INFO] building Akamatsu21/cedar-agent against master#d59f06fc64844ec2073e5e888f7470989ef25ff9 for pr-119440 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkamatsu21%2Fcedar-agent" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Akamatsu21/cedar-agent on toolchain d59f06fc64844ec2073e5e888f7470989ef25ff9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d59f06fc64844ec2073e5e888f7470989ef25ff9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Akamatsu21/cedar-agent [INFO] finished tweaking git repo https://github.com/Akamatsu21/cedar-agent [INFO] tweaked toml for git repo https://github.com/Akamatsu21/cedar-agent written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Akamatsu21/cedar-agent already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d59f06fc64844ec2073e5e888f7470989ef25ff9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rustc_lexer v0.1.0 [INFO] [stderr] Downloaded clap v4.3.8 [INFO] [stderr] Downloaded okapi v0.7.0-rc.1 [INFO] [stderr] Downloaded cedar-policy v2.4.2 [INFO] [stderr] Downloaded thread-id v4.1.0 [INFO] [stderr] Downloaded serde_with_macros v3.0.0 [INFO] [stderr] Downloaded rocket_okapi_codegen v0.8.0-rc.3 [INFO] [stderr] Downloaded toml v0.7.5 [INFO] [stderr] Downloaded cedar-policy-validator v2.4.2 [INFO] [stderr] Downloaded cedar-policy-core v2.4.2 [INFO] [stderr] Downloaded rocket_okapi v0.8.0-rc.3 [INFO] [stderr] Downloaded tokio v1.29.0 [INFO] [stderr] Downloaded serde_with v3.0.0 [INFO] [stderr] Downloaded clap_builder v4.3.8 [INFO] [stderr] Downloaded unicode-security v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d59f06fc64844ec2073e5e888f7470989ef25ff9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 54756321b83c44f2019427ab7dc2826ab8854abd242b96b25ab113b0ffb34032 [INFO] running `Command { std: "docker" "start" "-a" "54756321b83c44f2019427ab7dc2826ab8854abd242b96b25ab113b0ffb34032", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "54756321b83c44f2019427ab7dc2826ab8854abd242b96b25ab113b0ffb34032", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54756321b83c44f2019427ab7dc2826ab8854abd242b96b25ab113b0ffb34032", kill_on_drop: false }` [INFO] [stdout] 54756321b83c44f2019427ab7dc2826ab8854abd242b96b25ab113b0ffb34032 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d59f06fc64844ec2073e5e888f7470989ef25ff9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7f9aad3fa5010069ed01ad35aa3692733911eb0cbababaf06a0a197a68ba40c [INFO] running `Command { std: "docker" "start" "-a" "d7f9aad3fa5010069ed01ad35aa3692733911eb0cbababaf06a0a197a68ba40c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Compiling itoa v1.0.6 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.0 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling equivalent v1.0.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling log v0.4.19 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling serde_json v1.0.99 [INFO] [stderr] Compiling tokio v1.29.0 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling time-core v0.1.1 [INFO] [stderr] Compiling rustix v0.37.20 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling ref-cast v1.0.16 [INFO] [stderr] Compiling time-macros v0.2.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Compiling regex-syntax v0.7.2 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling uncased v0.9.9 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling ena v0.14.2 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling petgraph v0.6.3 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling state v0.5.3 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling bitflags v2.3.3 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling time v0.3.22 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling futures v0.3.28 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Compiling winnow v0.4.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex v1.8.4 [INFO] [stderr] Compiling figment v0.10.10 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling tempfile v3.6.0 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Compiling schemars v0.8.12 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling is-terminal v0.4.7 [INFO] [stderr] Compiling anstyle-parse v0.2.1 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling rustc_lexer v0.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling lalrpop-util v0.20.0 [INFO] [stderr] Compiling rocket v0.5.0-rc.3 [INFO] [stderr] Compiling lalrpop v0.20.0 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling unicode-script v0.5.5 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling dyn-clone v1.0.11 [INFO] [stderr] Compiling anstyle v1.0.1 [INFO] [stderr] Compiling ipnet v2.8.0 [INFO] [stderr] Compiling anstyle-query v1.0.0 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Compiling destructure_traitobject v0.2.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling unsafe-any-ors v1.0.0 [INFO] [stderr] Compiling anstream v0.3.2 [INFO] [stderr] Compiling unicode-security v0.1.0 [INFO] [stderr] Compiling darling_core v0.20.1 [INFO] [stderr] Compiling devise_core v0.4.1 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling ordered-float v2.10.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling iana-time-zone v0.1.57 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling clap_lex v0.5.0 [INFO] [stderr] Compiling chrono v0.4.26 [INFO] [stderr] Compiling clap_builder v4.3.8 [INFO] [stderr] Compiling typemap-ors v1.0.0 [INFO] [stderr] Compiling thread-id v4.1.0 [INFO] [stderr] Compiling arc-swap v1.6.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling log-mdc v0.1.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling async-lock v2.7.0 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling ref-cast-impl v1.0.16 [INFO] [stderr] Compiling pear_codegen v0.2.4 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling devise_codegen v0.4.1 [INFO] [stderr] Compiling miette-derive v5.10.0 [INFO] [stderr] Compiling schemars_derive v0.8.12 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling darling_macro v0.20.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling clap_derive v4.3.2 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling devise v0.4.1 [INFO] [stderr] Compiling darling v0.20.1 [INFO] [stderr] Compiling serde_with_macros v3.0.0 [INFO] [stderr] Compiling pear v0.2.4 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling miette v5.10.0 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.3 [INFO] [stderr] Compiling clap v4.3.8 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.3 [INFO] [stderr] Compiling rocket_okapi_codegen v0.8.0-rc.3 [INFO] [stderr] Compiling tokio-util v0.7.8 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling cedar-policy-core v2.4.2 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling serde_spanned v0.6.3 [INFO] [stderr] Compiling smol_str v0.2.0 [INFO] [stderr] Compiling ubyte v0.10.3 [INFO] [stderr] Compiling serde-value v0.7.0 [INFO] [stderr] Compiling envy v0.4.2 [INFO] [stderr] Compiling toml_edit v0.19.11 [INFO] [stderr] Compiling h2 v0.3.20 [INFO] [stderr] Compiling serde_yaml v0.8.26 [INFO] [stderr] Compiling serde_with v3.0.0 [INFO] [stderr] Compiling log4rs v1.2.0 [INFO] [stderr] Compiling okapi v0.7.0-rc.1 [INFO] [stderr] Compiling toml v0.7.5 [INFO] [stderr] Compiling cedar-policy-validator v2.4.2 [INFO] [stderr] Compiling rocket_okapi v0.8.0-rc.3 [INFO] [stderr] Compiling cedar-policy v2.4.2 [INFO] [stderr] Compiling cedar-agent v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `is_authorized` [INFO] [stdout] --> src/routes/authorization.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub async fn is_authorized( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_entities` [INFO] [stdout] --> src/routes/data.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn get_entities( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_entities` [INFO] [stdout] --> src/routes/data.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn update_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_entities` [INFO] [stdout] --> src/routes/data.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn delete_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policies` [INFO] [stdout] --> src/routes/policies.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn get_policies( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policy` [INFO] [stdout] --> src/routes/policies.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn get_policy( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_policy` [INFO] [stdout] --> src/routes/policies.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn create_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policies` [INFO] [stdout] --> src/routes/policies.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn update_policies( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policy` [INFO] [stdout] --> src/routes/policies.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn update_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_policy` [INFO] [stdout] --> src/routes/policies.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn delete_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `healthy` [INFO] [stdout] --> src/routes/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn healthy() -> status::NoContent { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/services/policies/memory.rs:95:64 [INFO] [stdout] | [INFO] [stdout] 95 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `schemas::policies::Policy` does not implement `Borrow`, so calling `borrow` on `&schemas::policies::Policy` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `is_authorized` [INFO] [stdout] --> src/routes/authorization.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub async fn is_authorized( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_entities` [INFO] [stdout] --> src/routes/data.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn get_entities( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_entities` [INFO] [stdout] --> src/routes/data.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn update_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_entities` [INFO] [stdout] --> src/routes/data.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn delete_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policies` [INFO] [stdout] --> src/routes/policies.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn get_policies( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policy` [INFO] [stdout] --> src/routes/policies.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn get_policy( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_policy` [INFO] [stdout] --> src/routes/policies.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn create_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policies` [INFO] [stdout] --> src/routes/policies.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn update_policies( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policy` [INFO] [stdout] --> src/routes/policies.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn update_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_policy` [INFO] [stdout] --> src/routes/policies.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn delete_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `healthy` [INFO] [stdout] --> src/routes/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn healthy() -> status::NoContent { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data::DataStore` [INFO] [stdout] --> src/services/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use data::DataStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policies::PolicyStore` [INFO] [stdout] --> src/services/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use policies::PolicyStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_entities` is never used [INFO] [stdout] --> src/schemas/authorization.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl AuthorizationRequest { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_entities(self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/schemas/authorization.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl AuthorizationCall { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 64 | [INFO] [stdout] 65 | pub fn new(principal: Option, action: Option, resource: Option, context:Option, e... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/services/policies/memory.rs:95:64 [INFO] [stdout] | [INFO] [stdout] 95 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `schemas::policies::Policy` does not implement `Borrow`, so calling `borrow` on `&schemas::policies::Policy` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 47.14s [INFO] running `Command { std: "docker" "inspect" "d7f9aad3fa5010069ed01ad35aa3692733911eb0cbababaf06a0a197a68ba40c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7f9aad3fa5010069ed01ad35aa3692733911eb0cbababaf06a0a197a68ba40c", kill_on_drop: false }` [INFO] [stdout] d7f9aad3fa5010069ed01ad35aa3692733911eb0cbababaf06a0a197a68ba40c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d59f06fc64844ec2073e5e888f7470989ef25ff9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1418b5d813d8f39b2078989babf23aa9b3c0903f4b0d275a1454947db5579064 [INFO] running `Command { std: "docker" "start" "-a" "1418b5d813d8f39b2078989babf23aa9b3c0903f4b0d275a1454947db5579064", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `is_authorized` [INFO] [stdout] --> src/routes/authorization.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub async fn is_authorized( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_entities` [INFO] [stdout] --> src/routes/data.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn get_entities( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_entities` [INFO] [stdout] --> src/routes/data.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn update_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_entities` [INFO] [stdout] --> src/routes/data.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn delete_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policies` [INFO] [stdout] --> src/routes/policies.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn get_policies( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policy` [INFO] [stdout] --> src/routes/policies.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn get_policy( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_policy` [INFO] [stdout] --> src/routes/policies.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn create_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policies` [INFO] [stdout] --> src/routes/policies.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn update_policies( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policy` [INFO] [stdout] --> src/routes/policies.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn update_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_policy` [INFO] [stdout] --> src/routes/policies.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn delete_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `healthy` [INFO] [stdout] --> src/routes/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn healthy() -> status::NoContent { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling cedar-agent v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/services/policies/memory.rs:95:64 [INFO] [stdout] | [INFO] [stdout] 95 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `schemas::policies::Policy` does not implement `Borrow`, so calling `borrow` on `&schemas::policies::Policy` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `is_authorized` [INFO] [stdout] --> src/routes/authorization.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub async fn is_authorized( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_entities` [INFO] [stdout] --> src/routes/data.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn get_entities( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_entities` [INFO] [stdout] --> src/routes/data.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn update_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_entities` [INFO] [stdout] --> src/routes/data.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn delete_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policies` [INFO] [stdout] --> src/routes/policies.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn get_policies( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policy` [INFO] [stdout] --> src/routes/policies.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn get_policy( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_policy` [INFO] [stdout] --> src/routes/policies.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn create_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policies` [INFO] [stdout] --> src/routes/policies.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn update_policies( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policy` [INFO] [stdout] --> src/routes/policies.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn update_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_policy` [INFO] [stdout] --> src/routes/policies.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn delete_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `healthy` [INFO] [stdout] --> src/routes/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn healthy() -> status::NoContent { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data::DataStore` [INFO] [stdout] --> src/services/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use data::DataStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policies::PolicyStore` [INFO] [stdout] --> src/services/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use policies::PolicyStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_entities` is never used [INFO] [stdout] --> src/schemas/authorization.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl AuthorizationRequest { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_entities(self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/schemas/authorization.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl AuthorizationCall { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 64 | [INFO] [stdout] 65 | pub fn new(principal: Option, action: Option, resource: Option, context:Option, e... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/services/policies/memory.rs:95:64 [INFO] [stdout] | [INFO] [stdout] 95 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `schemas::policies::Policy` does not implement `Borrow`, so calling `borrow` on `&schemas::policies::Policy` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `is_authorized` [INFO] [stdout] --> src/routes/authorization.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub async fn is_authorized( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_entities` [INFO] [stdout] --> src/routes/data.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn get_entities( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_entities` [INFO] [stdout] --> src/routes/data.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn update_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_entities` [INFO] [stdout] --> src/routes/data.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn delete_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policies` [INFO] [stdout] --> src/routes/policies.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn get_policies( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policy` [INFO] [stdout] --> src/routes/policies.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn get_policy( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_policy` [INFO] [stdout] --> src/routes/policies.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn create_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policies` [INFO] [stdout] --> src/routes/policies.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn update_policies( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policy` [INFO] [stdout] --> src/routes/policies.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn update_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_policy` [INFO] [stdout] --> src/routes/policies.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn delete_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `healthy` [INFO] [stdout] --> src/routes/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn healthy() -> status::NoContent { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `is_authorized` [INFO] [stdout] --> src/routes/authorization.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub async fn is_authorized( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_entities` [INFO] [stdout] --> src/routes/data.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn get_entities( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_entities` [INFO] [stdout] --> src/routes/data.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn update_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_entities` [INFO] [stdout] --> src/routes/data.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn delete_entities( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policies` [INFO] [stdout] --> src/routes/policies.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn get_policies( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_policy` [INFO] [stdout] --> src/routes/policies.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn get_policy( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_policy` [INFO] [stdout] --> src/routes/policies.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn create_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policies` [INFO] [stdout] --> src/routes/policies.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn update_policies( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_policy` [INFO] [stdout] --> src/routes/policies.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn update_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_policy` [INFO] [stdout] --> src/routes/policies.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn delete_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `healthy` [INFO] [stdout] --> src/routes/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn healthy() -> status::NoContent { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data::DataStore` [INFO] [stdout] --> src/services/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use data::DataStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policies::PolicyStore` [INFO] [stdout] --> src/services/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use policies::PolicyStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/services/policies/memory.rs:95:64 [INFO] [stdout] | [INFO] [stdout] 95 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `schemas::policies::Policy` does not implement `Borrow`, so calling `borrow` on `&schemas::policies::Policy` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_entities` is never used [INFO] [stdout] --> src/schemas/authorization.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl AuthorizationRequest { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_entities(self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/schemas/authorization.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl AuthorizationCall { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 64 | [INFO] [stdout] 65 | pub fn new(principal: Option, action: Option, resource: Option, context:Option, e... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/services/policies/memory.rs:95:64 [INFO] [stdout] | [INFO] [stdout] 95 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `schemas::policies::Policy` does not implement `Borrow`, so calling `borrow` on `&schemas::policies::Policy` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.76s [INFO] running `Command { std: "docker" "inspect" "1418b5d813d8f39b2078989babf23aa9b3c0903f4b0d275a1454947db5579064", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1418b5d813d8f39b2078989babf23aa9b3c0903f4b0d275a1454947db5579064", kill_on_drop: false }` [INFO] [stdout] 1418b5d813d8f39b2078989babf23aa9b3c0903f4b0d275a1454947db5579064