From 6330086b772d924664242d366137ef4e75c8a7f4 Mon Sep 17 00:00:00 2001 From: lurchi Date: Wed, 31 Aug 2016 22:17:06 +0200 Subject: [PATCH] discovered byte string literals --- rust/tests/test_parser.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/tests/test_parser.rs b/rust/tests/test_parser.rs index 295650a..2e2cb8f 100644 --- a/rust/tests/test_parser.rs +++ b/rust/tests/test_parser.rs @@ -29,14 +29,14 @@ fn test_insufficient() { let expected = vec![PsycParserResult::InsufficientData, PsycParserResult::RoutingModifier { operator: ':', - name: "_target".as_bytes(), - value: "psyc://ve.symlynx.com/@blog".as_bytes() + name: b"_target", + value: b"psyc://ve.symlynx.com/@blog" }, PsycParserResult::InsufficientData, PsycParserResult::EntityModifier{ operator: ':', - name: "_nick".as_bytes(), - value: "lurchi".as_bytes(), + name: b"_nick", + value: b"lurchi" }, PsycParserResult::Complete];