config: Rename DebugConfig => Debug
Browse files at this commitb02c5d2d36568cc2d555efd244ac6ab64acaa306Parent: e5188da2 changed files +4 -4
- niri-config/src/debug.rs +1 -1
- niri-config/src/lib.rs +3 -3
niri-config/src/debug.rsmodified+1 -1
| @@ -1,7 +1,7 @@ | |||
| 1 | use std::path::PathBuf; | 1 | use std::path::PathBuf; |
| 2 | 2 | ||
| 3 | #[derive(knuffel::Decode, Debug, Default, PartialEq)] | 3 | #[derive(knuffel::Decode, Debug, Default, PartialEq)] |
| 4 | -pub struct DebugConfig { | 4 | +pub struct Debug { |
| 5 | #[knuffel(child, unwrap(argument))] | 5 | #[knuffel(child, unwrap(argument))] |
| 6 | pub preview_render: Option<PreviewRender>, | 6 | pub preview_render: Option<PreviewRender>, |
| 7 | #[knuffel(child)] | 7 | #[knuffel(child)] |
niri-config/src/lib.rsmodified+3 -3
| @@ -25,7 +25,7 @@ pub mod workspace; | |||
| 25 | pub use crate::animations::{Animation, Animations}; | 25 | pub use crate::animations::{Animation, Animations}; |
| 26 | pub use crate::appearance::*; | 26 | pub use crate::appearance::*; |
| 27 | pub use crate::binds::*; | 27 | pub use crate::binds::*; |
| 28 | -pub use crate::debug::DebugConfig; | 28 | +pub use crate::debug::Debug; |
| 29 | pub use crate::gestures::Gestures; | 29 | pub use crate::gestures::Gestures; |
| 30 | pub use crate::input::{Input, ModKey, ScrollMethod, TrackLayout, WarpMouseToFocusMode, Xkb}; | 30 | pub use crate::input::{Input, ModKey, ScrollMethod, TrackLayout, WarpMouseToFocusMode, Xkb}; |
| 31 | pub use crate::layer_rule::LayerRule; | 31 | pub use crate::layer_rule::LayerRule; |
| @@ -85,7 +85,7 @@ pub struct Config { | |||
| 85 | #[knuffel(child, default)] | 85 | #[knuffel(child, default)] |
| 86 | pub switch_events: SwitchBinds, | 86 | pub switch_events: SwitchBinds, |
| 87 | #[knuffel(child, default)] | 87 | #[knuffel(child, default)] |
| 88 | - pub debug: DebugConfig, | 88 | + pub debug: Debug, |
| 89 | #[knuffel(children(name = "workspace"))] | 89 | #[knuffel(children(name = "workspace"))] |
| 90 | pub workspaces: Vec<Workspace>, | 90 | pub workspaces: Vec<Workspace>, |
| 91 | } | 91 | } |
| @@ -1696,7 +1696,7 @@ mod tests { | |||
| 1696 | }, | 1696 | }, |
| 1697 | ), | 1697 | ), |
| 1698 | }, | 1698 | }, |
| 1699 | - debug: DebugConfig { | 1699 | + debug: Debug { |
| 1700 | preview_render: None, | 1700 | preview_render: None, |
| 1701 | dbus_interfaces_in_non_session_instances: false, | 1701 | dbus_interfaces_in_non_session_instances: false, |
| 1702 | wait_for_frame_completion_before_queueing: false, | 1702 | wait_for_frame_completion_before_queueing: false, |