Fix warnings
This commit is contained in:
parent
665108721a
commit
2ac013df64
|
@ -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()
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue