Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulmth committed Jan 15, 2024
1 parent 56e6bb7 commit 4bf9990
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/1_advanced/6_domain_linkage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,13 @@ async fn main() -> anyhow::Result<()> {
assert_eq!(linked_domain_services.len(), 1);

// Get the domains included in the Linked Domain Service.
let domains: &[Url] = linked_domain_services.first()
let domains: &[Url] = linked_domain_services
.first()
.ok_or_else(|| anyhow::anyhow!("expected a domain"))?
.domains();

let domain_foo: Url = domains.first()
let domain_foo: Url = domains
.first()
.ok_or_else(|| anyhow::anyhow!("expected a domain"))?
.clone();
assert_eq!(domain_foo, domain_1);
Expand Down

0 comments on commit 4bf9990

Please sign in to comment.