summaryrefslogtreecommitdiffstats
path: root/tests/set2.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-04-13 04:30:50 -0400
committerJesse Luehrs <doy@tozt.net>2019-04-13 04:30:50 -0400
commit01e62e9baaf5860f0b9dee39e985a89333c0a854 (patch)
tree1305097c8943d56edfc7cf9a06016a30fb1ce195 /tests/set2.rs
parentc48a2b579673d4f4034bb7275165b72077e60fbd (diff)
downloadmatasano-01e62e9baaf5860f0b9dee39e985a89333c0a854.tar.gz
matasano-01e62e9baaf5860f0b9dee39e985a89333c0a854.zip
adjust the signature of create_query_string a bit
Diffstat (limited to 'tests/set2.rs')
-rw-r--r--tests/set2.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/set2.rs b/tests/set2.rs
index 04614de..a77cf7a 100644
--- a/tests/set2.rs
+++ b/tests/set2.rs
@@ -99,10 +99,10 @@ fn problem_12() {
fn problem_13() {
fn profile_for(email: &str) -> String {
let mut params = HashMap::new();
- params.insert("email", email);
- params.insert("uid", "10");
- params.insert("role", "user");
- return matasano::create_query_string(params);
+ params.insert("email", email.to_string());
+ params.insert("uid", "10".to_string());
+ params.insert("role", "user".to_string());
+ return matasano::create_query_string(&params);
}
let key = util::random_aes_128_key();