diff --git a/crates/alknet-call/src/protocol/adapter.rs b/crates/alknet-call/src/protocol/adapter.rs index a64f27a..14e89c8 100644 --- a/crates/alknet-call/src/protocol/adapter.rs +++ b/crates/alknet-call/src/protocol/adapter.rs @@ -559,7 +559,8 @@ mod tests { .set_identity(peer_identity) .expect("identity not yet set"); - let context = adapter.build_root_context("req-5".to_string(), "fs/readFile", None, None, &conn); + let context = + adapter.build_root_context("req-5".to_string(), "fs/readFile", None, None, &conn); let scoped = ScopedOperationEnv::new(["worker/exec"]); let invoke_ctx = OperationContext { @@ -616,7 +617,8 @@ mod tests { ); conn.register_imported(imported); - let context = adapter.build_root_context("req-6".to_string(), "fs/readFile", None, None, &conn); + let context = + adapter.build_root_context("req-6".to_string(), "fs/readFile", None, None, &conn); let scoped = ScopedOperationEnv::new(["worker/exec"]); let invoke_ctx = OperationContext { diff --git a/crates/alknet-call/src/registry/env.rs b/crates/alknet-call/src/registry/env.rs index 93e0258..10a0873 100644 --- a/crates/alknet-call/src/registry/env.rs +++ b/crates/alknet-call/src/registry/env.rs @@ -283,9 +283,7 @@ impl OperationEnv for PeerCompositeEnv { } fn peer_contains(&self, peer: &PeerId, name: &str) -> bool { - self.connections - .get(peer) - .is_some_and(|c| c.contains(name)) + self.connections.get(peer).is_some_and(|c| c.contains(name)) } fn peer_ids(&self) -> Vec {