diff --git a/platforms/windows/src/node.rs b/platforms/windows/src/node.rs index 49e630e8..1f77e1f4 100644 --- a/platforms/windows/src/node.rs +++ b/platforms/windows/src/node.rs @@ -618,6 +618,7 @@ impl PlatformNode { } } +#[allow(non_snake_case)] impl IRawElementProviderSimple_Impl for PlatformNode { fn ProviderOptions(&self) -> Result { Ok(ProviderOptions_ServerSideProvider) @@ -657,6 +658,7 @@ impl IRawElementProviderSimple_Impl for PlatformNode { } } +#[allow(non_snake_case)] impl IRawElementProviderFragment_Impl for PlatformNode { fn Navigate(&self, direction: NavigateDirection) -> Result { self.resolve(|node| { @@ -722,6 +724,7 @@ impl IRawElementProviderFragment_Impl for PlatformNode { } } +#[allow(non_snake_case)] impl IRawElementProviderFragmentRoot_Impl for PlatformNode { fn ElementProviderFromPoint(&self, x: f64, y: f64) -> Result { self.resolve_with_context(|node, context| { @@ -832,7 +835,8 @@ macro_rules! patterns { } } paste! { - $(impl [< I $base_pattern_id Provider_Impl>] for PlatformNode { + $(#[allow(non_snake_case)] + impl [< I $base_pattern_id Provider_Impl>] for PlatformNode { $(fn $base_property_id(&self) -> Result<$com_type> { self.resolve(|node| { let wrapper = NodeWrapper::Node(&node); diff --git a/platforms/windows/src/tests/mod.rs b/platforms/windows/src/tests/mod.rs index ad452389..22cce900 100644 --- a/platforms/windows/src/tests/mod.rs +++ b/platforms/windows/src/tests/mod.rs @@ -315,7 +315,6 @@ pub(crate) struct FocusEventHandler { received: Arc, } -#[allow(non_snake_case)] impl FocusEventHandler { #[allow(clippy::new_ret_no_self)] // it does return self, but wrapped pub(crate) fn new() -> ( @@ -333,6 +332,7 @@ impl FocusEventHandler { } } +#[allow(non_snake_case)] impl IUIAutomationFocusChangedEventHandler_Impl for FocusEventHandler { fn HandleFocusChangedEvent(&self, sender: Option<&IUIAutomationElement>) -> Result<()> { self.received.put(sender.unwrap().clone()); diff --git a/platforms/windows/src/text.rs b/platforms/windows/src/text.rs index b7db45d3..2d6cbfd4 100644 --- a/platforms/windows/src/text.rs +++ b/platforms/windows/src/text.rs @@ -322,6 +322,7 @@ impl Clone for PlatformRange { // implementations. We assume that AccessKit is the only UIA provider // within this process. This seems a safe assumption for most AccessKit users. +#[allow(non_snake_case)] impl ITextRangeProvider_Impl for PlatformRange { fn Clone(&self) -> Result { Ok(self.clone().into())