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
[features]
default = ["use-log"]
use-log = ["layer-shika-composition/use-log"]
use-tracing = ["layer-shika-composition/use-tracing"]
default = ["log"]
log = ["layer-shika-composition/log"]
tracing = ["layer-shika-composition/tracing"]
[workspace]
resolver = "2"

View file

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

View file

@ -17,13 +17,13 @@ pub use wayland::surfaces::popup_manager::PopupManager;
pub use wayland::surfaces::surface_state::SurfaceState;
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");
#[cfg(feature = "use-log")]
#[cfg(feature = "log")]
pub use log::{debug, error, info, warn};
#[cfg(feature = "use-tracing")]
#[cfg(feature = "tracing")]
pub use tracing::{debug, error, info, warn};
}

View file

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

View file

@ -22,6 +22,6 @@ thiserror.workspace = true
tracing = { workspace = true, optional = true }
[features]
default = ["use-log"]
use-log = ["dep:log", "layer-shika-adapters/use-log"]
use-tracing = ["dep:tracing", "layer-shika-adapters/use-tracing"]
default = ["log"]
log = ["dep:log", "layer-shika-adapters/log"]
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(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");
#[cfg(feature = "use-log")]
#[cfg(feature = "log")]
pub use log::{debug, error, info, warn};
#[cfg(feature = "use-tracing")]
#[cfg(feature = "tracing")]
pub use tracing::{debug, error, info, warn};
}