File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 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(
7979#[ allow( clippy:: enum_variant_names) ]
8080enum 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
Original file line number Diff line number Diff line change @@ -159,9 +159,9 @@ impl InputMethodResult {
159159
160160#[ derive( Debug , Clone ) ]
161161enum 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
167167impl From < util:: GetPropertyError > for GetXimServersError {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub enum ImeRequest {
4848pub ( 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
5454pub ( 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]) {
13751375 unsafe { RegisterClassExW ( & class) } ;
13761376}
13771377
1378- struct ComInitialized ( * mut ( ) ) ;
1378+ struct ComInitialized ( # [ allow ( dead_code ) ] * mut ( ) ) ;
13791379impl Drop for ComInitialized {
13801380 fn drop ( & mut self ) {
13811381 unsafe { CoUninitialize ( ) } ;
You can’t perform that action at this time.
0 commit comments