mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 03:36:42 +01:00
dsl,input,output,proc,tui: fix warnings
This commit is contained in:
parent
08593571fa
commit
21832453d9
13 changed files with 19 additions and 20 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use crate::*;
|
||||
//use crate::*;
|
||||
use std::sync::{Arc, RwLock};
|
||||
|
||||
#[derive(Debug, Default)] pub struct Memo<T, U> {
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue