diff --git a/crates/cust/src/module.rs b/crates/cust/src/module.rs index 772f4a18..70883af3 100644 --- a/crates/cust/src/module.rs +++ b/crates/cust/src/module.rs @@ -362,7 +362,8 @@ impl Module { /// /// # Panics: /// - /// This function panics if the size of the symbol is not the same as the `mem::sizeof()`. + /// This function panics if the size of the symbol is greater than + /// `mem::sizeof()`. /// /// # Examples /// @@ -397,7 +398,7 @@ impl Module { name.as_ptr(), ) .to_result()?; - assert_eq!(size, mem::size_of::()); + assert!(size <= mem::size_of::()); Ok(Symbol { ptr, module: PhantomData,