1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-07-17 17:51:11 +00:00

Merge branch 'multi-db-dockers' of https://github.com/BlackDex/vaultwarden into BlackDex-multi-db-dockers

This commit is contained in:
Daniel García 2021-12-27 21:55:28 +01:00
commit e501dc6d0e
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
22 changed files with 830 additions and 433 deletions

View file

@ -119,11 +119,13 @@ impl Error {
Empty {}.into()
}
#[must_use]
pub fn with_msg<M: Into<String>>(mut self, msg: M) -> Self {
self.message = msg.into();
self
}
#[must_use]
pub const fn with_code(mut self, code: u16) -> Self {
self.error_code = code;
self