Browse Source

cipher does not need to be mutable

pull/385/head
Miroslav Prasil 6 years ago
parent
commit
1a5ecd4d4a
  1. 2
      src/api/core/ciphers.rs

2
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"),
};

Loading…
Cancel
Save