ignore style warnings in libs/scrap

Constant `is_cursor_embedded` does not follow the Rust standard
stylistic convention of upper-case global variables and constants. This
causes two warnings to be thrown when compiling (tested on Arch Linux,
commit = 68fda34, Rust = 1.66.0), one each for the Wayland and X11
common modules. Since these variables are not new, their names should
not be modified; to remove the warnings, this patch allows
non-style-conforming names on these two constant declarations
specifically, suppressing the warnings. It does not affect stylistic
warnings on any other code within the project.

Signed-off-by: Amy Parker <apark0006@student.cerritos.edu>
Cc: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
Amy Parker 2023-01-02 11:20:25 -08:00
parent 68fda34990
commit f816e53c2b
No known key found for this signature in database
GPG Key ID: 23562CB7D56B039E
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ use std::{io, sync::RwLock, time::Duration};
pub struct Capturer(Display, Box<dyn Recorder>, bool, Vec<u8>);
#[allow(non_upper_case_globals)]
pub const is_cursor_embedded: bool = true;
lazy_static::lazy_static! {

View File

@ -3,6 +3,7 @@ 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 {