Skip to content

Commit

Permalink
Fix ambiguous lifetime elision (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored Jan 17, 2024
1 parent 1b67086 commit 40769f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,11 @@ fn deserialize_scalar<G: Group>(input: &mut &[u8]) -> Result<G::Scalar> {
}

trait SliceExt {
fn take_ext(self: &mut &Self, take: usize) -> Option<&Self>;
fn take_ext<'a>(self: &mut &'a Self, take: usize) -> Option<&'a Self>;
}

impl<T> SliceExt for [T] {
fn take_ext(self: &mut &Self, take: usize) -> Option<&Self> {
fn take_ext<'a>(self: &mut &'a Self, take: usize) -> Option<&'a Self> {
if take > self.len() {
return None;
}
Expand Down

0 comments on commit 40769f7

Please sign in to comment.