Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Feb 3, 2022
1 parent 1217eed commit 16120c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
19 changes: 8 additions & 11 deletions provider/blob/src/blob_data_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,14 @@ impl BlobDataProvider {
) -> Result<Yoke<&'static [u8], Rc<[u8]>>, DataError> {
self.data
.try_project_cloned_with_capture((key, req), |zm, (key, req), _| {
zm.get(
&key.get_hash(),
&req.options.writeable_to_string(),
)
.map_err(|e| {
match e {
KeyError::K0 => DataErrorKind::MissingResourceKey,
KeyError::K1 => DataErrorKind::MissingResourceOptions,
}
.with_req(key, req)
})
zm.get(&key.get_hash(), &req.options.writeable_to_string())
.map_err(|e| {
match e {
KeyError::K0 => DataErrorKind::MissingResourceKey,
KeyError::K1 => DataErrorKind::MissingResourceOptions,
}
.with_req(key, req)
})
})
}
}
Expand Down
5 changes: 1 addition & 4 deletions provider/blob/src/static_data_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ impl StaticDataProvider {

fn get_file(&self, key: ResourceKey, req: &DataRequest) -> Result<&'static [u8], DataError> {
self.data
.get(
&key.get_hash(),
&req.options.writeable_to_string(),
)
.get(&key.get_hash(), &req.options.writeable_to_string())
.map_err(|e| {
match e {
KeyError::K0 => DataErrorKind::MissingResourceKey,
Expand Down

0 comments on commit 16120c6

Please sign in to comment.