]> git.lizzy.rs Git - rust.git/commitdiff
Rename method and remove commented out code
authorEsteban Küber <esteban@kuber.com.ar>
Wed, 25 Jul 2018 03:37:38 +0000 (20:37 -0700)
committerEsteban Küber <esteban@kuber.com.ar>
Wed, 25 Jul 2018 03:37:38 +0000 (20:37 -0700)
src/libsyntax_ext/format_foreign.rs

index 136aedeb71d0662b33cfe9524cab2df92d555ff6..1613f193351fbcce10399c678332b340b319c6e5 100644 (file)
@@ -329,9 +329,7 @@ pub fn parse_next_substitution(s: &str) -> Option<(Substitution, &str)> {
                 _ => {/* fall-through */},
             }
 
-            //let _ = Cur::new_at_start_with_pos(&s[..], start);
-            //Cur::new_at_start(&s[start..])
-            Cur::new_at_start_with_pos(&s[..], start)
+            Cur::new_at(&s[..], start)
         };
 
         // This is meant to be a translation of the following regex:
@@ -970,7 +968,7 @@ pub fn new_at_start(s: &'a str) -> StrCursor<'a> {
             }
         }
 
-        pub fn new_at_start_with_pos(s: &'a str, at: usize) -> StrCursor<'a> {
+        pub fn new_at(s: &'a str, at: usize) -> StrCursor<'a> {
             StrCursor {
                 s,
                 at,