From 7bd94e0738dfaa91fe9fc16085969a7c9c3f8129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Tue, 24 Jul 2018 20:37:38 -0700 Subject: [PATCH] Rename method and remove commented out code --- src/libsyntax_ext/format_foreign.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libsyntax_ext/format_foreign.rs b/src/libsyntax_ext/format_foreign.rs index 136aedeb71d06..1613f193351fb 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,