[librsvg] parser: remove uneeded lifetime annotation



commit 71ce42a342658621193e0928a1ede95dfa903b89
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Jan 18 15:35:40 2020 +0100

    parser: remove uneeded lifetime annotation

 rsvg_internals/src/number_list.rs | 5 +----
 rsvg_internals/src/parsers.rs     | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/rsvg_internals/src/number_list.rs b/rsvg_internals/src/number_list.rs
index c1035bdb..f738cd62 100644
--- a/rsvg_internals/src/number_list.rs
+++ b/rsvg_internals/src/number_list.rs
@@ -59,10 +59,7 @@ impl NumberList {
         Ok(NumberList(v))
     }
 
-    pub fn parse_str<'i>(
-        s: &'i str,
-        length: NumberListLength,
-    ) -> Result<NumberList, ParseError<'i>> {
+    pub fn parse_str(s: &str, length: NumberListLength) -> Result<NumberList, ParseError> {
         let mut input = ParserInput::new(s);
         let mut parser = Parser::new(&mut input);
 
diff --git a/rsvg_internals/src/parsers.rs b/rsvg_internals/src/parsers.rs
index 2829d8c9..0f8784ee 100644
--- a/rsvg_internals/src/parsers.rs
+++ b/rsvg_internals/src/parsers.rs
@@ -18,7 +18,7 @@ pub trait Parse: Sized {
     ///
     /// This is useful mostly for tests which want to avoid creating a
     /// `cssparser::Parser` by hand.
-    fn parse_str<'i>(s: &'i str) -> Result<Self, ParseError<'i>> {
+    fn parse_str(s: &str) -> Result<Self, ParseError> {
         let mut input = ParserInput::new(s);
         let mut parser = Parser::new(&mut input);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]