We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 834fe58 commit b960f9aCopy full SHA for b960f9a
src/serialization.rs
@@ -307,11 +307,11 @@ fn deserialize_scalar<G: Group>(input: &mut &[u8]) -> Result<G::Scalar> {
307
}
308
309
trait SliceExt {
310
- fn take_ext(self: &mut &Self, take: usize) -> Option<&Self>;
+ fn take_ext<'a>(self: &mut &'a Self, take: usize) -> Option<&'a Self>;
311
312
313
impl<T> SliceExt for [T] {
314
- fn take_ext(self: &mut &Self, take: usize) -> Option<&Self> {
+ fn take_ext<'a>(self: &mut &'a Self, take: usize) -> Option<&'a Self> {
315
if take > self.len() {
316
return None;
317
0 commit comments