diff options
| author | Joshua Landau <joshua@landau.ws> | 2015-06-11 13:56:07 +0100 |
|---|---|---|
| committer | Joshua Landau <joshua@landau.ws> | 2015-06-11 13:56:07 +0100 |
| commit | d7f5fa4636b12c3dadd626e708ec7cef654faf54 (patch) | |
| tree | 26d1cae1de4f3b8d179cf008e380b6396bd9070f /src/libsyntax/codemap.rs | |
| parent | ca7418b84658fc1c723672c462aa0a7878d88b64 (diff) | |
| download | rust-d7f5fa4636b12c3dadd626e708ec7cef654faf54.tar.gz rust-d7f5fa4636b12c3dadd626e708ec7cef654faf54.zip | |
Conver reborrows to .iter() calls where appropriate
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index b2a366ec5be..98225d10400 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -796,7 +796,7 @@ impl CodeMap { } pub fn get_filemap(&self, filename: &str) -> Rc<FileMap> { - for fm in &*self.files.borrow() { + for fm in self.files.borrow().iter() { if filename == fm.name { return fm.clone(); } @@ -821,7 +821,7 @@ impl CodeMap { // The number of extra bytes due to multibyte chars in the FileMap let mut total_extra_bytes = 0; - for mbc in &*map.multibyte_chars.borrow() { + for mbc in map.multibyte_chars.borrow().iter() { debug!("{}-byte char at {:?}", mbc.bytes, mbc.pos); if mbc.pos < bpos { // every character is at least one byte, so we only |
