From f3c1a3cb3cbdd25d5f556d1ab770f8cbc29fd567 Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Tue, 16 Apr 2024 17:03:20 -0300 Subject: add guard to array with unbound return types --- rust/src/types.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'rust/src/types.rs') diff --git a/rust/src/types.rs b/rust/src/types.rs index 43d48b3f..280d50fd 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -2501,7 +2501,6 @@ unsafe impl CoreArrayWrapper for NameAndType { type Wrapped<'a> = &'a NameAndType where S: 'a; unsafe fn wrap_raw<'a>(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped<'a> { - // TODO this is not always valid, because the type is not transparent mem::transmute(raw) } } @@ -2549,7 +2548,6 @@ unsafe impl CoreArrayWrapper for DataVariable { type Wrapped<'a> = &'a DataVariable; unsafe fn wrap_raw<'a>(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped<'a> { - // TODO this is not always valid, because the type is not transparent mem::transmute(raw) } } -- cgit v1.3.1