Skip to content

Conversation

riverbl
Copy link

@riverbl riverbl commented Mar 2, 2025

mmap::Arena has a lifetime parameter, but as far as I can tell the memory this refers to is mmaped device memory managed by the Arena object itself. This memory is only unmapped when the Arena is dropped, so will remain valid for the lifetime of the Arena object, so I don't see any need for an external lifetime.

The CaptureStream and OutputStream traits have lifetime parameters, but they are only used by the next method, where the explicit lifetimes are the same as those that would have been inferred.

This PR removes all of the above lifetime parameters.

Remove lifetime parameter from `mmap::Arena`. The memory annotated with
this lifetime is managed by the `Arena` object itself, so there is no
need for an external lifetime.

Remove lifetime parameters from `CaptureStream` and `OutputStream`.
These lifetimes are only used by the `next` method, where the explicit
lifetimes are the same as those that would have been inferred.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant