mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-19 22:15:45 +00:00
loosen lifetimes in type signature of Table::get (#4925)
This commit is contained in:
@@ -30,12 +30,12 @@ impl<'a> Table<'a> {
|
||||
Table { buf: buf, loc: loc }
|
||||
}
|
||||
#[inline]
|
||||
pub fn vtable(&'a self) -> VTable<'a> {
|
||||
pub fn vtable(&self) -> VTable<'a> {
|
||||
<BackwardsSOffset<VTable<'a>>>::follow(self.buf, self.loc)
|
||||
}
|
||||
#[inline]
|
||||
pub fn get<T: Follow<'a> + 'a>(
|
||||
&'a self,
|
||||
&self,
|
||||
slot_byte_loc: VOffsetT,
|
||||
default: Option<T::Inner>,
|
||||
) -> Option<T::Inner> {
|
||||
|
||||
Reference in New Issue
Block a user