dsl,input,output,proc,tui: fix warnings

This commit is contained in:
🪞👃🪞 2025-06-12 19:29:12 +03:00
parent 08593571fa
commit 21832453d9
13 changed files with 19 additions and 20 deletions

View file

@ -53,7 +53,7 @@ mod map; pub use self::map::*;
mod memo; pub use self::memo::*;
mod stack; pub use self::stack::*;
mod thunk; pub use self::thunk::*;
mod transform; pub use self::transform::*;
mod transform; //pub use self::transform::*;
/// Renders multiple things on top of each other,
#[macro_export] macro_rules! lay {

View file

@ -1,4 +1,4 @@
use crate::*;
//use crate::*;
use std::sync::{Arc, RwLock};
#[derive(Debug, Default)] pub struct Memo<T, U> {

View file

@ -24,7 +24,7 @@ impl<E, F> Stack<E, F> {
}
}
impl<E: Output, F: Fn(&mut dyn FnMut(&dyn Render<E>)->())->()> Content<E> for Stack<E, F> {
fn layout (&self, mut to: E::Area) -> E::Area {
fn layout (&self, to: E::Area) -> E::Area {
let mut x = to.x();
let mut y = to.y();
let (mut w_used, mut w_remaining) = (E::Unit::zero(), to.w());