summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo Morandi <morandidodo@gmail.com>2020-12-04 15:55:55 +0100
committerEdoardo Morandi <morandidodo@gmail.com>2020-12-04 15:55:55 +0100
commit243d9f94e6b4eba1fb890b22d505d3023003570b (patch)
treea4f718790705881900832cc3ca2a989c24fe07b3
parentacfda134eab8049940a5fe04fba5f34a0e0dab7b (diff)
downloadrust-openssl-243d9f94e6b4eba1fb890b22d505d3023003570b.zip
Fix compilation with old compiler
-rw-r--r--openssl/src/encrypt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/encrypt.rs b/openssl/src/encrypt.rs
index 909bf6bd..9d524690 100644
--- a/openssl/src/encrypt.rs
+++ b/openssl/src/encrypt.rs
@@ -309,7 +309,7 @@ mod test {
let decoded_len = decrypter.decrypt(&encoded, &mut decoded).unwrap();
let decoded = &decoded[..decoded_len];
- assert_eq!(decoded, input);
+ assert_eq!(decoded, &*input);
}
#[test]
@@ -337,6 +337,6 @@ mod test {
let decoded_len = decrypter.decrypt(&encoded, &mut decoded).unwrap();
let decoded = &decoded[..decoded_len];
- assert_eq!(decoded, input);
+ assert_eq!(decoded, &*input);
}
}