Skip to content

Commit bdb1167

Browse files
author
Ivo Georgiev
committed
sentry_interface: use first()
1 parent 5c6632a commit bdb1167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator_worker/src/sentry_interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl<T: Adapter + 'static> SentryApi<T> {
108108
.compat()
109109
.await?;
110110

111-
Ok(result.validator_messages.get(0).map(|m| m.msg.clone()))
111+
Ok(result.validator_messages.first().map(|m| m.msg.clone()))
112112
}
113113

114114
pub async fn get_our_latest_msg(

0 commit comments

Comments
 (0)