macros: Remove use requirement on minidom::IntoAttributeValue.

This commit is contained in:
Emmanuel Gil Peyrot 2018-05-14 16:12:56 +02:00
commit 0d4327eb42
14 changed files with 16 additions and 16 deletions

View file

@ -60,7 +60,7 @@ macro_rules! generate_attribute {
})
}
}
impl IntoAttributeValue for $elem {
impl ::minidom::IntoAttributeValue for $elem {
fn into_attribute_value(self) -> Option<String> {
Some(String::from(match self {
$($elem::$a => $b),+
@ -86,7 +86,7 @@ macro_rules! generate_attribute {
})
}
}
impl IntoAttributeValue for $elem {
impl ::minidom::IntoAttributeValue for $elem {
#[allow(unreachable_patterns)]
fn into_attribute_value(self) -> Option<String> {
Some(String::from(match self {
@ -305,7 +305,7 @@ macro_rules! generate_id {
Ok($elem(String::from(s)))
}
}
impl IntoAttributeValue for $elem {
impl ::minidom::IntoAttributeValue for $elem {
fn into_attribute_value(self) -> Option<String> {
Some(self.0)
}