We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3369231 commit 1cf3e9aCopy full SHA for 1cf3e9a
1 file changed
node-graph/libraries/core-types/src/resource.rs
@@ -1,10 +1,10 @@
1
-use dyn_any::StaticType;
+use dyn_any::DynAny;
2
use graphene_hash::CacheHash;
3
use std::hash::Hash;
4
use std::ops::Deref;
5
use std::sync::Arc;
6
7
-#[derive(Clone)]
+#[derive(Clone, DynAny)]
8
pub struct Resource {
9
inner: Arc<dyn AsRef<[u8]> + Send + Sync>,
10
}
@@ -52,7 +52,3 @@ impl CacheHash for Resource {
52
self.as_ref().hash(state);
53
54
55
-
56
-unsafe impl StaticType for Resource {
57
- type Static = Resource;
58
-}
0 commit comments