File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ pub(crate) unsafe fn set_destroy_callback(
79
79
#[ allow( clippy:: enum_variant_names) ]
80
80
enum ReplaceImError {
81
81
// 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 ) ,
85
85
}
86
86
87
87
// Attempt to replace current IM (which may or may not be presently valid) with a new one. This
Original file line number Diff line number Diff line change @@ -159,9 +159,9 @@ impl InputMethodResult {
159
159
160
160
#[ derive( Debug , Clone ) ]
161
161
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 ) ,
165
165
}
166
166
167
167
impl From < util:: GetPropertyError > for GetXimServersError {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub enum ImeRequest {
48
48
pub ( crate ) enum ImeCreationError {
49
49
// Boxed to prevent large error type
50
50
OpenFailure ( Box < PotentialInputMethods > ) ,
51
- SetDestroyCallbackFailed ( XError ) ,
51
+ SetDestroyCallbackFailed ( # [ allow ( dead_code ) ] XError ) ,
52
52
}
53
53
54
54
pub ( crate ) struct Ime {
Original file line number Diff line number Diff line change @@ -1375,7 +1375,7 @@ unsafe fn register_window_class<T: 'static>(class_name: &[u16]) {
1375
1375
unsafe { RegisterClassExW ( & class) } ;
1376
1376
}
1377
1377
1378
- struct ComInitialized ( * mut ( ) ) ;
1378
+ struct ComInitialized ( # [ allow ( dead_code ) ] * mut ( ) ) ;
1379
1379
impl Drop for ComInitialized {
1380
1380
fn drop ( & mut self ) {
1381
1381
unsafe { CoUninitialize ( ) } ;
You can’t perform that action at this time.
0 commit comments