We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4bf6c3 commit d3cb62bCopy full SHA for d3cb62b
rustv1/cross_service/rest_ses/src/work_item/repository.rs
@@ -82,7 +82,7 @@ pub async fn retrieve(id: String, client: &RdsClient) -> Result<WorkItem, WorkIt
82
}
83
84
// Last chance for something to go wrong!
85
- let item = match items.get(0) {
+ let item = match items.first() {
86
Some(item) => Ok(item),
87
None => Err(WorkItemError::Other(
88
"Somehow len() == 1 but get(0) is None".to_string(),
0 commit comments