Move the downstream-typed attribute markers to their value types' crates

This commit is contained in:
Dennis Kobert
2026-08-22 09:34:17 +00:00
parent 49c592013c
commit a8d257e7d6
17 changed files with 132 additions and 39 deletions

View File

@@ -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()