Skip to content

refactor: use &[..] instead of &Vec<..> - #8676

Merged
link2xt merged 1 commit into
mainfrom
link2xt/refactor-ref-vec
Sep 9, 2026
Merged

refactor: use &[..] instead of &Vec<..>#8676
link2xt merged 1 commit into
mainfrom
link2xt/refactor-ref-vec

Conversation

@link2xt

@link2xt link2xt commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Most of such cases are detected by clippy::ptr_arg, but in these cases clippy did not catch anything.

Most of such cases are detected by clippy::ptr_arg,
but in these cases clippy did not catch anything.
@link2xt
link2xt added this pull request to stack #8677 September 9, 2026 06:13
@link2xt
link2xt marked this pull request as ready for review September 9, 2026 06:14
@link2xt
link2xt requested review from Hocuri and j-g00da September 9, 2026 06:16
Comment thread src/sync.rs
Ok(())
}

async fn sync_message_deletion(&self, msgs: &Vec<String>) -> Result<()> {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

clippy::ptr_arg should catch this case I think, but somehow it does not.

@link2xt
link2xt merged commit b0e5b08 into main Sep 9, 2026
30 checks passed
@link2xt
link2xt deleted the link2xt/refactor-ref-vec branch September 9, 2026 08:34
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