From c69ff172e52de8c03d4a88ed9140802ac788d0d2 Mon Sep 17 00:00:00 2001 From: snowapril Date: Sun, 2 Apr 2023 16:11:44 +0900 Subject: [PATCH] Replace PyInquiryFunc to PyUnaryFunc Signed-off-by: snowapril --- vm/src/protocol/number.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vm/src/protocol/number.rs b/vm/src/protocol/number.rs index e650fe013..7295f3e85 100644 --- a/vm/src/protocol/number.rs +++ b/vm/src/protocol/number.rs @@ -11,7 +11,6 @@ use crate::{ VirtualMachine, }; -pub type PyNumberInquiryFunc = fn(PyNumber, &VirtualMachine) -> PyResult; pub type PyNumberUnaryFunc = fn(PyNumber, &VirtualMachine) -> PyResult; pub type PyNumberBinaryFunc = fn(&PyObject, &PyObject, &VirtualMachine) -> PyResult; pub type PyNumberTernaryFunc = fn(&PyObject, &PyObject, &PyObject, &VirtualMachine) -> PyResult; @@ -127,7 +126,7 @@ pub struct PyNumberMethods { pub negative: Option, pub positive: Option, pub absolute: Option, - pub boolean: Option, + pub boolean: Option>, pub invert: Option, pub lshift: Option, pub rshift: Option, @@ -251,7 +250,7 @@ pub struct PyNumberSlots { pub negative: AtomicCell>, pub positive: AtomicCell>, pub absolute: AtomicCell>, - pub boolean: AtomicCell>, + pub boolean: AtomicCell>>, pub invert: AtomicCell>, pub lshift: AtomicCell>, pub rshift: AtomicCell>,