File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -311,12 +311,6 @@ impl<'a> TaggedObject<'a> {
311311 pub unsafe fn from_raw_mut ( obj : * mut vk:: BaseOutStructure < ' a > ) -> & ' a mut Self {
312312 & mut * ( obj as * mut Self )
313313 }
314- pub fn base_structure ( & self ) -> & vk:: BaseInStructure < ' a > {
315- unsafe { & self . input }
316- }
317- pub fn base_structure_mut ( & mut self ) -> & mut vk:: BaseOutStructure < ' a > {
318- unsafe { & mut self . output }
319- }
320314
321315 pub fn from_ref < T : TaggedStructure < ' a > + ?Sized > ( obj : & T ) -> & Self {
322316 unsafe { & * ( <* const T >:: cast ( obj) ) }
@@ -326,7 +320,7 @@ impl<'a> TaggedObject<'a> {
326320 unsafe { & mut * ( <* mut T >:: cast ( obj) ) }
327321 }
328322 pub fn tag ( & self ) -> vk:: StructureType {
329- self . base_structure ( ) . s_type
323+ self . as_base ( ) . s_type
330324 }
331325 pub fn downcast_ref < T : TaggedStructure < ' a > > ( & self ) -> Option < & T > {
332326 unsafe {
You can’t perform that action at this time.
0 commit comments