adressed comments by @kennytm and @petrochenkov
This commit is contained in:
parent
a9c163ebe9
commit
958c67d9c8
9 changed files with 41 additions and 38 deletions
|
@ -341,7 +341,6 @@ pub fn raw_str_lit(lit: &str) -> String {
|
|||
debug!("raw_str_lit: given {}", escape_default(lit));
|
||||
let mut res = String::with_capacity(lit.len());
|
||||
|
||||
// FIXME #8372: This could be a for-loop if it didn't borrow the iterator
|
||||
let mut chars = lit.chars().peekable();
|
||||
while let Some(c) = chars.next() {
|
||||
if c == '\r' {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue