This PR adds a new function get_link_by_id to the main.rs file. The function accepts store and id arguments and returns a link. The function replaces the first any with the id argument in the each_iter method call.
Summary of Changes
Added a new function get_link_by_id to the main.rs file.
The function accepts store and id arguments.
The function returns a link of type Result<Link<usize>, Error<usize>>.
Replaced the first any with the id argument in the each_iter method call.
Please review and merge this PR. Thank you!
Fixes #5.
🎉 Latest improvements to Sweep:
Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
Added support for self-hosting! Check out Self-hosting Sweep to get started.
[Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR adds a new function
get_link_by_id
to themain.rs
file. The function acceptsstore
andid
arguments and returns a link. The function replaces the firstany
with theid
argument in theeach_iter
method call.Summary of Changes
get_link_by_id
to themain.rs
file.store
andid
arguments.Result<Link<usize>, Error<usize>>
.any
with theid
argument in theeach_iter
method call.Please review and merge this PR. Thank you!
Fixes #5.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: