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();