last small wave of 15 errors?

This commit is contained in:
🪞👃🪞 2025-05-14 17:15:27 +03:00
parent 4fe51b5267
commit 872c2d94d6
11 changed files with 181 additions and 189 deletions

View file

@ -1,19 +1,16 @@
use crate::*;
impl<T: Has<Option<Selection>>> HasSelection for T {}
impl<T: Has<Selection>> HasSelection for T {}
pub trait HasSelection: Has<Option<Selection>> {
fn selection (&self) -> Option<&Selection> {
self.get().as_ref()
pub trait HasSelection: Has<Selection> {
fn selection (&self) -> &Selection {
self.get()
}
fn selection_mut (&mut self) -> &mut Option<Selection> {
fn selection_mut (&mut self) -> &mut Selection {
self.get_mut()
}
}
impl Arrangement {
}
/// Represents the current user selection in the arranger
#[derive(PartialEq, Clone, Copy, Debug, Default)]
pub enum Selection {