1
0
Fork 0

Fix warnings

This commit is contained in:
Robbert van der Helm 2022-05-22 00:59:04 +02:00
parent 665108721a
commit 2ac013df64
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ pub fn s2v_i32_note_formatter() -> Arc<dyn Fn(&str) -> Option<i32> + 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()

View file

@ -222,7 +222,7 @@ impl<P: Vst3Plugin> RunLoopEventHandler<P> {
/// 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.