Skip to content

Commit a0d0a68

Browse files
authored
Remove size assertion
This was overzealous according to @FractalFir and I am hitting it as well.
1 parent a51d85f commit a0d0a68

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

crates/cust/src/module.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,6 @@ impl Module {
360360

361361
/// Get a reference to a global symbol, which can then be copied to/from.
362362
///
363-
/// # Panics:
364-
///
365-
/// This function panics if the size of the symbol is not the same as the `mem::sizeof<T>()`.
366-
///
367363
/// # Examples
368364
///
369365
/// ```
@@ -397,7 +393,6 @@ impl Module {
397393
name.as_ptr(),
398394
)
399395
.to_result()?;
400-
assert_eq!(size, mem::size_of::<T>());
401396
Ok(Symbol {
402397
ptr,
403398
module: PhantomData,

0 commit comments

Comments
 (0)