1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-07-19 23:37:46 +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
/// ```
pub struct ResourceResolver {
resolvers: Vec<Box<dyn Resource>>,
resolvers: Vec<Box<dyn Resource + Send + Sync>>,
}
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);
}
}