wip: unified dsl_ns macro

This commit is contained in:
🪞👃🪞 2025-08-16 13:56:55 +03:00
parent 28aacd7cbc
commit 08730df042
8 changed files with 524 additions and 510 deletions

View file

@ -127,7 +127,7 @@ impl PoolClipCommand {
Ok(Self::Add { index, clip }.execute(pool)?)
}
fn export (pool: &mut Pool, index: usize, path: PathBuf) -> Perhaps<Self> {
fn export (_pool: &mut Pool, _index: usize, _path: PathBuf) -> Perhaps<Self> {
todo!("export clip to midi file");
}
@ -155,7 +155,7 @@ impl PoolClipCommand {
#[tengri_proc::command(Pool)]
impl RenameCommand {
fn begin (pool: &mut Pool) -> Perhaps<Self> {
fn begin (_pool: &mut Pool) -> Perhaps<Self> {
unreachable!();
}
fn cancel (pool: &mut Pool) -> Perhaps<Self> {
@ -165,7 +165,7 @@ impl RenameCommand {
return Ok(None)
}
fn confirm (pool: &mut Pool) -> Perhaps<Self> {
if let Some(PoolMode::Rename(clip, ref mut old_name)) = pool.mode_mut().clone() {
if let Some(PoolMode::Rename(_clip, ref mut old_name)) = pool.mode_mut().clone() {
let old_name = old_name.clone();
*pool.mode_mut() = None;
return Ok(Some(Self::Set { value: old_name }))
@ -173,7 +173,7 @@ impl RenameCommand {
return Ok(None)
}
fn set (pool: &mut Pool, value: Arc<str>) -> Perhaps<Self> {
if let Some(PoolMode::Rename(clip, ref mut old_name)) = pool.mode_mut().clone() {
if let Some(PoolMode::Rename(clip, ref mut _old_name)) = pool.mode_mut().clone() {
pool.clips()[clip].write().unwrap().name = value;
}
return Ok(None)
@ -182,7 +182,7 @@ impl RenameCommand {
#[tengri_proc::command(Pool)]
impl CropCommand {
fn begin (pool: &mut Pool) -> Perhaps<Self> {
fn begin (_pool: &mut Pool) -> Perhaps<Self> {
unreachable!()
}
fn cancel (pool: &mut Pool) -> Perhaps<Self> {