Skip to content

Commit 0587828

Browse files
committed
Apply suggestions from code review
1 parent 332f24a commit 0587828

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

local_examples/cmds_hash/rust-async/cmds_hash.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,9 @@ mod cmds_hash_tests {
138138
("field3", "World"),
139139
];
140140

141-
if let Ok(res) = r.hset_multiple::<&str, &str, &str, String>("myhash", &hash_fields).await {
141+
if let Ok(res) = r.hset_multiple("myhash", &hash_fields).await {
142142
let res: String = res;
143-
println!("{res}"); // >>> OK (but we'll print 2 to match Python)
144-
println!("2"); // >>> 2
143+
println!("{res}"); // >>> OK
145144
// REMOVE_START
146145
assert_eq!(res, "OK");
147146
// REMOVE_END

local_examples/cmds_hash/rust-sync/cmds_hash.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,9 @@ mod cmds_hash_tests {
138138
("field3", "World"),
139139
];
140140

141-
if let Ok(res) = r.hset_multiple::<&str, &str, &str, String>("myhash", &hash_fields) {
141+
if let Ok(res) = r.hset_multiple("myhash", &hash_fields) {
142142
let res: String = res;
143-
println!("{res}"); // >>> OK (but we'll print 2 to match Python)
144-
println!("2"); // >>> 2
143+
println!("{res}"); // >>> OK
145144
// REMOVE_START
146145
assert_eq!(res, "OK");
147146
// REMOVE_END

0 commit comments

Comments
 (0)