File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ impl From<Uuid> for RelayUuid {
135
135
#[ unsafe( no_mangle) ]
136
136
#[ relay_ffi:: catch_unwind]
137
137
pub unsafe extern "C" fn relay_uuid_is_nil ( uuid : * const RelayUuid ) -> bool {
138
- if let Ok ( uuid) = Uuid :: from_slice ( unsafe { & ( * uuid) . data [ ..] } ) {
138
+ if let Ok ( uuid) = Uuid :: from_slice ( unsafe { & ( & ( * uuid) . data ) [ ..] } ) {
139
139
uuid == Uuid :: nil ( )
140
140
} else {
141
141
false
@@ -149,7 +149,7 @@ pub unsafe extern "C" fn relay_uuid_is_nil(uuid: *const RelayUuid) -> bool {
149
149
#[ unsafe( no_mangle) ]
150
150
#[ relay_ffi:: catch_unwind]
151
151
pub unsafe extern "C" fn relay_uuid_to_str ( uuid : * const RelayUuid ) -> RelayStr {
152
- let uuid = Uuid :: from_slice ( unsafe { & ( * uuid) . data [ ..] } ) . unwrap_or_else ( |_| Uuid :: nil ( ) ) ;
152
+ let uuid = Uuid :: from_slice ( unsafe { & ( & ( * uuid) . data ) [ ..] } ) . unwrap_or_else ( |_| Uuid :: nil ( ) ) ;
153
153
RelayStr :: from_string ( uuid. as_hyphenated ( ) . to_string ( ) )
154
154
}
155
155
You can’t perform that action at this time.
0 commit comments