More test fixes and rebase conflicts

This commit is contained in:
Alex Crichton
2015-01-21 11:56:52 -08:00
parent df1cddf20a
commit ecbee2e568
4 changed files with 3 additions and 3 deletions

View File

@@ -271,7 +271,7 @@ impl<'a> StringReader<'a> {
fn with_str_from_to<T, F>(&self, start: BytePos, end: BytePos, f: F) -> T where
F: FnOnce(&str) -> T,
{
f(self.filemap.src[
f(&self.filemap.src[
self.byte_offset(start).to_usize()..
self.byte_offset(end).to_usize()])
}