vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit f43d329e2223919d98586f3a1d06881c5a14ffeb
parent 8b18c4c633a27bb559a9c893cf121dbfc56161e5
Author: Miroslav Prasil <miroslav@prasil.info>
Date:   Tue, 15 May 2018 11:10:10 +0100

Don't clone() unused value

Diffstat:
Msrc/api/core/ciphers.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs @@ -365,9 +365,9 @@ fn post_cipher_share(uuid: String, data: Json<ShareCipherData>, headers: Headers None => err!("Cipher doesn't exist") }; - match data.cipher.organizationId.clone() { + match data.cipher.organizationId { None => err!("Organization id not provided"), - Some(org_id) => { + Some(_) => { update_cipher_from_data(&mut cipher, data.cipher, &headers, true, &conn)?; for collection in data.collectionIds.iter() { match Collection::find_by_uuid(&collection, &conn) {