mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Partially implement config includes
Subsequent commits will add merging for all leftover sections.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
struct KdlCodeBlock {
|
||||
filename: String,
|
||||
@@ -84,7 +84,7 @@ fn wiki_docs_parses() {
|
||||
must_fail,
|
||||
} in code_blocks
|
||||
{
|
||||
if let Err(error) = niri_config::Config::parse(&filename, &code) {
|
||||
if let Err(error) = niri_config::Config::parse(Path::new(&filename), &code).config {
|
||||
if !must_fail {
|
||||
errors.push(format!(
|
||||
"Error parsing wiki KDL code block at {}:{}: {:?}",
|
||||
|
||||
Reference in New Issue
Block a user