Skip to content

Commit

Permalink
fix missing lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Dec 22, 2024
1 parent f153982 commit c901659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl<'a> VertexStream<'a> {

/// Create a new `VertexStream` from a slice of typed vertices.
/// Its stride and size are calculated based on the size `T` of the slice elements.
pub fn new_from_slice<T>(data: &[T]) -> VertexStream<'a> {
pub fn new_from_slice<T>(data: &'a [T]) -> VertexStream<'a> {
let stride = size_of::<T>();
let size = stride;
let data = typed_to_bytes(data);
Expand Down

0 comments on commit c901659

Please sign in to comment.