Add Send + Sync mark to Box<dyn Script> (#12)

This commit is contained in:
2026-04-13 14:49:55 +08:00
parent dd2921f2dd
commit 034f4f7a52
74 changed files with 317 additions and 289 deletions

View File

@@ -115,8 +115,8 @@ impl ExtraProp {
#[derive(Debug)]
#[allow(dead_code)]
pub struct Xp3Archive<'a> {
pub inner: Arc<Mutex<Box<dyn ReadSeek + 'a>>>,
pub crypt: Arc<Box<dyn Crypt>>,
pub inner: Arc<Mutex<Box<dyn ReadSeek + Send + Sync + 'a>>>,
pub crypt: Arc<Box<dyn Crypt + Send + Sync>>,
/// The offset which the archive file start. If the archive is embedded in another file (such as exe), this is the offset of the archive data within the larger file.
pub base_offset: u64,
/// The offset which index start. Releatived to whole file not just xp3 archive.