Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Jul 2, 2024
1 parent 0527aab commit 62dcaea
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions provider/core/src/data_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,11 @@ where
pub trait DryDataProvider<M: DataMarker>: DataProvider<M> {
/// This method goes through the motions of [`load`], but only returns the metadata.
///
/// If [`dry_load`] returns an error, [`load`] must return the same error, but
/// If `dry_load` returns an error, [`load`] must return the same error, but
/// not vice-versa. Concretely, [`load`] could return deserialization or I/O errors
/// that [`dry_load`] cannot predict.
/// that `dry_load` cannot predict.
///
/// [`load`]: DataProvider::load
/// [`dry_load`]: Self:dry_load
fn dry_load(&self, req: DataRequest) -> Result<DataResponseMetadata, DataError> {
self.load(req).map(|r| r.metadata)
}
Expand Down Expand Up @@ -116,12 +115,11 @@ where
pub trait DynamicDryDataProvider<M: DynamicDataMarker>: DynamicDataProvider<M> {
/// This method goes through the motions of [`load_data`], but only returns the metadata.
///
/// If [`dry_load_data`] returns an error, [`load_data`] must return the same error, but
/// If `dry_load_data` returns an error, [`load_data`] must return the same error, but
/// not vice-versa. Concretely, [`load_data`] could return deserialization or I/O errors
/// that [`dry_load_data`] cannot predict.
/// that `dry_load_data` cannot predict.
///
/// [`load_data`]: DynamicDataProvider::load_data
/// [`dry_load_data`]: Self:dry_load_data
fn dry_load_data(
&self,
marker: DataMarkerInfo,
Expand Down

0 comments on commit 62dcaea

Please sign in to comment.