➜ cedar-agent git:(additional-entities) cargo test warning: call to `.borrow()` on a reference in this situation does nothing --> src/services/policies/memory.rs:95:64 | 95 | let policy: cedar_policy::Policy = match policy.borrow().try_into() { | ^^^^^^^^^ help: remove this redundant call | = 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 = note: `#[warn(noop_method_call)]` on by default warning: `cedar-agent` (lib) generated 1 warning (run `cargo fix --lib -p cedar-agent` to apply 1 suggestion) warning: `cedar-agent` (lib test) generated 1 warning (1 duplicate) warning: method `get_entities` is never used --> src/schemas/authorization.rs:52:12 | 39 | impl AuthorizationRequest { | ------------------------- method in this implementation ... 52 | pub fn get_entities(self) -> Option { | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: associated function `new` is never used --> src/schemas/authorization.rs:85:12 | 84 | impl AuthorizationCall { | ---------------------- associated function in this implementation 85 | pub fn new( | ^^^ warning: `cedar-agent` (bin "cedar-agent" test) generated 3 warnings (1 duplicate) warning: `cedar-agent` (bin "cedar-agent") generated 3 warnings (3 duplicates) Finished test [unoptimized + debuginfo] target(s) in 0.12s Running unittests src/lib.rs (target/debug/deps/cedar_agent-5010e1518651c457) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/main.rs (target/debug/deps/cedar_agent-9b6ef02fb258f43a) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/mod.rs (target/debug/deps/mod-8d886f5f05f2e190) running 8 tests test services::policies_tests::test_load_policies_from_file ... ok test services::data_tests::test_load_entities_from_file ... ok test services::data_tests::test_load_no_entities_from_authz_call ... ok test services::policies_tests::memory_tests ... ok test services::data_tests::test_load_empty_entities_from_authz_call ... ok test services::data_tests::test_load_entities_from_authz_call ... ok test services::data_tests::test_combine_entities_with_additional_entities ... ok test services::data_tests::memory_tests ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Doc-tests cedar-agent running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ➜ cedar-agent git:(additional-entities)