aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Prasil <[email protected]>2019-02-05 13:52:30 +0000
committerMiroslav Prasil <[email protected]>2019-02-05 13:52:30 +0000
commit1a5ecd4d4aaa3744b45d8e67c689335959f7cc1b (patch)
tree147d794b6bec70ed53fdfd0434f1b2148f9a9517
parentbd65c4e312219c3165b6aef92183bc84c082e9ef (diff)
downloadvaultwarden-1a5ecd4d4aaa3744b45d8e67c689335959f7cc1b.tar.gz
vaultwarden-1a5ecd4d4aaa3744b45d8e67c689335959f7cc1b.zip
cipher does not need to be mutable
-rw-r--r--src/api/core/ciphers.rs2
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"),
};