mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 13:50:05 -04:00
committed by
Kirill Chibisov
parent
978ec7dfec
commit
c4bfbbe417
@@ -79,9 +79,9 @@ pub(crate) unsafe fn set_destroy_callback(
|
|||||||
#[allow(clippy::enum_variant_names)]
|
#[allow(clippy::enum_variant_names)]
|
||||||
enum ReplaceImError {
|
enum ReplaceImError {
|
||||||
// Boxed to prevent large error type
|
// Boxed to prevent large error type
|
||||||
MethodOpenFailed(Box<PotentialInputMethods>),
|
MethodOpenFailed(#[allow(dead_code)] Box<PotentialInputMethods>),
|
||||||
ContextCreationFailed(ImeContextCreationError),
|
ContextCreationFailed(#[allow(dead_code)] ImeContextCreationError),
|
||||||
SetDestroyCallbackFailed(XError),
|
SetDestroyCallbackFailed(#[allow(dead_code)] XError),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attempt to replace current IM (which may or may not be presently valid) with a new one. This
|
// Attempt to replace current IM (which may or may not be presently valid) with a new one. This
|
||||||
|
|||||||
@@ -159,9 +159,9 @@ impl InputMethodResult {
|
|||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
enum GetXimServersError {
|
enum GetXimServersError {
|
||||||
XError(XError),
|
XError(#[allow(dead_code)] XError),
|
||||||
GetPropertyError(util::GetPropertyError),
|
GetPropertyError(#[allow(dead_code)] util::GetPropertyError),
|
||||||
InvalidUtf8(IntoStringError),
|
InvalidUtf8(#[allow(dead_code)] IntoStringError),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<util::GetPropertyError> for GetXimServersError {
|
impl From<util::GetPropertyError> for GetXimServersError {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ pub enum ImeRequest {
|
|||||||
pub(crate) enum ImeCreationError {
|
pub(crate) enum ImeCreationError {
|
||||||
// Boxed to prevent large error type
|
// Boxed to prevent large error type
|
||||||
OpenFailure(Box<PotentialInputMethods>),
|
OpenFailure(Box<PotentialInputMethods>),
|
||||||
SetDestroyCallbackFailed(XError),
|
SetDestroyCallbackFailed(#[allow(dead_code)] XError),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) struct Ime {
|
pub(crate) struct Ime {
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ unsafe fn register_window_class<T: 'static>(class_name: &[u16]) {
|
|||||||
unsafe { RegisterClassExW(&class) };
|
unsafe { RegisterClassExW(&class) };
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ComInitialized(*mut ());
|
struct ComInitialized(#[allow(dead_code)] *mut ());
|
||||||
impl Drop for ComInitialized {
|
impl Drop for ComInitialized {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
unsafe { CoUninitialize() };
|
unsafe { CoUninitialize() };
|
||||||
|
|||||||
Reference in New Issue
Block a user