Skip to content

refactor: refactor all body.copy_to_bytes(body.remaining())#5561

Merged
Xuanwo merged 3 commits intoapache:mainfrom
yihong0618:hy/refactor_all_remaining_to_bytes
Jan 17, 2025
Merged

refactor: refactor all body.copy_to_bytes(body.remaining())#5561
Xuanwo merged 3 commits intoapache:mainfrom
yihong0618:hy/refactor_all_remaining_to_bytes

Conversation

@yihong0618
Copy link
Copy Markdown
Contributor

@yihong0618 yihong0618 commented Jan 17, 2025

also fix to clippy warning
and drop some unused import.

Which issue does this PR close?

Closes #. comments from #5554

Rationale for this change

comments from #5554

What changes are included in this PR?

body.copy_to_bytes(body.remaining()) -> body.to_bytes()

Are there any user-facing changes?

also fix to clippy warning

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Xuanwo <github@xuanwo.io>
@yihong0618 yihong0618 requested a review from Xuanwo as a code owner January 17, 2025 06:05
@github-actions github-actions bot added the releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" label Jan 17, 2025
Copy link
Copy Markdown
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you for this, most changes look good to me.

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Copy link
Copy Markdown
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you @yihong0618 for taking care of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants