macros: Remove use requirement on minidom::IntoAttributeValue.
This commit is contained in:
parent
040792c242
commit
0d4327eb42
14 changed files with 16 additions and 16 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue