Skip to content

Commit

Permalink
Make expanded_name!() independant of scope
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Jan 12, 2018
1 parent 8b44881 commit 3d5e24b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion markup5ever/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "markup5ever"
version = "0.7.1"
version = "0.7.2"
authors = [ "The html5ever Project Developers" ]
license = "MIT / Apache-2.0"
repository = "https://github.com/servo/html5ever"
Expand Down
4 changes: 2 additions & 2 deletions markup5ever/interface/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ impl<'a> fmt::Debug for ExpandedName<'a> {
#[macro_export]
macro_rules! expanded_name {
("", $local: tt) => {
ExpandedName {
$crate::interface::ExpandedName {
ns: &ns!(),
local: &local_name!($local),
}
};
($ns: ident $local: tt) => {
ExpandedName {
$crate::interface::ExpandedName {
ns: &ns!($ns),
local: &local_name!($local),
}
Expand Down

0 comments on commit 3d5e24b

Please sign in to comment.