-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Unnecessary variable copy #3980
Comments
PR's are more suited for this. But I'm fine adjusting this later during some admin updates. |
Fine, I just wanted to discuss about it, I doubted I was correct. I'll push a PR. Thanks. |
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. |
Sure. I thought rustc or clippy would've seen that. |
here it is #3981 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is that clone really necessary?
vaultwarden/src/api/admin.rs
Line 282 in 008a2cf
Removing that line
vaultwarden/src/api/admin.rs
Line 287 in 008a2cf
and moving ownership with
seems to be valid.
The text was updated successfully, but these errors were encountered: