From b889793028d0467b03767998739c6863615408d1 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Sun, 11 Aug 2024 14:38:43 -0700 Subject: [PATCH] refactor: replace use of `get(0)` with `first()` --- src/structs/message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structs/message.rs b/src/structs/message.rs index 2b70673..d01f646 100644 --- a/src/structs/message.rs +++ b/src/structs/message.rs @@ -145,7 +145,7 @@ impl Message { // address and put the rest (comma-separated) into cc. let to = self .recips - .get(0) + .first() .map(|r| r.address.clone()) .unwrap_or_else(|| Some("".to_owned())) .unwrap();