Skip to content

style: fix clippy::missing_errors_doc#225

Merged
Brooooooklyn merged 4 commits intomainfrom
fix/clippy-missing-errors-doc
Oct 15, 2025
Merged

style: fix clippy::missing_errors_doc#225
Brooooooklyn merged 4 commits intomainfrom
fix/clippy-missing-errors-doc

Conversation

@Brooooooklyn
Copy link
Copy Markdown
Member

Add # Errors documentation sections to public functions that return Result:

  • Exec::resolve() - Documents PATH search and shebang parsing errors
  • ensure_env() - Documents EINVAL on conflicting env values
  • decode_payload_from_env() - Documents env var, base64, and bincode errors
  • PreExec::run() - Documents infallible nature
  • handle_exec() - Documents resolution and env operation errors

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

Add # Errors documentation sections to public functions that return Result:
- Exec::resolve() - Documents PATH search and shebang parsing errors
- ensure_env() - Documents EINVAL on conflicting env values
- decode_payload_from_env() - Documents env var, base64, and bincode errors
- PreExec::run() - Documents infallible nature
- handle_exec() - Documents resolution and env operation errors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings October 15, 2025 07:24
Copy link
Copy Markdown
Member Author

Brooooooklyn commented Oct 15, 2025

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds missing error documentation to public functions to satisfy clippy::missing_errors_doc and makes a small idiomatic cleanup.

  • Documented error conditions for several public functions (resolve, ensure_env, decode_payload_from_env, handle_exec, PreExec::run).
  • Minor doc formatting improvements (code formatting for identifiers).
  • Small refactor to use Option::is_none_or in a filter.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
crates/fspy_shared_unix/src/exec/mod.rs Adds Errors sections for Exec::resolve and ensure_env.
crates/fspy_shared_unix/src/payload.rs Documents error cases for decoding payload from env.
crates/fspy_shared_unix/src/spawn/mod.rs Adds documentation for handle_exec, including error conditions.
crates/fspy_shared_unix/src/spawn/macos.rs Documents PreExec::run and its infallible behavior.
crates/vite_task/src/config/mod.rs Docstring formatting (backticks around type names).
crates/vite_task/src/fingerprint.rs Replaces map_or with Option::is_none_or in ignore filter.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread crates/vite_task/src/fingerprint.rs
Comment thread crates/fspy_shared_unix/src/spawn/macos.rs
Comment thread crates/fspy_shared_unix/src/spawn/mod.rs Outdated
Comment thread crates/fspy_shared_unix/src/exec/mod.rs Outdated
Comment thread crates/fspy_shared_unix/src/exec/mod.rs Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: LongYinan <lynweklm@gmail.com>
Copilot AI review requested due to automatic review settings October 15, 2025 07:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: LongYinan <lynweklm@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread crates/fspy_shared_unix/src/spawn/mod.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: LongYinan <lynweklm@gmail.com>
@Brooooooklyn Brooooooklyn force-pushed the fix/clippy-missing-errors-doc branch from 087fa89 to 93f8d18 Compare October 15, 2025 07:38
Copy link
Copy Markdown
Member Author

Brooooooklyn commented Oct 15, 2025

Merge activity

  • Oct 15, 10:37 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Oct 15, 10:37 AM UTC: @Brooooooklyn merged this pull request with Graphite.

@Brooooooklyn Brooooooklyn merged commit a0a1abf into main Oct 15, 2025
9 checks passed
@Brooooooklyn Brooooooklyn deleted the fix/clippy-missing-errors-doc branch October 15, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants