Skip to content

Commit 0a95c8f

Browse files
committed
remove superfluous slicing
1 parent f6526fe commit 0a95c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

capnp/src/text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl<'a> Builder<'a> {
226226
}
227227

228228
pub fn reborrow_as_reader(&self) -> Reader<'_> {
229-
Reader(&self.bytes[..])
229+
Reader(self.bytes)
230230
}
231231
}
232232

0 commit comments

Comments
 (0)