summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2015-03-20 10:12:49 -0400
committerJesse Luehrs <doy@tozt.net>2015-03-20 10:12:49 -0400
commitaa42eb5525047d55ed3206626101caf9e4db79ea (patch)
tree26ff73fc5f843f5960a4ba03c99f562298493613 /tests
parente47104a3369cc76e718b0c68d4faf69fdcd7f2ee (diff)
downloadmatasano-aa42eb5525047d55ed3206626101caf9e4db79ea.tar.gz
matasano-aa42eb5525047d55ed3206626101caf9e4db79ea.zip
fix warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib.rs b/tests/lib.rs
index 629b7c2..1650165 100644
--- a/tests/lib.rs
+++ b/tests/lib.rs
@@ -234,7 +234,7 @@ fn problem_13 () {
return Some(
params
.into_iter()
- .map(|(k, v)| (String::from_str(k), String::from_str(v)))
+ .map(|(k, v)| (k.to_owned(), v.to_owned()))
.collect()
);
}
@@ -245,9 +245,9 @@ fn problem_13 () {
let (email, ciphertexts) = matasano::crack_querystring_aes_128_ecb(encrypter);
let mut expected = HashMap::new();
- expected.insert(String::from_str("email"), email);
- expected.insert(String::from_str("uid"), String::from_str("10"));
- expected.insert(String::from_str("role"), String::from_str("admin"));
+ expected.insert("email".to_owned(), email);
+ expected.insert("uid".to_owned(), "10".to_owned());
+ expected.insert("role".to_owned(), "admin".to_owned());
assert!(ciphertexts.iter().any(|ciphertext| {
decrypter(ciphertext).map(|params| params == expected).unwrap_or(false)
}));