forge
Explore
Log in

Don't you dare go Hollow

config: Rename DebugConfig => Debug

Browse files at this commit

b02c5d2d36568cc2d555efd244ac6ab64acaa306Ivan MolodetskikhParent: e5188da
niri-config/src/debug.rsmodified+1 -1
@@ -1,7 +1,7 @@
11 use std::path::PathBuf;
22
33 #[derive(knuffel::Decode, Debug, Default, PartialEq)]
4-pub struct DebugConfig {
4+pub struct Debug {
55 #[knuffel(child, unwrap(argument))]
66 pub preview_render: Option<PreviewRender>,
77 #[knuffel(child)]
niri-config/src/lib.rsmodified+3 -3
@@ -25,7 +25,7 @@ pub mod workspace;
2525 pub use crate::animations::{Animation, Animations};
2626 pub use crate::appearance::*;
2727 pub use crate::binds::*;
28-pub use crate::debug::DebugConfig;
28+pub use crate::debug::Debug;
2929 pub use crate::gestures::Gestures;
3030 pub use crate::input::{Input, ModKey, ScrollMethod, TrackLayout, WarpMouseToFocusMode, Xkb};
3131 pub use crate::layer_rule::LayerRule;
@@ -85,7 +85,7 @@ pub struct Config {
8585 #[knuffel(child, default)]
8686 pub switch_events: SwitchBinds,
8787 #[knuffel(child, default)]
88- pub debug: DebugConfig,
88+ pub debug: Debug,
8989 #[knuffel(children(name = "workspace"))]
9090 pub workspaces: Vec<Workspace>,
9191 }
@@ -1696,7 +1696,7 @@ mod tests {
16961696 },
16971697 ),
16981698 },
1699- debug: DebugConfig {
1699+ debug: Debug {
17001700 preview_render: None,
17011701 dbus_interfaces_in_non_session_instances: false,
17021702 wait_for_frame_completion_before_queueing: false,