Skip to content

Commit

Permalink
chore: asRef for Log (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Dec 5, 2024
1 parent f65c915 commit c4f94bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/primitives/src/log/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ impl<T> core::ops::DerefMut for Log<T> {
}
}

impl<T> AsRef<Self> for Log<T> {
fn as_ref(&self) -> &Self {
self
}
}

impl Log {
/// Creates a new log.
#[inline]
Expand Down

0 comments on commit c4f94bd

Please sign in to comment.