[INFO] fetching crate cedar-agent 0.1.1... [INFO] checking cedar-agent-0.1.1 against master#331249a94930adb3d2a7243d946733b63324b2d6 for pr-112119 [INFO] extracting crate cedar-agent 0.1.1 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate cedar-agent 0.1.1 on toolchain 331249a94930adb3d2a7243d946733b63324b2d6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+331249a94930adb3d2a7243d946733b63324b2d6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cedar-agent 0.1.1 [INFO] finished tweaking crates.io crate cedar-agent 0.1.1 [INFO] tweaked toml for crates.io crate cedar-agent 0.1.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate crates.io crate cedar-agent 0.1.1 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" "+331249a94930adb3d2a7243d946733b63324b2d6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive_arbitrary v1.3.0 [INFO] [stderr] Downloaded rustc_lexer v0.1.0 [INFO] [stderr] Downloaded okapi v0.7.0-rc.1 [INFO] [stderr] Downloaded rocket_okapi_codegen v0.8.0-rc.2 [INFO] [stderr] Downloaded unicode-security v0.1.0 [INFO] [stderr] Downloaded cedar-policy-core v2.0.2 [INFO] [stderr] Downloaded rocket_okapi v0.8.0-rc.2 [INFO] [stderr] Downloaded cedar-policy v2.0.2 [INFO] [stderr] Downloaded cedar-policy-validator v2.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+331249a94930adb3d2a7243d946733b63324b2d6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e9c9c23756a7fe59de63ca83cbe7ddc31dd64a60b8f04278ace85d5f180cbad2 [INFO] running `Command { std: "docker" "start" "-a" "e9c9c23756a7fe59de63ca83cbe7ddc31dd64a60b8f04278ace85d5f180cbad2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e9c9c23756a7fe59de63ca83cbe7ddc31dd64a60b8f04278ace85d5f180cbad2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9c9c23756a7fe59de63ca83cbe7ddc31dd64a60b8f04278ace85d5f180cbad2", kill_on_drop: false }` [INFO] [stdout] e9c9c23756a7fe59de63ca83cbe7ddc31dd64a60b8f04278ace85d5f180cbad2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+331249a94930adb3d2a7243d946733b63324b2d6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 440f74d8125a15a5ca3d2b92793dad43beaf8b6e22a213b8027e3cf8bbd7ebdc [INFO] running `Command { std: "docker" "start" "-a" "440f74d8125a15a5ca3d2b92793dad43beaf8b6e22a213b8027e3cf8bbd7ebdc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.56 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling serde v1.0.163 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling io-lifetimes v1.0.10 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling serde_json v1.0.96 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling cpufeatures v0.2.7 [INFO] [stderr] Compiling time-macros v0.2.9 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling tokio v1.28.1 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling ref-cast v1.0.16 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling quote v1.0.27 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling rustix v0.37.19 [INFO] [stderr] Compiling syn v2.0.15 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking tracing-core v0.1.30 [INFO] [stderr] Compiling aho-corasick v1.0.1 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.7 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling regex-syntax v0.7.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling universal-hash v0.5.0 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling polyval v0.6.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling ghash v0.5.0 [INFO] [stderr] Compiling aes v0.8.2 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling mio v0.8.6 [INFO] [stderr] Compiling uncased v0.9.9 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling regex v1.8.1 [INFO] [stderr] Compiling is-terminal v0.4.7 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling petgraph v0.6.3 [INFO] [stderr] Compiling aes-gcm v0.10.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling time v0.3.21 [INFO] [stderr] Compiling hkdf v0.12.3 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling ena v0.14.2 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling lalrpop-util v0.19.12 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling futures v0.3.28 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling darling_core v0.20.1 [INFO] [stderr] Checking time-core v0.1.1 [INFO] [stderr] Compiling state v0.5.3 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling figment v0.10.8 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling hyper v0.14.26 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Compiling schemars v0.8.12 [INFO] [stderr] Checking rustc_lexer v0.1.0 [INFO] [stderr] Checking anstyle-parse v0.2.0 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Compiling rocket v0.5.0-rc.2 [INFO] [stderr] Checking encoding_rs v0.8.32 [INFO] [stderr] Checking anstyle v1.0.0 [INFO] [stderr] Checking ipnet v2.7.2 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking destructure_traitobject v0.2.0 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking dyn-clone v1.0.11 [INFO] [stderr] Checking unicode-script v0.5.5 [INFO] [stderr] Checking unsafe-any-ors v1.0.0 [INFO] [stderr] Checking tempfile v3.5.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking unicode-security v0.1.0 [INFO] [stderr] Checking ordered-float v2.10.0 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking iana-time-zone v0.1.56 [INFO] [stderr] Checking clap_lex v0.4.1 [INFO] [stderr] Checking typemap-ors v1.0.0 [INFO] [stderr] Checking chrono v0.4.24 [INFO] [stderr] Checking thread-id v4.0.0 [INFO] [stderr] Checking arc-swap v1.6.0 [INFO] [stderr] Checking log-mdc v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.163 [INFO] [stderr] Compiling ref-cast-impl v1.0.16 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling pear_codegen v0.2.4 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking clap_builder v4.2.7 [INFO] [stderr] Compiling clap_derive v4.2.0 [INFO] [stderr] Compiling darling_macro v0.20.1 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Checking async-lock v2.7.0 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling derive_arbitrary v1.3.0 [INFO] [stderr] Compiling schemars_derive v0.8.12 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Checking async-stream v0.3.5 [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 devise v0.3.1 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Checking arbitrary v1.3.0 [INFO] [stderr] Checking thiserror v1.0.40 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.2 [INFO] [stderr] Checking clap v4.2.7 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.2 [INFO] [stderr] Compiling rocket_okapi_codegen v0.8.0-rc.2 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking smol_str v0.2.0 [INFO] [stderr] Checking ubyte v0.10.3 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking envy v0.4.2 [INFO] [stderr] Checking serde_yaml v0.8.26 [INFO] [stderr] Compiling cedar-policy-core v2.0.2 [INFO] [stderr] Checking serde_with v3.0.0 [INFO] [stderr] Checking log4rs v1.2.0 [INFO] [stderr] Checking okapi v0.7.0-rc.1 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking h2 v0.3.18 [INFO] [stderr] Checking cedar-policy-validator v2.0.1 [INFO] [stderr] Checking cedar-policy v2.0.2 [INFO] [stderr] Checking rocket_okapi v0.8.0-rc.2 [INFO] [stderr] Checking cedar-agent v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:26:58 [INFO] [stdout] | [INFO] [stdout] 26 | if let Some(authentication) = self.authentication.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | if let Some(addr) = self.addr.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | if let Some(port) = self.port.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&ErrorResponse` instead of borrowing the inner type [INFO] [stdout] --> src/errors/response.rs:99:45 [INFO] [stdout] | [INFO] [stdout] 99 | let body = serde_json::to_string(res.borrow()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/routes/policies.rs:46:57 [INFO] [stdout] | [INFO] [stdout] 46 | let added_policy = policy_store.create_policy(policy.borrow()).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:26:58 [INFO] [stdout] | [INFO] [stdout] 26 | if let Some(authentication) = self.authentication.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | if let Some(addr) = self.addr.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | if let Some(port) = self.port.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&ErrorResponse` instead of borrowing the inner type [INFO] [stdout] --> src/errors/response.rs:99:45 [INFO] [stdout] | [INFO] [stdout] 99 | let body = serde_json::to_string(res.borrow()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::data::Entities` instead of borrowing the inner type [INFO] [stdout] --> src/services/data/memory.rs:96:75 [INFO] [stdout] | [INFO] [stdout] 96 | let cedar_entities: cedar_policy::Entities = match schema_entities.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/routes/policies.rs:46:57 [INFO] [stdout] | [INFO] [stdout] 46 | let added_policy = policy_store.create_policy(policy.borrow()).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/services/policies/memory.rs:117:68 [INFO] [stdout] | [INFO] [stdout] 117 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/services/policies/memory.rs:140:56 [INFO] [stdout] | [INFO] [stdout] 140 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::data::Entities` instead of borrowing the inner type [INFO] [stdout] --> src/services/data/memory.rs:96:75 [INFO] [stdout] | [INFO] [stdout] 96 | let cedar_entities: cedar_policy::Entities = match schema_entities.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/services/policies/memory.rs:117:68 [INFO] [stdout] | [INFO] [stdout] 117 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/services/policies/memory.rs:140:56 [INFO] [stdout] | [INFO] [stdout] 140 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&config::Config` instead of borrowing the inner type [INFO] [stdout] --> src/main.rs:28:57 [INFO] [stdout] | [INFO] [stdout] 28 | let server_config: rocket::figment::Figment = config.borrow().into(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:26:58 [INFO] [stdout] | [INFO] [stdout] 26 | if let Some(authentication) = self.authentication.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | if let Some(addr) = self.addr.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | if let Some(port) = self.port.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&ErrorResponse` instead of borrowing the inner type [INFO] [stdout] --> src/errors/response.rs:99:45 [INFO] [stdout] | [INFO] [stdout] 99 | let body = serde_json::to_string(res.borrow()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/routes/policies.rs:46:57 [INFO] [stdout] | [INFO] [stdout] 46 | let added_policy = policy_store.create_policy(policy.borrow()).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::data::Entities` instead of borrowing the inner type [INFO] [stdout] --> src/services/data/memory.rs:96:75 [INFO] [stdout] | [INFO] [stdout] 96 | let cedar_entities: cedar_policy::Entities = match schema_entities.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/services/policies/memory.rs:117:68 [INFO] [stdout] | [INFO] [stdout] 117 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/services/policies/memory.rs:140:56 [INFO] [stdout] | [INFO] [stdout] 140 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&config::Config` instead of borrowing the inner type [INFO] [stdout] --> src/main.rs:28:57 [INFO] [stdout] | [INFO] [stdout] 28 | let server_config: rocket::figment::Figment = config.borrow().into(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:26:58 [INFO] [stdout] | [INFO] [stdout] 26 | if let Some(authentication) = self.authentication.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | if let Some(addr) = self.addr.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option` instead of borrowing the inner type [INFO] [stdout] --> src/config.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | if let Some(port) = self.port.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&ErrorResponse` instead of borrowing the inner type [INFO] [stdout] --> src/errors/response.rs:99:45 [INFO] [stdout] | [INFO] [stdout] 99 | let body = serde_json::to_string(res.borrow()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/routes/policies.rs:46:57 [INFO] [stdout] | [INFO] [stdout] 46 | let added_policy = policy_store.create_policy(policy.borrow()).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::data::Entities` instead of borrowing the inner type [INFO] [stdout] --> src/services/data/memory.rs:96:75 [INFO] [stdout] | [INFO] [stdout] 96 | let cedar_entities: cedar_policy::Entities = match schema_entities.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/services/policies/memory.rs:117:68 [INFO] [stdout] | [INFO] [stdout] 117 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type [INFO] [stdout] --> src/services/policies/memory.rs:140:56 [INFO] [stdout] | [INFO] [stdout] 140 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 41.44s [INFO] running `Command { std: "docker" "inspect" "440f74d8125a15a5ca3d2b92793dad43beaf8b6e22a213b8027e3cf8bbd7ebdc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "440f74d8125a15a5ca3d2b92793dad43beaf8b6e22a213b8027e3cf8bbd7ebdc", kill_on_drop: false }` [INFO] [stdout] 440f74d8125a15a5ca3d2b92793dad43beaf8b6e22a213b8027e3cf8bbd7ebdc