about summary refs log tree commit diff
path: root/src/libsyntax_ext
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-07-24 20:37:38 -0700
committerEsteban Küber <esteban@kuber.com.ar>2018-07-24 20:37:38 -0700
commit7bd94e0738dfaa91fe9fc16085969a7c9c3f8129 (patch)
treeab09e7c56dfd939fa058edafe19cc0be2d335481 /src/libsyntax_ext
parent3298b9f8c74cd859c6b6a3bb6f41c022f5605393 (diff)
downloadrust-7bd94e0738dfaa91fe9fc16085969a7c9c3f8129.tar.gz
rust-7bd94e0738dfaa91fe9fc16085969a7c9c3f8129.zip
Rename method and remove commented out code
Diffstat (limited to 'src/libsyntax_ext')
-rw-r--r--src/libsyntax_ext/format_foreign.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libsyntax_ext/format_foreign.rs b/src/libsyntax_ext/format_foreign.rs
index 136aedeb71d..1613f193351 100644
--- a/src/libsyntax_ext/format_foreign.rs
+++ b/src/libsyntax_ext/format_foreign.rs
@@ -329,9 +329,7 @@ pub mod printf {
                 _ => {/* 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 @@ mod strcursor {
             }
         }
 
-        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,