-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix errors on non-existing build dir
- Loading branch information
Showing
2 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use super::{Format, Render}; | ||
use crate::component::Component; | ||
use std::path::Component; | ||
|
||
pub trait RenderExt<W>: Render<W> + Sized | ||
where | ||
W: Format + ?Sized, | ||
{ | ||
fn then<R>(self, next: R) -> Then<Self, R> | ||
where | ||
R: Render<W>; | ||
} | ||
|
||
#[derive(Debug, Clone)] | ||
pub struct Then<R, S> { | ||
first: R, | ||
second: S, | ||
} | ||
|
||
impl<R, S> Component for Then<R, S> | ||
where | ||
R: Component, | ||
S: Component<Kind = R::Kind>, | ||
{ | ||
type Kind = R::Kind; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters