mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-16 08:54:01 -05:00
Unnecessary variable copy #5379
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mvalois on GitHub (Oct 17, 2023).
Is that clone really necessary?
008a2cf298/src/api/admin.rs (L282)Removing that line
008a2cf298/src/api/admin.rs (L287)and moving ownership with
seems to be valid.
@BlackDex commented on GitHub (Oct 17, 2023):
PR's are more suited for this. But I'm fine adjusting this later during some admin updates.
@mvalois commented on GitHub (Oct 17, 2023):
Fine, I just wanted to discuss about it, I doubted I was correct. I'll push a PR. Thanks.
@BlackDex commented on GitHub (Oct 17, 2023):
Well, i think it was just an oversight during some other changes. email was used at more locations but was charged to use the new user instead i think.
@mvalois commented on GitHub (Oct 17, 2023):
Sure. I thought rustc or clippy would've seen that.
@mvalois commented on GitHub (Oct 17, 2023):
here it is #3981