Skip to content

Commit 1cf3e9a

Browse files
Improve
1 parent 3369231 commit 1cf3e9a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

node-graph/libraries/core-types/src/resource.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
use dyn_any::StaticType;
1+
use dyn_any::DynAny;
22
use graphene_hash::CacheHash;
33
use std::hash::Hash;
44
use std::ops::Deref;
55
use std::sync::Arc;
66

7-
#[derive(Clone)]
7+
#[derive(Clone, DynAny)]
88
pub struct Resource {
99
inner: Arc<dyn AsRef<[u8]> + Send + Sync>,
1010
}
@@ -52,7 +52,3 @@ impl CacheHash for Resource {
5252
self.as_ref().hash(state);
5353
}
5454
}
55-
56-
unsafe impl StaticType for Resource {
57-
type Static = Resource;
58-
}

0 commit comments

Comments
 (0)