Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix-warnings #1181

Merged
merged 10 commits into from
Jan 27, 2025
Merged

Fix-warnings #1181

merged 10 commits into from
Jan 27, 2025

Conversation

EzraEllette
Copy link
Contributor

@EzraEllette EzraEllette commented Jan 22, 2025

This PR fixes warnings and errors in screenpipe.

One "major" change is the addition of a rust-toolchain.toml file that sets the rust version to 1.84.0 for the entire repo.

- Added missing `None` argument in `bench_search` function.
- Simplified match statements to if conditions in `handle_index_command`.
- Removed unnecessary `unwrap_or_else` and replaced with `unwrap_or` in `read_to_string`.
- Updated argument passing style for `Command::args` to use array syntax.
- Improved formatting and removed redundant lines in various functions.
- Added `#[allow(clippy::too_many_arguments)]` to several functions to suppress warnings.
- Enhanced test cases by removing unnecessary lines and improving readability.
- General code cleanup for better maintainability.
…es to use `Path` instead of `PathBuf`, and enhance VAD sensitivity enum with a default variant
…ean up monitor and screenshot capture functions
…s multiple files; update assertions and argument passing style in tests
…nstructured OCR; improve code readability and reduce unnecessary lines
…pe-app version to 0.26.6, clean up argument passing style, and enhance permission handling
Copy link

vercel bot commented Jan 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
screenpipe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 4:24pm

@louis030195
Copy link
Collaborator

where do you get warnings? dont get any

also which errors?

changes seem to make sense

@EzraEllette
Copy link
Contributor Author

where do you get warnings? dont get any

also which errors?

changes seem to make sense

Warnings from cargo clippy

Errors from test files that haven't been updated.

@louis030195
Copy link
Collaborator

testing now

@louis030195
Copy link
Collaborator

wonder if there is a way to force all contributor to same rust style, eg when you save a file that it automatically format in the same way, same indentation etc.

@EzraEllette
Copy link
Contributor Author

EzraEllette commented Jan 27, 2025 via email

@louis030195 louis030195 merged commit 26a1618 into mediar-ai:main Jan 27, 2025
4 of 7 checks passed
@louis030195
Copy link
Collaborator

/tip $80 @EzraEllette

thx

Copy link

algora-pbc bot commented Jan 27, 2025

🎉🎈 @EzraEllette has been awarded $80! 🎈🎊

@EzraEllette
Copy link
Contributor Author

I think a better route would be to add pre-commit hooks for linting and formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants