Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ddboline committed Sep 22, 2024
1 parent d02ea56 commit 138348e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions garmin_models/src/garmin_connect_har_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ impl GarminConnectHarFile {
.iter()
.find(|e| e.request.url.contains(ACTIVITY_URL))
.and_then(|e| e.response.content.text.as_ref())
.map(|buf| serde_json::from_str(buf.as_str()))
.unwrap_or(Ok(Vec::new()))
.map_or(Ok(Vec::new()), |buf| serde_json::from_str(buf.as_str()))
.map_err(Into::into)
}

Expand Down

0 comments on commit 138348e

Please sign in to comment.