fix: remove use- prefix to make clippy happy

This commit is contained in:
drendog 2026-01-24 05:27:51 +01:00
parent 3fd4681dc5
commit 3d68292b35
Signed by: dwenya
GPG key ID: 8DD77074645332D0
6 changed files with 16 additions and 16 deletions

View file

@ -17,9 +17,9 @@ workspace = true
layer-shika-composition.workspace = true layer-shika-composition.workspace = true
[features] [features]
default = ["use-log"] default = ["log"]
use-log = ["layer-shika-composition/use-log"] log = ["layer-shika-composition/log"]
use-tracing = ["layer-shika-composition/use-tracing"] tracing = ["layer-shika-composition/tracing"]
[workspace] [workspace]
resolver = "2" resolver = "2"

View file

@ -28,6 +28,6 @@ wayland-protocols.workspace = true
xkbcommon.workspace = true xkbcommon.workspace = true
[features] [features]
default = ["use-log"] default = ["log"]
use-log = ["dep:log"] log = ["dep:log"]
use-tracing = ["dep:tracing"] tracing = ["dep:tracing"]

View file

@ -17,13 +17,13 @@ pub use wayland::surfaces::popup_manager::PopupManager;
pub use wayland::surfaces::surface_state::SurfaceState; pub use wayland::surfaces::surface_state::SurfaceState;
pub(crate) mod logger { pub(crate) mod logger {
#[cfg(all(feature = "use-log", feature = "use-tracing"))] #[cfg(all(feature = "log", feature = "tracing"))]
compile_error!("Cannot use both logging backend at one time"); compile_error!("Cannot use both logging backend at one time");
#[cfg(feature = "use-log")] #[cfg(feature = "log")]
pub use log::{debug, error, info, warn}; pub use log::{debug, error, info, warn};
#[cfg(feature = "use-tracing")] #[cfg(feature = "tracing")]
pub use tracing::{debug, error, info, warn}; pub use tracing::{debug, error, info, warn};
} }

View file

@ -86,7 +86,7 @@ impl Dispatch<ZwlrLayerSurfaceV1, ()> for AppState {
} }
impl Dispatch<WlOutput, ()> for AppState { impl Dispatch<WlOutput, ()> for AppState {
#[allow(clippy::cognitive_complexity)] #[allow(clippy::cognitive_complexity, clippy::too_many_lines)]
fn event( fn event(
state: &mut Self, state: &mut Self,
proxy: &WlOutput, proxy: &WlOutput,

View file

@ -22,6 +22,6 @@ thiserror.workspace = true
tracing = { workspace = true, optional = true } tracing = { workspace = true, optional = true }
[features] [features]
default = ["use-log"] default = ["log"]
use-log = ["dep:log", "layer-shika-adapters/use-log"] log = ["dep:log", "layer-shika-adapters/log"]
use-tracing = ["dep:tracing", "layer-shika-adapters/use-tracing"] tracing = ["dep:tracing", "layer-shika-adapters/tracing"]

View file

@ -62,13 +62,13 @@ pub use surface_registry::{SurfaceDefinition, SurfaceEntry, SurfaceMetadata, Sur
pub use shell_config::{CompiledUiSource, ShellConfig, SurfaceComponentConfig}; pub use shell_config::{CompiledUiSource, ShellConfig, SurfaceComponentConfig};
pub(crate) mod logger { pub(crate) mod logger {
#[cfg(all(feature = "use-log", feature = "use-tracing"))] #[cfg(all(feature = "log", feature = "tracing"))]
compile_error!("Cannot use both logging backend at one time"); compile_error!("Cannot use both logging backend at one time");
#[cfg(feature = "use-log")] #[cfg(feature = "log")]
pub use log::{debug, error, info, warn}; pub use log::{debug, error, info, warn};
#[cfg(feature = "use-tracing")] #[cfg(feature = "tracing")]
pub use tracing::{debug, error, info, warn}; pub use tracing::{debug, error, info, warn};
} }