mirror of
https://codeberg.org/waydeer/layer-shika.git
synced 2026-02-03 08:15: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
|
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"
|
||||||
|
|
|
||||||
|
|
@ -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"]
|
||||||
|
|
|
||||||
|
|
@ -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};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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"]
|
||||||
|
|
|
||||||
|
|
@ -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};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue