Skip to content

Commit 37f2334

Browse files
committed
non-breaking
1 parent a805b7f commit 37f2334

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

docs/tutorials/data_management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ With this provider, we can use the `unstable` constructors. These are only guara
187187
You can also implement the `AnyProvider` trait, so that it can be used with `_with_any_provider` constructors. Using these constructors is slightly less performant than the `unstable` ones, but, as the name suggests, stable across (minor) releases.
188188

189189
```rust,compile_fail
190-
implement_any_provider!(MyProvider);
190+
impl_any_provider!(MyProvider);
191191
```
192192

193193
## `dir` and `FsDataProvider`

provider/datagen/src/databake.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,17 @@ impl DataExporter for BakedDataExporter {
506506
}
507507
}
508508
}
509+
510+
struct BakedDataProvider;
511+
impl_data_provider!(BakedDataProvider);
512+
},
513+
false,
514+
)?;
515+
516+
self.write_to_file(
517+
PathBuf::from("any"),
518+
quote! {
519+
impl_any_provider!(BakedDataProvider);
509520
},
510521
false,
511522
)?;

provider/testdata/data/baked/any.rs

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provider/testdata/data/baked/mod.rs

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)