Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit c3c17bc

Browse files
committed
Fix bind_instead_of_map warnings
Signed-off-by: Joseph Livesey <joseph.livesey@btp.works>
1 parent 422dcde commit c3c17bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

perf/intkey_workload/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ fn run_load_command(args: &ArgMatches) -> Result<(), Box<dyn Error>> {
228228
.unwrap_or("http://127.0.0.1:8008")
229229
.parse()
230230
.map_err(|_| String::from("urls are a comma separated list of strings"))
231-
.and_then(|st| {
231+
.map(|st| {
232232
let s: String = st;
233233
let split: Split<char> = s.split(',');
234-
Ok(split.map(|s| s.to_string()).collect())
234+
split.map(|s| s.to_string()).collect()
235235
})?;
236236

237237
let rate: usize = args

0 commit comments

Comments
 (0)