Skip to content

remove harmless unnecessary move in redis example - #867

Open
xdavidliu wants to merge 1 commit into
tokio-rs:masterfrom
xdavidliu:patch-1
Open

xdavidliu wants to merge 1 commit into
tokio-rs:masterfrom
xdavidliu:patch-1

Conversation

@xdavidliu

Copy link
Copy Markdown

it's unnecessary because process takes socket by value, so compiler already knows to move it.

including move keyword here may confuse and distract the reader, as it did me

it's unnecessary because process takes socket by value, so compiler already knows to move it.

including move keyword here may confuse and distract the reader, as it did me
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