diff --git a/html5ever/src/tree_builder/tag_sets.rs b/html5ever/src/tree_builder/tag_sets.rs
index e6677a69..46836cf5 100644
--- a/html5ever/src/tree_builder/tag_sets.rs
+++ b/html5ever/src/tree_builder/tag_sets.rs
@@ -10,7 +10,7 @@
//! Various sets of HTML tag names, and macros for declaring them.
use crate::ExpandedName;
-use mac::*;
+use mac::{matches, _tt_as_expr_hack};
use markup5ever::{expanded_name, local_name, namespace_prefix, namespace_url, ns};
macro_rules! declare_tag_set_impl ( ($param:ident, $b:ident, $supr:ident, $($tag:tt)+) => (
diff --git a/html5ever/src/util/str.rs b/html5ever/src/util/str.rs
index 9ae3f4c8..860a8f61 100644
--- a/html5ever/src/util/str.rs
+++ b/html5ever/src/util/str.rs
@@ -7,7 +7,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use mac::*;
+use mac::{matches, _tt_as_expr_hack};
use std::fmt;
pub fn to_escaped_string(x: &T) -> String {
diff --git a/xml5ever/src/tree_builder/mod.rs b/xml5ever/src/tree_builder/mod.rs
index b0bc5c17..820a5beb 100644
--- a/xml5ever/src/tree_builder/mod.rs
+++ b/xml5ever/src/tree_builder/mod.rs
@@ -10,7 +10,7 @@
mod types;
use log::{debug, warn};
-use mac::*;
+use mac::{matches, _tt_as_expr_hack, unwrap_or_return};
use markup5ever::{local_name, namespace_prefix, namespace_url, ns};
use std::borrow::Cow;
use std::borrow::Cow::Borrowed;
diff --git a/xml5ever/src/util/mod.rs b/xml5ever/src/util/mod.rs
index 68e068f0..c58aeceb 100644
--- a/xml5ever/src/util/mod.rs
+++ b/xml5ever/src/util/mod.rs
@@ -7,7 +7,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use mac::*;
+use mac::{matches, _tt_as_expr_hack};
/// Is the character an ASCII alphanumeric character?
pub fn is_ascii_alnum(c: char) -> bool {