From 9b3a6db07472bcd680f753740ee6b1bed99ee3d4 Mon Sep 17 00:00:00 2001 From: Tangent 128 Date: Wed, 6 Sep 2017 01:53:49 -0400 Subject: [PATCH] fixup bin for reference refactor. --- src/bin/stub.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bin/stub.rs b/src/bin/stub.rs index b3e0951..56f84d7 100644 --- a/src/bin/stub.rs +++ b/src/bin/stub.rs @@ -6,23 +6,23 @@ use lab_ebml::webm::*; pub fn main() { let mut cursor = Cursor::new(Vec::new()); - encode_webm_element(WebmElement::EbmlHead, &mut cursor).unwrap(); - encode_webm_element(WebmElement::Segment, &mut cursor).unwrap(); + encode_webm_element(&WebmElement::EbmlHead, &mut cursor).unwrap(); + encode_webm_element(&WebmElement::Segment, &mut cursor).unwrap(); - encode_webm_element(WebmElement::Tracks(&[]), &mut cursor).unwrap(); + encode_webm_element(&WebmElement::Tracks(&[]), &mut cursor).unwrap(); - encode_webm_element(WebmElement::Cluster, &mut cursor).unwrap(); - encode_webm_element(WebmElement::Timecode(0), &mut cursor).unwrap(); + encode_webm_element(&WebmElement::Cluster, &mut cursor).unwrap(); + encode_webm_element(&WebmElement::Timecode(0), &mut cursor).unwrap(); - encode_webm_element(WebmElement::SimpleBlock(SimpleBlock { + encode_webm_element(&WebmElement::SimpleBlock(SimpleBlock { track: 3, flags: 0x0, timecode: 123, data: "Hello, World".as_bytes() }), &mut cursor).unwrap(); - encode_webm_element(WebmElement::Cluster, &mut cursor).unwrap(); - encode_webm_element(WebmElement::Timecode(1000), &mut cursor).unwrap(); + encode_webm_element(&WebmElement::Cluster, &mut cursor).unwrap(); + encode_webm_element(&WebmElement::Timecode(1000), &mut cursor).unwrap(); stdout().write_all(&cursor.get_ref()).unwrap(); }