Fix standalone compilation of iced_widget crate
This commit is contained in:
parent
1f13a91361
commit
4f2f40c68b
6 changed files with 81 additions and 1 deletions
|
|
@ -44,3 +44,13 @@ pub trait Backend {
|
|||
/// Creates a new [`Self::Frame`].
|
||||
fn new_frame(&self, size: Size) -> Self::Frame;
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
impl Renderer for () {
|
||||
type Geometry = ();
|
||||
type Frame = ();
|
||||
|
||||
fn new_frame(&self, _size: Size) -> Self::Frame {}
|
||||
|
||||
fn draw_geometry(&mut self, _geometry: Self::Geometry) {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue