Skip to content

chore: cleanup results#77

Merged
nyurik merged 2 commits into
fast-pack:mainfrom
nyurik:results
Mar 22, 2026
Merged

chore: cleanup results#77
nyurik merged 2 commits into
fast-pack:mainfrom
nyurik:results

Conversation

@nyurik

@nyurik nyurik commented Mar 22, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 22, 2026 21:26
@codecov

codecov Bot commented Mar 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@nyurik
nyurik requested a review from CommanderStorm March 22, 2026 21:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR is a small cleanup pass that standardizes result types and minor naming/import usage across the Rust and C++ codec layers, plus a couple of documentation/comment tidy-ups.

Changes:

  • Standardize public/internal APIs to return FastPForResult<T> instead of spelling out Result<_, FastPForError>.
  • Minor refactors/cleanup: import bytemuck::cast_slice(_mut) directly, and rename thissizethis_size in FastPFOR internals.
  • Remove outdated crate-level TODO comment and reorder the README supported-algorithms list.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/decode_error_paths.rs Imports cast_slice_mut and uses it directly to mutate compressed buffers in tests.
src/rust/integer_compression/fastpfor.rs Uses cast_slice directly and renames thissize to this_size for clarity.
src/lib.rs Cleans up feature-gate cfg syntax and removes an outdated FIXME block comment.
src/helpers.rs Switches helper traits/methods to use FastPForResult alias consistently.
src/cpp/wrappers.rs Updates C++ wrapper helpers to return FastPForResult.
src/cpp/codecs.rs Updates codec macro impls to return FastPForResult; tweaks a test comment.
src/codec.rs Updates trait signatures and docs to use FastPForResult.
README.md Reorders supported algorithm bullet list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/codec.rs Outdated
Comment thread src/cpp/codecs.rs

/// C++ `fastpfor256_codec` returns `CompositeCodec<FastPFor<8>, VariableByte>` — already
/// any-length. Use it directly; do not wrap in Rust `CppComposite`.
/// any-length. Use it directly; do not wrap in Rust `CompositeCodec`.

Copilot AI Mar 22, 2026

Copy link

Choose a reason for hiding this comment

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

This test comment mentions wrapping in Rust CompositeCodec, but there is no CompositeCodec type in this crate (searching the source only finds references in docs/comments). Consider rewording to avoid naming a non-existent Rust wrapper type (e.g., “do not wrap it again on the Rust side; it already supports any-length input”).

Suggested change
/// any-length. Use it directly; do not wrap in Rust `CompositeCodec`.
/// any-length. Use it directly; do not wrap it again on the Rust side; it already supports any-length input.

Copilot uses AI. Check for mistakes.
@nyurik
nyurik merged commit 085fa08 into fast-pack:main Mar 22, 2026
13 checks passed
@nyurik
nyurik deleted the results branch March 22, 2026 21:42
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.

2 participants