mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Move the downstream-typed attribute markers to their value types' crates
This commit is contained in:
@@ -38,6 +38,13 @@ impl Default for Resource {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for &Resource {
|
||||
fn default() -> Self {
|
||||
static EMPTY: std::sync::LazyLock<Resource> = std::sync::LazyLock::new(Resource::empty);
|
||||
std::sync::LazyLock::force(&EMPTY)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&Resource> for Arc<dyn AsRef<[u8]> + Send + Sync> {
|
||||
fn from(val: &Resource) -> Self {
|
||||
val.inner.clone()
|
||||
|
||||
Reference in New Issue
Block a user