From 2ac013df64fdb9f41151ac4f9dc3ab4887083905 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 22 May 2022 00:59:04 +0200 Subject: [PATCH] Fix warnings --- src/formatters.rs | 2 +- src/wrapper/vst3/view.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formatters.rs b/src/formatters.rs index 30ef1b3b..61c19d77 100644 --- a/src/formatters.rs +++ b/src/formatters.rs @@ -135,7 +135,7 @@ pub fn s2v_i32_note_formatter() -> Arc Option + Send + Sync Arc::new(|string| { let (note_name, octave) = string .trim() - .split_once(|c: char| c.is_whitespace() || c.is_digit(10))?; + .split_once(|c: char| c.is_whitespace() || c.is_ascii_digit())?; let note_id = util::NOTES .iter() diff --git a/src/wrapper/vst3/view.rs b/src/wrapper/vst3/view.rs index 74f3e724..460f4796 100644 --- a/src/wrapper/vst3/view.rs +++ b/src/wrapper/vst3/view.rs @@ -222,7 +222,7 @@ impl RunLoopEventHandler

{ /// Post a task to the tasks queue so it will be run on the host's GUI thread later. Returns the /// task if the queue is full and the task could not be posted. pub fn post_task(&self, task: Task) -> Result<(), Task> { - let () = self.tasks.push(task)?; + self.tasks.push(task)?; // We need to use a Unix domain socket to let the host know to call our event handler. In // theory eventfd would be more suitable here, but Ardour does not support that.