feat: trying to remove wasm-bindgen
This commit is contained in:
@@ -61,7 +61,7 @@ pub fn create_geometry_data(vertex_amount: usize, face_amount: usize) -> Vec<i32
|
||||
geo
|
||||
}
|
||||
|
||||
pub fn wrap_geometry_data(geometry: &mut [i32]) -> GeometryData {
|
||||
pub fn wrap_geometry_data(geometry: &mut [i32]) -> GeometryData<'_> {
|
||||
// Basic validity checks
|
||||
assert!(
|
||||
geometry.len() > GEOMETRY_HEADER_SIZE,
|
||||
|
||||
@@ -73,7 +73,7 @@ pub fn create_instance_data(
|
||||
geo
|
||||
}
|
||||
|
||||
pub fn wrap_instance_data(instances: &mut [i32]) -> InstanceData {
|
||||
pub fn wrap_instance_data(instances: &mut [i32]) -> InstanceData<'_> {
|
||||
assert!(
|
||||
instances.len() > INSTANCE_HEADER_SIZE,
|
||||
"Instance vector does not contain enough data for a header."
|
||||
|
||||
@@ -130,7 +130,7 @@ pub fn create_path(point_amount: usize, depth: i32) -> Vec<i32> {
|
||||
path
|
||||
}
|
||||
|
||||
pub fn wrap_path(input: &[i32]) -> PathData {
|
||||
pub fn wrap_path(input: &[i32]) -> PathData<'_> {
|
||||
// Basic validity checks
|
||||
assert!(
|
||||
input.len() > PATH_HEADER_SIZE,
|
||||
|
||||
Reference in New Issue
Block a user