diff options
Diffstat (limited to 'src/attribute.rs')
-rw-r--r-- | src/attribute.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/attribute.rs b/src/attribute.rs index 3d17fe9..f250f67 100644 --- a/src/attribute.rs +++ b/src/attribute.rs @@ -23,7 +23,10 @@ pub struct Attribute<'data> impl<'data> Attribute<'data> { /// Returns a new `Attribute`. - pub fn new(key: &'data impl AsRef<[u8]>, value: impl Into<Cow<'data, [u8]>>) -> Self + pub fn new( + key: &'data (impl AsRef<[u8]> + ?Sized), + value: impl Into<Cow<'data, [u8]>>, + ) -> Self { Self { inner: QuickXMLAttribute { |