mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[PR #3491] [MERGED] Change String to &str for all Rocket functions and some other fixes #3294
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#3294
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/3491
Author: @BlackDex
Created: 4/30/2023
Status: ✅ Merged
Merged: 4/30/2023
Merged by: @dani-garcia
Base:
main← Head:rocket_changes📝 Commits (3)
18abf22Fix admin post endpoints951ba55Prevent some::_logs from outputtingf906f62ChangeStringto&strfor all Rocket functions📊 Changes
19 files changed (+522 additions, -527 deletions)
View changed files
📝
Cargo.lock(+48 -48)📝
Cargo.toml(+9 -9)📝
src/api/admin.rs(+21 -21)📝
src/api/core/accounts.rs(+7 -7)📝
src/api/core/ciphers.rs(+71 -70)📝
src/api/core/emergency_access.rs(+40 -48)📝
src/api/core/events.rs(+13 -13)📝
src/api/core/folders.rs(+8 -8)📝
src/api/core/mod.rs(+3 -3)📝
src/api/core/organizations.rs(+236 -241)📝
src/api/core/sends.rs(+21 -21)📝
src/api/icons.rs(+5 -5)📝
src/api/web.rs(+2 -2)📝
src/auth.rs(+24 -22)📝
src/mail.rs(+2 -2)📝
src/main.rs(+7 -2)📝
src/static/scripts/admin_settings.js(+2 -2)📝
src/static/scripts/admin_users.js(+1 -1)📝
src/util.rs(+2 -2)📄 Description
During setting the latest commit hash for Rocket and updating all the other crates, there were some messages regarding the usage of
Stringfor the Rocket endpoint function calls.I acted upon this message and changed all
Stringtypes to&strand modified the code where needed.This ended up in less
alloccalls, and probably also a bit less memory usage.Stringto&strwhere applicable::_logs from outputting🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.