From 27f519fc2bd17f8e8133e2b8f0db511d6b39f147 Mon Sep 17 00:00:00 2001 From: Bruno Deferrari Date: Wed, 27 Dec 2023 12:26:15 -0300 Subject: [PATCH] Solve clippy warnings --- src/memory.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/memory.rs b/src/memory.rs index 4bff650..480dace 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -92,9 +92,9 @@ pub fn alloc_double(cr: &mut OCamlRuntime, d: f64) -> OCaml { // small values (like tuples and conses are) without going through `caml_modify` to get // a little bit of extra performance. -pub fn alloc_some<'a, 'b, A>( +pub fn alloc_some<'a, A>( cr: &'a mut OCamlRuntime, - value: OCamlRef<'b, A>, + value: OCamlRef<'_, A>, ) -> OCaml<'a, Option> { unsafe { let ocaml_some = caml_alloc(1, tag::SOME); @@ -103,9 +103,9 @@ pub fn alloc_some<'a, 'b, A>( } } -pub fn alloc_ok<'a, 'b, A, Err>( +pub fn alloc_ok<'a, A, Err>( cr: &'a mut OCamlRuntime, - value: OCamlRef<'b, A>, + value: OCamlRef<'_, A>, ) -> OCaml<'a, Result> { unsafe { let ocaml_ok = caml_alloc(1, tag::TAG_OK); @@ -114,9 +114,9 @@ pub fn alloc_ok<'a, 'b, A, Err>( } } -pub fn alloc_error<'a, 'b, A, Err>( +pub fn alloc_error<'a, A, Err>( cr: &'a mut OCamlRuntime, - err: OCamlRef<'b, Err>, + err: OCamlRef<'_, Err>, ) -> OCaml<'a, Result> { unsafe { let ocaml_err = caml_alloc(1, tag::TAG_ERROR);