diff --git a/src/main.rs b/src/main.rs index 311c923..ee11ff7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ fn get_job_stats(lodestone_ids: &[usize]) -> anyhow::Result>> let raw_data = output.stdout.lines(); let data: Vec, _>> = raw_data .map_while(Result::ok) - .map(|buf| serde_json::from_str::>(&buf)) + .map(|buf| -> Result, _> { serde_json::from_str(&buf) }) .map_ok(|raw| raw.into_iter().map(|r| r.into()).collect()) .map(|stats| stats.map_err(|err| anyhow::anyhow!(err))) .collect();