Skip to content

Commit b960f9a

Browse files
daxpeddacyyynthia
authored andcommitted
Fix ambiguous lifetime elision (facebook#131)
(cherry picked from commit 40769f7)
1 parent 834fe58 commit b960f9a

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)