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 clippy warnings #49

Merged
merged 2 commits into from
Jan 7, 2024
Merged

fix clippy warnings #49

merged 2 commits into from
Jan 7, 2024

Conversation

BillyDM
Copy link

@BillyDM BillyDM commented Jan 5, 2024

I fixed all the clippy warnings, and also added missing panic documentation.

I think the code is now at a place where I'm fairly happy with it (well at least the stuff that doesn't require a breaking change to the API).

@BillyDM
Copy link
Author

BillyDM commented Jan 6, 2024

I think the code is now at a place where I'm fairly happy with it (well at least the stuff that doesn't require a breaking change to the API).

Oh wait, #43 still needs to be fixed. I'll look into that at some point in the near future.

ReadServerOptions {
file,
start_frame,
num_prefetch_blocks: stream_opts.num_cache_blocks
Copy link
Collaborator

Choose a reason for hiding this comment

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

stream_opts should be destructured instead of accessing all fields individually. This ensures that you don't miss any field. Also applies to other parts of the code.

Should be improved by a follow-up PR.

Copy link
Author

Choose a reason for hiding this comment

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

What do you mean by "destructured"?

Copy link
Author

Choose a reason for hiding this comment

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

Ah, I know what you mean now.

Copy link
Author

Choose a reason for hiding this comment

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

Alright, I did it.

@BillyDM BillyDM merged commit 64be078 into main Jan 7, 2024
4 checks passed
@BillyDM BillyDM deleted the clippy_fixes branch January 7, 2024 22:14
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