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:
parent
c2eb47cca0
commit
2858c8a37b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue