diff options
Diffstat (limited to 'alacritty/src/config')
-rw-r--r-- | alacritty/src/config/bindings.rs | 8 | ||||
-rw-r--r-- | alacritty/src/config/monitor.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 72ea88b2..3aae25ed 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -899,7 +899,7 @@ struct RawBinding { } impl RawBinding { - fn into_mouse_binding(self) -> Result<MouseBinding, Self> { + fn into_mouse_binding(self) -> Result<MouseBinding, Box<Self>> { if let Some(mouse) = self.mouse { Ok(Binding { trigger: mouse, @@ -909,11 +909,11 @@ impl RawBinding { notmode: self.notmode, }) } else { - Err(self) + Err(Box::new(self)) } } - fn into_key_binding(self) -> Result<KeyBinding, Self> { + fn into_key_binding(self) -> Result<KeyBinding, Box<Self>> { if let Some(key) = self.key { Ok(KeyBinding { trigger: key, @@ -923,7 +923,7 @@ impl RawBinding { notmode: self.notmode, }) } else { - Err(self) + Err(Box::new(self)) } } } diff --git a/alacritty/src/config/monitor.rs b/alacritty/src/config/monitor.rs index 305f5dfb..8981570c 100644 --- a/alacritty/src/config/monitor.rs +++ b/alacritty/src/config/monitor.rs @@ -63,7 +63,7 @@ pub fn watch(mut paths: Vec<PathBuf>, event_proxy: EventLoopProxy<Event>) { // Watch all configuration file directories. for parent in &parents { - if let Err(err) = watcher.watch(&parent, RecursiveMode::NonRecursive) { + if let Err(err) = watcher.watch(parent, RecursiveMode::NonRecursive) { debug!("Unable to watch config directory {:?}: {}", parent, err); } } |