mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
Update cssparser to 0.18
https://github.com/servo/rust-cssparser/pull/171
This commit is contained in:
parent
30d6d6024b
commit
eb98ae6e04
64 changed files with 541 additions and 512 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
use gecko_bindings::structs::nsIAtom;
|
||||
use precomputed_hash::PrecomputedHash;
|
||||
use std::borrow::{Borrow, Cow};
|
||||
use std::borrow::Borrow;
|
||||
use std::fmt;
|
||||
use std::ops::Deref;
|
||||
use string_cache::{Atom, WeakAtom};
|
||||
|
@ -54,8 +54,8 @@ impl Deref for Namespace {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Cow<'a, str>> for Namespace {
|
||||
fn from(s: Cow<'a, str>) -> Self {
|
||||
impl<'a> From<&'a str> for Namespace {
|
||||
fn from(s: &'a str) -> Self {
|
||||
Namespace(Atom::from(s))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue