1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-07-20 07:47:45 +00:00

Ensure ResourceResolver is Send + Sync

Needed for usage in Kawari downstream. We may need to redefine this
at the trait level, but this works for now.
This commit is contained in:
Joshua Goins 2025-07-08 22:19:51 -04:00
parent c2eb47cca0
commit 2858c8a37b

View file

@ -16,7 +16,7 @@ use super::Resource;
/// resolver.add_source(Box::new(sqpack_source)); // this is the fallback /// resolver.add_source(Box::new(sqpack_source)); // this is the fallback
/// ``` /// ```
pub struct ResourceResolver { pub struct ResourceResolver {
resolvers: Vec<Box<dyn Resource>>, resolvers: Vec<Box<dyn Resource + Send + Sync>>,
} }
impl ResourceResolver { impl ResourceResolver {
@ -26,7 +26,7 @@ impl ResourceResolver {
} }
} }
pub fn add_source(&mut self, source: Box<dyn Resource>) { pub fn add_source(&mut self, source: Box<dyn Resource + Send + Sync>) {
self.resolvers.push(source); self.resolvers.push(source);
} }
} }