We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2d9a3d commit 72480efCopy full SHA for 72480ef
capnp/src/constant.rs
@@ -42,6 +42,6 @@ pub struct Reader<T> {
42
impl <T> Reader<T> where T: for<'a> Owned<'a> {
43
/// Retrieve the value.
44
pub fn get(&self) -> Result<<T as Owned<'static>>::Reader> {
45
- any_pointer::Reader::new(PointerReader::get_root_unchecked(&self.words[0] as *const Word)).get_as()
+ any_pointer::Reader::new(PointerReader::get_root_unchecked(self.words.as_ptr())).get_as()
46
}
47
0 commit comments