mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-01-12 02:56:42 +01:00
This commit is contained in:
parent
1c21a85f27
commit
194f2f9874
7 changed files with 16 additions and 29 deletions
|
|
@ -146,7 +146,7 @@ proptest! {
|
|||
()
|
||||
}
|
||||
}
|
||||
impl Content<TestOutput> for String {
|
||||
impl Render<TestOutput> for String {
|
||||
fn render (&self, to: &mut TestOutput) {
|
||||
to.area_mut().set_w(self.len() as u16);
|
||||
}
|
||||
|
|
@ -162,7 +162,7 @@ proptest! {
|
|||
#[test] fn test_iter_map () {
|
||||
struct Foo;
|
||||
impl<T: Output> Content<T> for Foo {}
|
||||
fn _make_map <T: Output, U: Content<T> + Send + Sync> (data: &Vec<U>) -> impl Content<T> {
|
||||
fn _make_map <T: Output, U: Content<T> + Send + Sync> (data: &Vec<U>) -> impl Render<T> {
|
||||
Map::new(||data.iter(), |_foo, _index|{})
|
||||
}
|
||||
let _data = vec![Foo, Foo, Foo];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue