From 13539f1a411c907a450ea0f64ce75fd1f3ff214d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 7 May 2024 22:17:13 +0200 Subject: feat(pkgs/lf-make-map): Ensure that it works (for a depth=1) --- sys/nixpkgs/pkgs/lf-make-map/src/main.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'sys/nixpkgs/pkgs/lf-make-map/src/main.rs') diff --git a/sys/nixpkgs/pkgs/lf-make-map/src/main.rs b/sys/nixpkgs/pkgs/lf-make-map/src/main.rs index 8a1ca602..362b28db 100644 --- a/sys/nixpkgs/pkgs/lf-make-map/src/main.rs +++ b/sys/nixpkgs/pkgs/lf-make-map/src/main.rs @@ -42,15 +42,17 @@ fn main() -> anyhow::Result<()> { ) })?; - mappings.include(path.to_str().with_context(|| { - format!( - "\ + mappings + .include(path.to_str().with_context(|| { + format!( + "\ Can't derive a keymapping from path: '{}' \ because it can't be turned to a string ", - path.display() - ) - })?); + path.display() + ) + })?) + .with_context(|| format!("Failed to include path: '{}'", path.display()))?; trace!("Processed '{}'..", directory.path().display()); } -- cgit 1.4.1