mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Make use of RefCell::try_borrow_unguarded
This commit is contained in:
parent
a74f5222db
commit
44163148c2
7 changed files with 11 additions and 8 deletions
|
@ -245,7 +245,6 @@ impl ParseErrorReporter for RustLogReporter {
|
|||
location: SourceLocation,
|
||||
error: ContextualParseError,
|
||||
) {
|
||||
use log;
|
||||
if log_enabled!(log::Level::Info) {
|
||||
info!(
|
||||
"Url:\t{}\n{}:{} {}",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue