aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/attribute.rs5
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 {