Skip to content

refactor: use format_args!() when String creation is unnecessary#262

Merged
a-wing merged 4 commits intobinbat:mainfrom
Integral-Tech:format-refactor
Dec 21, 2024
Merged

refactor: use format_args!() when String creation is unnecessary#262
a-wing merged 4 commits intobinbat:mainfrom
Integral-Tech:format-refactor

Conversation

@Integral-Tech
Copy link
Copy Markdown
Contributor

  • When String creation is unnecessary, replace format!() with format_args!() to avoid overhead of heap allocation.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 21, 2024

Codecov Report

Attention: Patch coverage is 82.97872% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
livetwo/src/rtspclient.rs 82.97% 8 Missing ⚠️
Files with missing lines Coverage Δ
livetwo/src/rtspclient.rs 10.15% <82.97%> (+10.15%) ⬆️

... and 1 file with indirect coverage changes

@a-wing a-wing added the mod::live777 Live777 server label Dec 21, 2024
@a-wing a-wing merged commit 3527ae8 into binbat:main Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod::live777 Live777 server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants