@@ -45,6 +45,7 @@ impl RuntimeWrapper {
4545 /// # TODO
4646 ///
4747 /// Add some runtime safety checks on the pointer
48+ #[ allow( clippy:: mut_from_ref) ]
4849 pub fn get_pinned ( & self ) -> Pin < & mut vsomeip:: runtime > {
4950 unsafe { Pin :: new_unchecked ( self . get_mut ( ) . as_mut ( ) . unwrap ( ) ) }
5051 }
@@ -72,6 +73,7 @@ impl ApplicationWrapper {
7273 ///
7374 /// I do see a runtime panic here, perhaps when we try to work with the app before it's setup
7475 /// should probably do a sleep of half a second or something
76+ #[ allow( clippy:: mut_from_ref) ]
7577 pub fn get_pinned ( & self ) -> Pin < & mut vsomeip:: application > {
7678 unsafe { Pin :: new_unchecked ( self . get_mut ( ) . as_mut ( ) . unwrap ( ) ) }
7779 }
@@ -270,6 +272,7 @@ impl MessageWrapper {
270272 /// # TODO
271273 ///
272274 /// Add some runtime safety checks on the pointer
275+ #[ allow( clippy:: mut_from_ref) ]
273276 pub fn get_pinned ( & self ) -> Pin < & mut vsomeip:: message > {
274277 unsafe { Pin :: new_unchecked ( self . get_mut ( ) . as_mut ( ) . unwrap ( ) ) }
275278 }
@@ -293,6 +296,7 @@ impl MessageWrapper {
293296 /// # TODO
294297 ///
295298 /// Add some runtime safety checks on the pointer
299+ #[ allow( clippy:: mut_from_ref) ]
296300 pub fn get_message_base_pinned ( & self ) -> Pin < & mut vsomeip:: message_base > {
297301 unsafe {
298302 let msg_ptr: * mut message = self . get_mut ( ) ;
@@ -389,6 +393,7 @@ impl PayloadWrapper {
389393 /// # TODO
390394 ///
391395 /// Add some runtime safety checks on the pointer
396+ #[ allow( clippy:: mut_from_ref) ]
392397 pub fn get_pinned ( & self ) -> Pin < & mut vsomeip:: payload > {
393398 unsafe { Pin :: new_unchecked ( self . get_mut ( ) . as_mut ( ) . unwrap ( ) ) }
394399 }
0 commit comments