From 5a9c09a57fb4ad0fb23769ab7cfd6627b568e7bb Mon Sep 17 00:00:00 2001 From: Andrei Zisu Date: Sun, 12 Nov 2023 18:07:01 +0100 Subject: [PATCH] Change nullptr type --- app/src/ui/window/message_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/ui/window/message_view.rs b/app/src/ui/window/message_view.rs index 1d18b7b..ced507c 100644 --- a/app/src/ui/window/message_view.rs +++ b/app/src/ui/window/message_view.rs @@ -25,7 +25,7 @@ mod imp { fn new() -> Self { Self { litehtml_callbacks: Rc::new(RefCell::new(litehtml_callbacks::Callbacks::new())), - litehtml_context: Rc::new(RefCell::new(0 as *mut core::ffi::c_void)), + litehtml_context: Rc::new(RefCell::new(std::ptr::null_mut::())), loaded: Rc::new(RefCell::new(false)), } }