Closed Konard closed 1 year ago
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
src/main.rs
✅ Commit 099c4d2
• Add a new function `get_link_by_id` at the end of the file before the `#[cfg(test)]` line. The function should have the following signature: `fn get_link_by_id(store: &mut unit::Store, id: usize) -> Result, Error >`. • Inside the function, replace the first `any` with an `id` argument in the `each_iter` method call. The code should look like this: `store.each_iter([id, any, any]).for_each(|link| { println!("{link:?}"); });`.
I have finished reviewing the code for completeness. I did not find errors for sweep/get_link_by_id_function
.
.
🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord
This function should accept store and id arguments and return link
This function should use this example: https://github.com/linksplatform/Solver/blob/abd50f07fd04a2ba9498b2c158ead04f4880e686/src/main.rs#L86-L88
Hint: replace first any with an id argument.
Checklist
- [X] `src/main.rs` ✅ Commit [`099c4d2`](https://github.com/linksplatform/Solver/commit/099c4d265f2327d7f6fa8253b38250b7924facd2)