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.