Skip to content

Commit

Permalink
Update version number and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Nov 23, 2021
1 parent 8687619 commit f625523
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion provider/blob/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ postcard = { version = "0.7.0", default-features = false }
erased-serde = { version = "0.3", default-features = false, features = ["alloc"] }
writeable = { version = "0.2", path = "../../utils/writeable" }
yoke = { version = "0.3.1", path = "../../utils/yoke" }
zerovec = { version = "0.4", path = "../../utils/zerovec", features = ["serde", "yoke"] }
zerovec = { version = "0.5", path = "../../utils/zerovec", features = ["serde", "yoke"] }

# For the export feature
log = { version = "0.4", optional = true }
Expand Down
7 changes: 3 additions & 4 deletions provider/blob/src/blob_data_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ impl BlobDataProvider {
fn get_file(&self, req: &DataRequest) -> Result<Yoke<&'static [u8], Rc<[u8]>>, DataError> {
let path = path_util::resource_path_to_string(&req.resource_path);
self.data
.try_project_cloned_with_capture::<&'static [u8], String, ()>(
path,
|zm, path, _| zm.get(&path).ok_or(()),
)
.try_project_cloned_with_capture::<&'static [u8], String, ()>(path, |zm, path, _| {
zm.get(&path).ok_or(())
})
.map_err(|_| DataError::MissingResourceKey(req.resource_path.key))
}
}
Expand Down

0 comments on commit f625523

Please sign in to comment.