Skip to content

style: fix rustfmt comment alignment in test functions#6

Open
melvincarvalho wants to merge 3 commits into
UBIDECO:masterfrom
melvincarvalho:fix/rustfmt-alignment
Open

style: fix rustfmt comment alignment in test functions#6
melvincarvalho wants to merge 3 commits into
UBIDECO:masterfrom
melvincarvalho:fix/rustfmt-alignment

Conversation

@melvincarvalho
Copy link
Copy Markdown
Contributor

Summary

  • Fix comment alignment to pass cargo fmt --check in CI

Problem

The previous PR #5 introduced lines that don't match the project's rustfmt style:

8, // chunk_first
7, // chunk_len

Should be:

8,    // chunk_first
7,    // chunk_len

Test plan

  • cargo test passes
  • Matches expected rustfmt output from CI logs

Align comments with extra spacing to satisfy rustfmt check.
The function requires 8 parameters due to configuration options.
Adding the allow attribute to suppress the lint warning in CI.
- Use From instead of TryFrom with Infallible error type
- Fix sliced_string_as_bytes: use as_bytes() before slicing
- Remove unused Infallible import
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.

1 participant