Skip to content

Commit d3cb62b

Browse files
committed
Clippies
1 parent e4bf6c3 commit d3cb62b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustv1/cross_service/rest_ses/src/work_item/repository.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub async fn retrieve(id: String, client: &RdsClient) -> Result<WorkItem, WorkIt
8282
}
8383

8484
// Last chance for something to go wrong!
85-
let item = match items.get(0) {
85+
let item = match items.first() {
8686
Some(item) => Ok(item),
8787
None => Err(WorkItemError::Other(
8888
"Somehow len() == 1 but get(0) is None".to_string(),

0 commit comments

Comments
 (0)