Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 40769f7

Browse files
authoredJan 17, 2024
Fix ambiguous lifetime elision (#131)
1 parent 1b67086 commit 40769f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/serialization.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ fn deserialize_scalar<G: Group>(input: &mut &[u8]) -> Result<G::Scalar> {
307307
}
308308

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.