summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-04-05 17:37:56 +0200
committerAram Drevekenin <aram@poor.dev>2024-04-05 17:37:56 +0200
commite30880beb1a530eab5c227a2460a634256398f6b (patch)
treec8b02bc9af0a9743ffbed7fb9959598eec2eb311
parente149bdc60a6eb4af44de7af20ab60ecf0bc291e1 (diff)
style(fmt): rustfmt
-rw-r--r--zellij-utils/src/input/layout.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/zellij-utils/src/input/layout.rs b/zellij-utils/src/input/layout.rs
index a8a323594..1235f3d2b 100644
--- a/zellij-utils/src/input/layout.rs
+++ b/zellij-utils/src/input/layout.rs
@@ -464,8 +464,15 @@ impl PluginAlias {
// filepicker that has access to the whole filesystem but wants to start in a specific
// folder)
if let Some(caller_cwd) = caller_cwd {
- if self.configuration.as_ref().map(|c| c.inner().get("caller_cwd").is_none()).unwrap_or(true) {
- let configuration = self.configuration.get_or_insert_with(|| PluginUserConfiguration::new(BTreeMap::new()));
+ if self
+ .configuration
+ .as_ref()
+ .map(|c| c.inner().get("caller_cwd").is_none())
+ .unwrap_or(true)
+ {
+ let configuration = self
+ .configuration
+ .get_or_insert_with(|| PluginUserConfiguration::new(BTreeMap::new()));
configuration.insert("caller_cwd", caller_cwd.display().to_string());
}
}