From 0523b07532ac03764bed45c9cc65a85ba8bbd057 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 29 May 2021 20:38:18 +0100 Subject: [PATCH] config: Rename in_libexec and reformat Signed-off-by: Ian Jackson --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 336c1675..952c022c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -149,10 +149,10 @@ impl ServerConfigSpec { let bundled_sources = defpath(bundled_sources, "bundled-sources" ); const DEFAULT_LIBRARY_GLOB: &str = "library/*.toml"; - let libexec = |specd: Option, leaf: &str| -> String { + let in_libexec = |specd: Option, leaf: &str| -> String { specd.unwrap_or_else(|| format!("{}/{}", &libexec_dir, leaf)) }; - let usvg_bin = libexec(usvg_bin, "usvg"); + let usvg_bin = in_libexec(usvg_bin, "usvg" ); let shapelibs = shapelibs.unwrap_or_else(||{ let glob = defpath(None, DEFAULT_LIBRARY_GLOB); -- 2.30.2