From 84e4389943142441724b2df92fca76e5399321ee Mon Sep 17 00:00:00 2001 From: Amy Parker Date: Thu, 5 Jan 2023 20:32:53 -0800 Subject: [PATCH] remove unnecessary allow block Patch #2701 (609117c: "ignore style warnings in libs/scrap") was merged, but the RustDesk team decided to later instead changed is_cursor_embedded to uppercase (see discussion on the PR), thus no longer triggering the warning and no longer needing the allow block. This was changed in (b723f84: "fix linux to mac, keyboard input"). This patch removes the now unnecessary allowances. Signed-off-by: Amy Parker Cc: fufseou --- libs/scrap/src/common/wayland.rs | 1 - libs/scrap/src/common/x11.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/libs/scrap/src/common/wayland.rs b/libs/scrap/src/common/wayland.rs index 3efaed36e..e625fca7e 100644 --- a/libs/scrap/src/common/wayland.rs +++ b/libs/scrap/src/common/wayland.rs @@ -4,7 +4,6 @@ use std::{io, sync::RwLock, time::Duration}; pub struct Capturer(Display, Box, bool, Vec); -#[allow(non_upper_case_globals)] pub const IS_CURSOR_EMBEDDED: bool = true; lazy_static::lazy_static! { diff --git a/libs/scrap/src/common/x11.rs b/libs/scrap/src/common/x11.rs index ffeb1b55f..61112bff7 100644 --- a/libs/scrap/src/common/x11.rs +++ b/libs/scrap/src/common/x11.rs @@ -3,7 +3,6 @@ use std::{io, ops, time::Duration}; pub struct Capturer(x11::Capturer); -#[allow(non_upper_case_globals)] pub const IS_CURSOR_EMBEDDED: bool = false; impl Capturer {