Skip to content

Commit 7bd94e0

Browse files
committed
Rename method and remove commented out code
1 parent 3298b9f commit 7bd94e0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libsyntax_ext/format_foreign.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,7 @@ pub mod printf {
329329
_ => {/* fall-through */},
330330
}
331331

332-
//let _ = Cur::new_at_start_with_pos(&s[..], start);
333-
//Cur::new_at_start(&s[start..])
334-
Cur::new_at_start_with_pos(&s[..], start)
332+
Cur::new_at(&s[..], start)
335333
};
336334

337335
// This is meant to be a translation of the following regex:
@@ -970,7 +968,7 @@ mod strcursor {
970968
}
971969
}
972970

973-
pub fn new_at_start_with_pos(s: &'a str, at: usize) -> StrCursor<'a> {
971+
pub fn new_at(s: &'a str, at: usize) -> StrCursor<'a> {
974972
StrCursor {
975973
s,
976974
at,

0 commit comments

Comments
 (0)