mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
macros: Always use the correct std::default::Default trait.
This commit is contained in:
parent
d2dc77e4a3
commit
a3e35510cc
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ macro_rules! get_attr {
|
|||
($elem:ident, $attr:tt, default, $value:ident, $func:expr) => (
|
||||
match $elem.attr($attr) {
|
||||
Some($value) => $func,
|
||||
None => Default::default(),
|
||||
None => ::std::default::Default::default(),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ macro_rules! generate_attribute {
|
|||
}))
|
||||
}
|
||||
}
|
||||
impl Default for $elem {
|
||||
impl ::std::default::Default for $elem {
|
||||
fn default() -> $elem {
|
||||
$elem::$default
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue