Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Oct 8, 2024
1 parent ef8a318 commit 1cc1dfc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/encoded_replica.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl core::fmt::Debug for EncodedReplica {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
struct HexSlice<'a>(&'a [u8]);

impl<'a> core::fmt::Debug for HexSlice<'a> {
impl core::fmt::Debug for HexSlice<'_> {
fn fmt(
&self,
f: &mut core::fmt::Formatter<'_>,
Expand Down
4 changes: 2 additions & 2 deletions src/insertion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ impl Insertion {
self.text.range.end
}

/// Returns the [`ReplicaId`] of the [`Replica`] that performed the
/// insertion.
/// Returns the [`ReplicaId`] of the [`Replica`](crate::Replica) that
/// performed the insertion.
///
/// # Examples
///
Expand Down
6 changes: 3 additions & 3 deletions src/replica.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ mod debug {
}
}

impl<'a> core::fmt::Debug for DebugAsSelf<'a> {
impl core::fmt::Debug for DebugAsSelf<'_> {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
self.0.fmt(f)
}
Expand All @@ -1206,7 +1206,7 @@ mod debug {
}
}

impl<'a> core::fmt::Debug for DebugAsBtree<'a> {
impl core::fmt::Debug for DebugAsBtree<'_> {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
self.0.fmt(f)
}
Expand All @@ -1217,7 +1217,7 @@ mod debug {
debug_run_tree: T,
}

impl<'a, T: Debug> Debug for BaseDebug<'a, T> {
impl<T: Debug> Debug for BaseDebug<'_, T> {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
let replica = &self.replica;

Expand Down

0 comments on commit 1cc1dfc

Please sign in to comment.