Skip to content

Commit

Permalink
Rename method and remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Jul 25, 2018
1 parent 3298b9f commit 7bd94e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libsyntax_ext/format_foreign.rs
Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7bd94e0

Please sign in to comment.