Skip to content
Merged
Changes from 1 commit
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
7 changes: 4 additions & 3 deletions uint/src/uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,10 @@ macro_rules! construct_uint {
#[derive(Copy, Clone, Eq, PartialEq, Hash)]
$visibility struct $name (pub [u64; $n_words]);

impl AsRef<$name> for $name {
fn as_ref(&self) -> &$name {
&self
impl AsRef<[u64]> for $name {
Comment thread
fubuloubu marked this conversation as resolved.
#[inline]
Comment thread
fubuloubu marked this conversation as resolved.
Outdated
fn as_ref(&self) -> &[u64] {
&self.0
}
}

Expand Down