diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-07 22:17:13 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-07 22:17:13 +0200 |
commit | 13539f1a411c907a450ea0f64ce75fd1f3ff214d (patch) | |
tree | 3fd7cd316cd4b92bde275c269aa9025733a8751c /sys/nixpkgs/pkgs/lf-make-map/src/main.rs | |
parent | feat(pkgs/lf-make-map): Implement all needed details to produce first mappings (diff) | |
download | nixos-config-13539f1a411c907a450ea0f64ce75fd1f3ff214d.zip |
feat(pkgs/lf-make-map): Ensure that it works (for a depth=1)
Diffstat (limited to '')
-rw-r--r-- | sys/nixpkgs/pkgs/lf-make-map/src/main.rs | 14 |
1 files changed, 8 insertions, 6 deletions
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()); } |