Skip to content

Commit

Permalink
hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Jul 3, 2024
1 parent 5233846 commit 53620ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions provider/core/src/hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ impl DataProvider<HelloWorldV1Marker> for HelloWorldProvider {
}
}

impl DryDataProvider<HelloWorldV1Marker> for HelloWorldProvider {
fn dry_load(&self, req: DataRequest) -> Result<DataResponseMetadata, DataError> {
self.load(req).map(|r| r.metadata)
}
}

impl DataPayload<HelloWorldV1Marker> {
/// Make a [`DataPayload`]`<`[`HelloWorldV1Marker`]`>` from a static string slice.
pub fn from_static_str(s: &'static str) -> DataPayload<HelloWorldV1Marker> {
Expand Down

0 comments on commit 53620ec

Please sign in to comment.