From 0d893edb69860eaa33caeb1dbd7b986810353e03 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 8 Apr 2019 21:32:57 +0200 Subject: [PATCH] avatar: Bump width/height to u16 This mirrors XEP revision 1.1.2, which made width and height xs:unsignedShort instead of xs:unsignedByte, as per common usage. --- src/avatar.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/avatar.rs b/src/avatar.rs index 6e2d3ce..7693c05 100644 --- a/src/avatar.rs +++ b/src/avatar.rs @@ -27,10 +27,10 @@ generate_element!( bytes: Required = "bytes", /// The width of the image in pixels. - width: Option = "width", + width: Option = "width", /// The height of the image in pixels. - height: Option = "height", + height: Option = "height", /// The SHA-1 hash of the image data for the specified content-type. id: Required = "id", @@ -66,7 +66,7 @@ mod tests { #[test] fn test_size() { assert_size!(Metadata, 12); - assert_size!(Info, 60); + assert_size!(Info, 64); assert_size!(Data, 12); } @@ -74,7 +74,7 @@ mod tests { #[test] fn test_size() { assert_size!(Metadata, 24); - assert_size!(Info, 112); + assert_size!(Info, 120); assert_size!(Data, 24); }