Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulmth committed Feb 27, 2024
1 parent ef76d3f commit 4695ee5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions identity_iota_core/src/document/iota_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ mod tests {

let document: IotaDocument = IotaDocument::unpack_from_output(&document_did, &alias_output, true).unwrap();
let controllers: Vec<IotaDID> = document.controller().cloned().collect::<Vec<_>>();
assert_eq!(controllers.get(0).unwrap(), &alias_controller);
assert_eq!(controllers.first().unwrap(), &alias_controller);
assert_eq!(controllers.len(), 1);
}

Expand Down Expand Up @@ -797,7 +797,7 @@ mod tests {

let document: IotaDocument = IotaDocument::unpack_from_output(&document_did, &alias_output, true).unwrap();
let controllers: Vec<IotaDID> = document.controller().cloned().collect::<Vec<_>>();
assert_eq!(controllers.get(0).unwrap(), &alias_controller);
assert_eq!(controllers.first().unwrap(), &alias_controller);
assert_eq!(controllers.len(), 1);
}

Expand Down Expand Up @@ -830,7 +830,7 @@ mod tests {

let document: IotaDocument = IotaDocument::unpack_from_output(&document_did, &alias_output, true).unwrap();
let controllers: Vec<IotaDID> = document.controller().cloned().collect::<Vec<_>>();
assert_eq!(controllers.get(0).unwrap(), &external_controller_did);
assert_eq!(controllers.first().unwrap(), &external_controller_did);
assert_eq!(controllers.get(1).unwrap(), &alias_controller);
assert_eq!(controllers.len(), 2);
}
Expand Down

0 comments on commit 4695ee5

Please sign in to comment.