Skip to content

Commit

Permalink
Fix Clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload committed Jan 22, 2025
1 parent 375006d commit f0c97de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chitchat/src/delta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl Serializable for DeltaOp {
}
}

impl<'a> Serializable for DeltaOpRef<'a> {
impl Serializable for DeltaOpRef<'_> {
fn serialize(&self, buf: &mut Vec<u8>) {
match self {
Self::Node {
Expand Down
2 changes: 1 addition & 1 deletion chitchat/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ pub struct KeyChangeEvent<'a> {
pub node: &'a ChitchatId,
}

impl<'a> KeyChangeEvent<'a> {
impl KeyChangeEvent<'_> {
fn strip_key_prefix(&self, prefix: &str) -> Option<KeyChangeEvent> {
let key_without_prefix = self.key.strip_prefix(prefix)?;
Some(KeyChangeEvent {
Expand Down
2 changes: 1 addition & 1 deletion chitchat/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ struct StaleNode<'a> {
from_version_excluded: u64,
}

impl<'a> StaleNode<'a> {
impl StaleNode<'_> {
/// Iterates over the stale key-value pairs in decreasing order of staleness.
fn stale_key_values(&self) -> impl Iterator<Item = (&str, &VersionedValue)> {
self.node_state
Expand Down
2 changes: 1 addition & 1 deletion chitchat/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ pub(crate) struct KeyValueMutationRef<'a> {
pub(crate) state: DeletionStatusMutation,
}

impl<'a> Serializable for KeyValueMutationRef<'a> {
impl Serializable for KeyValueMutationRef<'_> {
fn serialize(&self, buf: &mut Vec<u8>) {
Serializable::serialize(self.key, buf);
Serializable::serialize(self.value, buf);
Expand Down

0 comments on commit f0c97de

Please sign in to comment.