From d9e28ad2d7c15ddc0766200be498f5d1d5a758f4 Mon Sep 17 00:00:00 2001 From: max Date: Fri, 18 Nov 2022 11:55:32 +0200 Subject: [PATCH] get rid of warnings in the example --- example/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/src/lib.rs b/example/src/lib.rs index 41f6302..e675fdc 100644 --- a/example/src/lib.rs +++ b/example/src/lib.rs @@ -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) @@ -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()