Skip to content

Commit 1d320b3

Browse files
Alexander Krotovdjc
authored andcommitted
Remove unnecessary as_bytes() conversion in test_envelope
1 parent 356814f commit 1d320b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imap-proto/src/parser/rfc3501.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,8 @@ mod tests {
667667

668668
#[test]
669669
fn test_envelope() {
670-
let env = r#"ENVELOPE ("Wed, 17 Jul 1996 02:23:25 -0700 (PDT)" "IMAP4rev1 WG mtg summary and minutes" (("Terry Gray" NIL "gray" "cac.washington.edu")) (("Terry Gray" NIL "gray" "cac.washington.edu")) (("Terry Gray" NIL "gray" "cac.washington.edu")) ((NIL NIL "imap" "cac.washington.edu")) ((NIL NIL "minutes" "CNRI.Reston.VA.US") ("John Klensin" NIL "KLENSIN" "MIT.EDU")) NIL NIL "<[email protected]>") "#;
671-
match crate::parser::rfc3501::msg_att_envelope(env.as_bytes()) {
670+
let env = br#"ENVELOPE ("Wed, 17 Jul 1996 02:23:25 -0700 (PDT)" "IMAP4rev1 WG mtg summary and minutes" (("Terry Gray" NIL "gray" "cac.washington.edu")) (("Terry Gray" NIL "gray" "cac.washington.edu")) (("Terry Gray" NIL "gray" "cac.washington.edu")) ((NIL NIL "imap" "cac.washington.edu")) ((NIL NIL "minutes" "CNRI.Reston.VA.US") ("John Klensin" NIL "KLENSIN" "MIT.EDU")) NIL NIL "<[email protected]>") "#;
671+
match crate::parser::rfc3501::msg_att_envelope(env) {
672672
Ok((_, AttributeValue::Envelope(_))) => {},
673673
rsp => panic!("unexpected response {:?}", rsp)
674674
}

0 commit comments

Comments
 (0)