Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Oct 1, 2021
1 parent b316197 commit 027e262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/core/src/struct_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::yoke::*;
/// // A placeholder key to use to serve the data struct
/// const SAMPLE_KEY: ResourceKey = icu_provider::resource_key!(x, "xyz", "example", 1);
///
/// let provider = StructProvider {
/// let provider = StructProvider::<HelloWorldV1Marker> {
/// key: SAMPLE_KEY,
/// data: DataPayload::from_owned(local_data),
/// };
Expand Down Expand Up @@ -72,7 +72,7 @@ fn test_traits() {
// A placeholder key to use to serve the data struct
const SAMPLE_KEY: ResourceKey = crate::resource_key!(x, "xyz", "example", 1);

let provider = StructProvider {
let provider = StructProvider::<SimpleStruct> {
key: SAMPLE_KEY,
data: DataPayload::from_owned(SimpleStruct(42)),
};
Expand Down

0 comments on commit 027e262

Please sign in to comment.