mirror of
https://codeberg.org/waydeer/layer-shika.git
synced 2026-02-03 06:05:55 +00:00
fix: remove use- prefix to make clippy happy
This commit is contained in:
parent
3fd4681dc5
commit
3d68292b35
6 changed files with 16 additions and 16 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue