Skip to content

Commit

Permalink
get rid of warnings in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
httnn committed Nov 18, 2022
1 parent 2738c55 commit d9e28ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl Plugin for Gain {
ctx.resize((width as u32, height as u32));
},
"init" => {
ctx.send_json(json!({
let _ = ctx.send_json(json!({
"type": "set_size",
"width": ctx.width.load(Ordering::Relaxed),
"height": ctx.height.load(Ordering::Relaxed)
Expand All @@ -120,7 +120,7 @@ impl Plugin for Gain {
}

// sends the param change each frame which is wasteful but good enough for this mvp
ctx.send_json(json!({
let _ = ctx.send_json(json!({
"type": "param_change",
"param": "gain",
"value": params.gain.normalized_value()
Expand Down

0 comments on commit d9e28ad

Please sign in to comment.