fix(email): Make doctest rustc-1.40 compatible

This commit is contained in:
Alexander Jackson
2020-09-29 16:49:24 +01:00
committed by Alexis Mousset
parent b10b04ada8
commit 5beef57c18

View File

@@ -121,7 +121,7 @@ impl Envelope {
/// let recipients = vec![Address::from_str("to@email.com").unwrap()];
///
/// let envelope = Envelope::new(Some(sender), recipients.clone()).unwrap();
/// assert_eq!(envelope.to(), recipients);
/// assert_eq!(envelope.to(), recipients.as_slice());
/// ```
pub fn to(&self) -> &[Address] {
self.forward_path.as_slice()