From 1a5ecd4d4aaa3744b45d8e67c689335959f7cc1b Mon Sep 17 00:00:00 2001 From: Miroslav Prasil Date: Tue, 5 Feb 2019 13:52:30 +0000 Subject: [PATCH] cipher does not need to be mutable --- src/api/core/ciphers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, 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"), };