From 6e51e9e27b384e68bda85f1a35f5c9219bb49400 Mon Sep 17 00:00:00 2001 From: Niklas Claesson Date: Mon, 23 Jan 2017 09:00:52 +0100 Subject: Change to process::Command --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index e9173f6c..0e32e42c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -197,7 +197,7 @@ pub struct Config { mouse_bindings: Vec, /// Path to a shell program to run on startup - shell: Option, + shell: Option, /// Path where config was loaded from config_path: Option, @@ -902,10 +902,10 @@ impl Config { .map(|p| p.as_path()) } - pub fn shell(&self) -> Option<&Path> { + pub fn shell(&self) -> Option<&str> { self.shell .as_ref() - .map(PathBuf::as_path) + .map(String::as_str) } fn load_from>(path: P) -> Result { -- cgit v1.2.3-54-g00ecf