config: add fixme on `includes`
Browse files at this commit62c230a662ac913a54fc49c86fda0406da3f3ba9Parent: 494eb0d2 changed files +7 -0
- niri-config/src/error.rs +3 -0
- niri-config/src/lib.rs +4 -0
niri-config/src/error.rsmodified+3 -0
| @@ -13,6 +13,9 @@ pub struct ConfigParseResult<T, E> { | |||
| 13 | // If the main config is valid, but an included file fails to parse, config will be an Err(), | 13 | // If the main config is valid, but an included file fails to parse, config will be an Err(), |
| 14 | // but includes will still be filled, so that fixing just the included file is enough to | 14 | // but includes will still be filled, so that fixing just the included file is enough to |
| 15 | // trigger a reload. | 15 | // trigger a reload. |
| 16 | + // | ||
| 17 | + // FIXME: This is currently used to track all the files that needed to be watched. The name | ||
| 18 | + // `includes` is not really correct and should be renamed in the future. | ||
| 16 | pub includes: Vec<PathBuf>, | 19 | pub includes: Vec<PathBuf>, |
| 17 | } | 20 | } |
| 18 | 21 | ||
niri-config/src/lib.rsmodified+4 -0
| @@ -117,8 +117,12 @@ pub enum ConfigPath { | |||
| 117 | struct BasePath(PathBuf); | 117 | struct BasePath(PathBuf); |
| 118 | struct RootBase(PathBuf); | 118 | struct RootBase(PathBuf); |
| 119 | struct Recursion(u8); | 119 | struct Recursion(u8); |
| 120 | + | ||
| 121 | +// FIXME: This is currently used to track all the files that needed to be watched. The name | ||
| 122 | +// `Includes` is not really correct and should be renamed in the future. | ||
| 120 | #[derive(Default)] | 123 | #[derive(Default)] |
| 121 | struct Includes(Vec<PathBuf>); | 124 | struct Includes(Vec<PathBuf>); |
| 125 | + | ||
| 122 | #[derive(Default)] | 126 | #[derive(Default)] |
| 123 | struct IncludeErrors(Vec<knuffel::Error>); | 127 | struct IncludeErrors(Vec<knuffel::Error>); |
| 124 | // Used for recursive include detection. | 128 | // Used for recursive include detection. |