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
|
|
@ -31,3 +31,12 @@ impl<T> Cached for Primitive<T> {
|
|||
Arc::new(self)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
impl Cached for () {
|
||||
type Cache = ();
|
||||
|
||||
fn load(_cache: &Self::Cache) -> Self {}
|
||||
|
||||
fn cache(self) -> Self::Cache {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue