Make use of RefCell::try_borrow_unguarded

This commit is contained in:
Anthony Ramine 2019-04-12 13:49:41 +02:00
parent a74f5222db
commit 44163148c2
7 changed files with 11 additions and 8 deletions

View file

@ -245,7 +245,6 @@ impl ParseErrorReporter for RustLogReporter {
location: SourceLocation,
error: ContextualParseError,
) {
use log;
if log_enabled!(log::Level::Info) {
info!(
"Url:\t{}\n{}:{} {}",

View file

@ -354,7 +354,6 @@ impl NonTSPseudoClass {
/// selector matching, and it's set from the DOM.
pub fn state_flag(&self) -> ElementState {
use self::NonTSPseudoClass::*;
use crate::element_state::ElementState;
match *self {
Active => ElementState::IN_ACTIVE_STATE,
Focus => ElementState::IN_FOCUS_STATE,