Skip to content

Conversation

@hwright
Copy link

@hwright hwright commented Nov 1, 2025

This fills a hole in the existing wrapper API by calling the underlying Mix_LoadWAV_RW.

}

/// Load from `RWOps` for use as a sample.
pub fn from_rwops(rwops: RWops) -> Result<Chunk, String> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub fn from_rwops(rwops: RWops) -> Result<Chunk, String> {
pub fn from_rwops(rwops: RWops<'_>) -> Result<Chunk, String> {

I prefer to not hide lifetimes, just to have it clear on the function signature that RWops has a lifetime

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.

2 participants