[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2025-12-08 18:23:48 +00:00 committed by Olivier Goffart
parent 2faf91f04c
commit 52459ffb4e
3 changed files with 7 additions and 9 deletions

View file

@ -37,9 +37,7 @@ fn enums(path: &Path) -> anyhow::Result<()> {
};
}
macro_rules! enum_sub_namespace {
(AccessibleRole) => {{
Some("testing")
}};
(AccessibleRole) => {{ Some("testing") }};
($_:ident) => {
None
};

View file

@ -10,10 +10,10 @@ extern crate std;
use alloc::rc::Rc;
use core::ffi::c_void;
use i_slint_core::SharedString;
use i_slint_core::api::StyledText;
use i_slint_core::items::OperatingSystemType;
use i_slint_core::window::{ffi::WindowAdapterRcOpaque, WindowAdapter};
use i_slint_core::SharedString;
use i_slint_core::window::{WindowAdapter, ffi::WindowAdapterRcOpaque};
pub mod platform;

View file

@ -7,8 +7,8 @@ use core::ffi::c_void;
use i_slint_core::api::{
LogicalSize, PhysicalPosition, PhysicalSize, Window, WindowPosition, WindowSize,
};
use i_slint_core::graphics::euclid;
use i_slint_core::graphics::IntSize;
use i_slint_core::graphics::euclid;
use i_slint_core::platform::{Clipboard, Platform, PlatformError};
use i_slint_core::renderer::Renderer;
use i_slint_core::window::ffi::WindowAdapterRcOpaque;
@ -357,11 +357,11 @@ pub unsafe extern "C" fn slint_platform_task_run(event: PlatformTaskOpaque) {
mod software_renderer {
use super::*;
type SoftwareRendererOpaque = *const c_void;
use i_slint_core::SharedVector;
use i_slint_core::graphics::{IntRect, Rgb8Pixel};
use i_slint_core::software_renderer::{
PhysicalRegion, RepaintBufferType, Rgb565Pixel, SoftwareRenderer,
};
use i_slint_core::SharedVector;
#[cfg(feature = "experimental")]
use i_slint_core::software_renderer::{TargetPixelBuffer, TexturePixelFormat};
@ -755,7 +755,7 @@ pub mod skia {
&self,
) -> Result<raw_window_handle::DisplayHandle<'_>, raw_window_handle::HandleError> {
// Safety: It is assumed that the C++ side keeps the window/display handles alive.
Ok(unsafe { raw_window_handle::DisplayHandle::borrow_raw(self.0 .1) })
Ok(unsafe { raw_window_handle::DisplayHandle::borrow_raw(self.0.1) })
}
}
@ -764,7 +764,7 @@ pub mod skia {
&self,
) -> Result<raw_window_handle::WindowHandle<'_>, raw_window_handle::HandleError> {
// Safety: It is assumed that the C++ side keeps the window/display handles alive.
Ok(unsafe { raw_window_handle::WindowHandle::borrow_raw(self.0 .0) })
Ok(unsafe { raw_window_handle::WindowHandle::borrow_raw(self.0.0) })
}
}