mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Use eq() and eq_slice() less, and map_default() more.
This commit is contained in:
parent
ecc07e3b49
commit
e45b7fa22d
7 changed files with 35 additions and 40 deletions
|
@ -27,7 +27,6 @@ use std::cast;
|
|||
use std::cell::RefCell;
|
||||
use std::comm::{Port, SharedChan};
|
||||
use std::from_str::FromStr;
|
||||
use std::str::eq_slice;
|
||||
use std::str;
|
||||
use style::Stylesheet;
|
||||
|
||||
|
@ -37,7 +36,7 @@ macro_rules! handle_element(
|
|||
$string: expr,
|
||||
$ctor: ident
|
||||
$(, $arg:expr )*) => (
|
||||
if eq_slice($localName, $string) {
|
||||
if $string == $localName {
|
||||
return $ctor::new($localName, $document $(, $arg)*);
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue