commit 362880eac85af52a734508f563fe97cbb5c7200d
parent f48cb7d282ce4e7f43d8b72f11e4f5179bdb6503
Author: Dave Kozma <dkozma@adobe.com>
Date: Wed, 21 Jun 2023 15:42:04 -0400
Add `Send` to `CAIRead` trait so that it can be used across threads (#271)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/src/asset_io.rs b/sdk/src/asset_io.rs
@@ -40,7 +40,7 @@ pub struct HashObjectPositions {
pub htype: HashBlockObjectType, // type of hash block object
}
/// CAIReader trait to insure CAILoader method support both Read & Seek
-pub trait CAIRead: Read + Seek {}
+pub trait CAIRead: Read + Seek + Send {}
impl CAIRead for std::fs::File {}
impl CAIRead for std::io::Cursor<&[u8]> {}