Skip to content

Commit 733bf31

Browse files
committed
ci: Fix dead code error on nightly
See rust-lang/rust#118297
1 parent c2b8704 commit 733bf31

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/platform_impl/linux/x11/ime/callbacks.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ pub(crate) unsafe fn set_destroy_callback(
7979
#[allow(clippy::enum_variant_names)]
8080
enum ReplaceImError {
8181
// Boxed to prevent large error type
82-
MethodOpenFailed(Box<PotentialInputMethods>),
83-
ContextCreationFailed(ImeContextCreationError),
84-
SetDestroyCallbackFailed(XError),
82+
MethodOpenFailed(#[allow(dead_code)] Box<PotentialInputMethods>),
83+
ContextCreationFailed(#[allow(dead_code)] ImeContextCreationError),
84+
SetDestroyCallbackFailed(#[allow(dead_code)] XError),
8585
}
8686

8787
// Attempt to replace current IM (which may or may not be presently valid) with a new one. This

src/platform_impl/linux/x11/ime/input_method.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ impl InputMethodResult {
159159

160160
#[derive(Debug, Clone)]
161161
enum GetXimServersError {
162-
XError(XError),
163-
GetPropertyError(util::GetPropertyError),
164-
InvalidUtf8(IntoStringError),
162+
XError(#[allow(dead_code)] XError),
163+
GetPropertyError(#[allow(dead_code)] util::GetPropertyError),
164+
InvalidUtf8(#[allow(dead_code)] IntoStringError),
165165
}
166166

167167
impl From<util::GetPropertyError> for GetXimServersError {

src/platform_impl/linux/x11/ime/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub enum ImeRequest {
4848
pub(crate) enum ImeCreationError {
4949
// Boxed to prevent large error type
5050
OpenFailure(Box<PotentialInputMethods>),
51-
SetDestroyCallbackFailed(XError),
51+
SetDestroyCallbackFailed(#[allow(dead_code)] XError),
5252
}
5353

5454
pub(crate) struct Ime {

src/platform_impl/windows/window.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ unsafe fn register_window_class<T: 'static>(class_name: &[u16]) {
13751375
unsafe { RegisterClassExW(&class) };
13761376
}
13771377

1378-
struct ComInitialized(*mut ());
1378+
struct ComInitialized(#[allow(dead_code)] *mut ());
13791379
impl Drop for ComInitialized {
13801380
fn drop(&mut self) {
13811381
unsafe { CoUninitialize() };

0 commit comments

Comments
 (0)