Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove unnecessary Box from into_inner #560

Merged
merged 2 commits into from
Mar 25, 2024
Merged

refactor: remove unnecessary Box from into_inner #560

merged 2 commits into from
Mar 25, 2024

Conversation

hamirmahal
Copy link
Contributor

No description provided.

@@ -48,7 +48,7 @@ impl SymphoniaDecoder {
}
}

pub fn into_inner(self: Box<Self>) -> MediaSourceStream {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

self doesn't need to be boxed here.

@dvdsk
Copy link
Collaborator

dvdsk commented Mar 25, 2024

mod symphonia is private to rodio, so this change is possible without changing rodio's API.

Could you also remove the Box in the caller?

@hamirmahal
Copy link
Contributor Author

Sure! Is 371d963 what you're looking for?

@dvdsk
Copy link
Collaborator

dvdsk commented Mar 25, 2024

perfect!

@dvdsk dvdsk merged commit 8d8b5da into RustAudio:master Mar 25, 2024
10 checks passed
@hamirmahal hamirmahal deleted the refactor/remove-unnecessary-box branch March 25, 2024 21:54
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