From 62c230a662ac913a54fc49c86fda0406da3f3ba9 Mon Sep 17 00:00:00 2001 From: HigherOrderLogic <73709188+HigherOrderLogic@users.noreply.github.com> Date: Thu, 17 Sep 2026 15:45:02 +1000 Subject: [PATCH] config: add fixme on `includes` --- niri-config/src/error.rs | 3 +++ niri-config/src/lib.rs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/niri-config/src/error.rs b/niri-config/src/error.rs index 0210c9c1..efc9900b 100644 --- a/niri-config/src/error.rs +++ b/niri-config/src/error.rs @@ -13,6 +13,9 @@ pub struct ConfigParseResult { // If the main config is valid, but an included file fails to parse, config will be an Err(), // but includes will still be filled, so that fixing just the included file is enough to // trigger a reload. + // + // FIXME: This is currently used to track all the files that needed to be watched. The name + // `includes` is not really correct and should be renamed in the future. pub includes: Vec, } diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index e8ae3cc1..5dff4e5c 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -117,8 +117,12 @@ pub enum ConfigPath { struct BasePath(PathBuf); struct RootBase(PathBuf); struct Recursion(u8); + +// FIXME: This is currently used to track all the files that needed to be watched. The name +// `Includes` is not really correct and should be renamed in the future. #[derive(Default)] struct Includes(Vec); + #[derive(Default)] struct IncludeErrors(Vec); // Used for recursive include detection.