[librsvg] path_parser.rs: Use a shorter name for the declared lifetime of the chars_enumerator



commit 73bd77fd9bb9f1581ec29c38646d35392a91d31e
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Jul 21 18:39:39 2017 -0500

    path_parser.rs: Use a shorter name for the declared lifetime of the chars_enumerator

 rust/src/path_parser.rs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/rust/src/path_parser.rs b/rust/src/path_parser.rs
index 27c40a3..0d4358c 100644
--- a/rust/src/path_parser.rs
+++ b/rust/src/path_parser.rs
@@ -8,12 +8,12 @@ use path_builder::*;
 
 extern crate cairo;
 
-struct PathParser<'external> {
-    chars_enumerator: Enumerate<Chars<'external>>,
+struct PathParser<'b> {
+    chars_enumerator: Enumerate<Chars<'b>>,
     lookahead: Option <char>, /* None if we are in EOF */
     current_pos: usize,
 
-    builder: &'external mut RsvgPathBuilder,
+    builder: &'b mut RsvgPathBuilder,
 
     error_message: &'static str,
     has_error: bool,
@@ -66,8 +66,8 @@ struct PathParser<'external> {
  *     M.1-2,3E2-4
  *     M 0.1 -2 300 -4
  */
-impl<'external> PathParser<'external> {
-    fn new (builder: &'external mut RsvgPathBuilder, path_str: &'external str) -> PathParser<'external> {
+impl<'b> PathParser<'b> {
+    fn new (builder: &'b mut RsvgPathBuilder, path_str: &'b str) -> PathParser<'b> {
         PathParser {
             chars_enumerator: path_str.chars ().enumerate (),
             lookahead: None,


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