Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/reaction/broadcast_reactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ pub(crate) async fn load_broadcast_reactions(
pub(crate) async fn save_broadcast_reactions(
context: &Context,
msg_id: MsgId,
frequencies: &Vec<ReactionFrequency>,
frequencies: &[ReactionFrequency],
) -> Result<()> {
context
.sql
Expand Down
2 changes: 1 addition & 1 deletion src/securejoin/qrinvite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl QrInvite {
}
}

pub(crate) fn addrs(&self) -> &Vec<String> {
pub(crate) fn addrs(&self) -> &[String] {
match self {
QrInvite::Contact { addrs, .. } => addrs,
QrInvite::Group { addrs, .. } => addrs,
Expand Down
2 changes: 1 addition & 1 deletion src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ impl Context {
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.

async fn sync_message_deletion(&self, msgs: &[String]) -> Result<()> {
let mut modified_chat_ids = BTreeSet::new();
let mut msg_ids = Vec::new();
for rfc724_mid in msgs {
Expand Down