Skip to content

Commit

Permalink
Remove extra reference
Browse files Browse the repository at this point in the history
  • Loading branch information
nullstalgia committed Aug 5, 2024
1 parent e066db1 commit 846f203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heart_rate_websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub async fn websocket_thread(
Some(Ok(message)) => {
if message.is_text() {
let text = message.as_text().unwrap();
if let Ok(hr) = serde_json::from_str::<JSONHeartRate>(&text) {
if let Ok(hr) = serde_json::from_str::<JSONHeartRate>(text) {
hr_status.heart_rate_bpm = hr.bpm;
if let Some(battery) = hr.battery {
hr_status.battery_level = BatteryLevel::Level(battery);
Expand Down

0 comments on commit 846f203

Please sign in to comment.