From 141b95a1966adaf4e1ad00c0903c8fc67a1fcb60 Mon Sep 17 00:00:00 2001 From: Lucian Popescu Date: Thu, 5 Nov 2026 15:14:07 +0000 Subject: [PATCH] Take Option in refcount unique_ptr get, operator* and operator-> rules --- rules/unique_ptr/tgt_refcount.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/unique_ptr/tgt_refcount.rs b/rules/unique_ptr/tgt_refcount.rs index 00691fd026..f604942e3b 100644 --- a/rules/unique_ptr/tgt_refcount.rs +++ b/rules/unique_ptr/tgt_refcount.rs @@ -27,7 +27,7 @@ fn f1, T2: Default>(a0: usize) -> Option>> { ))) } -fn f2(a0: Value) -> Ptr { +fn f2(a0: Option>) -> Ptr { a0.as_pointer() } @@ -88,11 +88,11 @@ fn f15(a0: Ptr>>>, a1: &mut Option(a0: Value) -> Ptr { +fn f17(a0: Option>) -> Ptr { a0.as_pointer() } -fn f18(a0: Value) -> Ptr { +fn f18(a0: Option>) -> Ptr { a0.as_pointer() }