diff options
author | Miroslav Prasil <[email protected]> | 2019-02-05 13:52:30 +0000 |
---|---|---|
committer | Miroslav Prasil <[email protected]> | 2019-02-05 13:52:30 +0000 |
commit | 1a5ecd4d4aaa3744b45d8e67c689335959f7cc1b (patch) | |
tree | 147d794b6bec70ed53fdfd0434f1b2148f9a9517 | |
parent | bd65c4e312219c3165b6aef92183bc84c082e9ef (diff) | |
download | vaultwarden-1a5ecd4d4aaa3744b45d8e67c689335959f7cc1b.tar.gz vaultwarden-1a5ecd4d4aaa3744b45d8e67c689335959f7cc1b.zip |
cipher does not need to be mutable
-rw-r--r-- | src/api/core/ciphers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 71cf7734..0db705e5 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -842,7 +842,7 @@ fn move_cipher_selected(data: JsonUpcase<MoveCipherData>, headers: Headers, conn } for uuid in data.Ids { - let mut cipher = match Cipher::find_by_uuid(&uuid, &conn) { + let cipher = match Cipher::find_by_uuid(&uuid, &conn) { Some(cipher) => cipher, None => err!("Cipher doesn't exist"), }; |