Skip to content

Commit

Permalink
Add missing bounds to scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
dureuill committed May 10, 2024
1 parent 9dda52f commit 4c266e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl<'a> nolife::Family<'a> for MyParsedDataFamily {
// 2. Define a function that setups the data and its borrowed representation:
fn my_scope(
data_source: Vec<u8>, // 👈 all parameters that allow to build a `MyData`
) -> impl nolife::TopScope<Family = MyParsedDataFamily> // 👈 use the helper type we declared
) -> impl nolife::TopScope<Family = MyParsedDataFamily, Future = impl Send + Sync> // 👈 use the helper type we declared
{
nolife::scope!({
let mut data = MyData(data_source);
Expand Down

0 comments on commit 4c266e6

Please # to comment.