@@ -316,38 +316,36 @@ mod tests {
316316
317317 assert_eq ! (
318318 log. get( event_path!( VERSION ) ) ,
319- Some ( & Value :: Bytes ( Bytes :: from_static ( b "1.1") ) )
319+ Some ( & Value :: from_static_str ( "1.1" ) )
320320 ) ;
321321 assert_eq ! (
322322 log. get( event_path!( HOST ) ) ,
323- Some ( & Value :: Bytes ( Bytes :: from_static ( b "example.org") ) )
323+ Some ( & Value :: from_static_str ( "example.org" ) )
324324 ) ;
325325 assert_eq ! (
326326 log. get( log_schema( ) . message_key_target_path( ) . unwrap( ) ) ,
327- Some ( & Value :: Bytes ( Bytes :: from_static (
328- b "A short message that helps you identify what is going on"
329- ) ) )
327+ Some ( & Value :: from_static_str (
328+ "A short message that helps you identify what is going on"
329+ ) )
330330 ) ;
331331 assert_eq ! (
332332 log. get( event_path!( FULL_MESSAGE ) ) ,
333- Some ( & Value :: Bytes ( Bytes :: from_static(
334- b"Backtrace here\n \n more stuff"
335- ) ) )
333+ Some ( & Value :: from_static_str( "Backtrace here\n \n more stuff" ) )
336334 ) ;
337335 let dt = DateTime :: from_timestamp ( 1_385_053_862 , 307_200_000 ) . expect ( "invalid timestamp" ) ;
338336 assert_eq ! ( log. get( event_path!( TIMESTAMP ) ) , Some ( & Value :: Timestamp ( dt) ) ) ;
339337 assert_eq ! ( log. get( event_path!( LEVEL ) ) , Some ( & Value :: Integer ( 1 ) ) ) ;
340338 assert_eq ! (
341339 log. get( event_path!( FACILITY ) ) ,
342- Some ( & Value :: Bytes ( Bytes :: from_static ( b "foo") ) )
340+ Some ( & Value :: from_static_str ( "foo" ) )
343341 ) ;
344342 assert_eq ! (
345343 log. get( event_path!( LINE ) ) ,
346344 Some ( & Value :: Float ( ordered_float:: NotNan :: new( 42.0 ) . unwrap( ) ) )
347345 ) ;
348346 assert_eq ! (
349347 log. get( event_path!( FILE ) ) ,
350- Some ( & Value :: Bytes ( Bytes :: from_static ( b "/tmp/bar") ) )
348+ Some ( & Value :: from_static_str ( "/tmp/bar" ) )
351349 ) ;
352350 assert_eq ! (
353351 log. get( event_path!( add_on_int_in) ) ,
@@ -357,7 +355,7 @@ mod tests {
357355 ) ;
358356 assert_eq ! (
359357 log. get( event_path!( add_on_str_in) ) ,
360- Some ( & Value :: Bytes ( Bytes :: from_static ( b "A Space Odyssey") ) )
358+ Some ( & Value :: from_static_str ( "A Space Odyssey" ) )
361359 ) ;
362360 }
363361
@@ -486,7 +484,7 @@ mod tests {
486484
487485 assert_eq ! (
488486 log. get( event_path!( VERSION ) ) ,
489- Some ( & Value :: Bytes ( Bytes :: from_static ( b "1.0") ) )
487+ Some ( & Value :: from_static_str ( "1.0" ) )
490488 ) ;
491489
492490 assert_eq ! (
0 commit comments