review(call): fix fmt drift in adapter.rs and env.rs (call/review-call-sync)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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<PeerId> {
|
||||
|
||||
Reference in New Issue
Block a user