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) => (
|
($elem:ident, $attr:tt, default, $value:ident, $func:expr) => (
|
||||||
match $elem.attr($attr) {
|
match $elem.attr($attr) {
|
||||||
Some($value) => $func,
|
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 {
|
fn default() -> $elem {
|
||||||
$elem::$default
|
$elem::$default
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue