Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Nov 22, 2021
1 parent 3743cc6 commit 7f9a980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion provider/blob/src/blob_data_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl BlobDataProvider {
self.data
.try_project_cloned_with_capture::<&'static [u8], String, ()>(
path,
move |zm, path, _| zm.get(&*path).ok_or(()),
|zm, path, _| zm.get(&path).ok_or(()),
)
.map_err(|_| DataError::MissingResourceKey(req.resource_path.key))
}
Expand Down
2 changes: 1 addition & 1 deletion provider/blob/src/static_data_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl StaticDataProvider {
fn get_file(&self, req: &DataRequest) -> Result<&'static [u8], DataError> {
let path = path_util::resource_path_to_string(&req.resource_path);
self.data
.get(&*path)
.get(&path)
.ok_or(DataError::MissingResourceKey(req.resource_path.key))
}
}
Expand Down

0 comments on commit 7f9a980

Please sign in to comment.