Remove explicit lifetimes which can be elided.

This commit is contained in:
Adam Szopa 2015-10-21 01:00:58 +02:00
parent 11d23a41b3
commit 88991013ab
39 changed files with 66 additions and 66 deletions

View file

@ -38,7 +38,7 @@ pub enum ViewportDescriptor {
}
trait FromMeta: Sized {
fn from_meta<'a>(value: &'a str) -> Option<Self>;
fn from_meta (value: &str) -> Option<Self>;
}
// ViewportLength is a length | percentage | auto | extend-to-zoom
@ -63,7 +63,7 @@ impl ToCss for ViewportLength {
}
impl FromMeta for ViewportLength {
fn from_meta<'a>(value: &'a str) -> Option<ViewportLength> {
fn from_meta(value: &str) -> Option<ViewportLength> {
macro_rules! specified {
($value:expr) => {
ViewportLength::Specified(LengthOrPercentageOrAuto::Length($value))
@ -276,7 +276,7 @@ impl ViewportRule {
Ok(ViewportRule { declarations: valid_declarations.iter().cascade() })
}
pub fn from_meta<'a>(content: &'a str) -> Option<ViewportRule> {
pub fn from_meta(content: &str) -> Option<ViewportRule> {
let mut declarations = HashMap::new();
macro_rules! push_descriptor {
($descriptor:ident($value:expr)) => {{