aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/comp/shell_ctx.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_core/src/comp/shell_ctx.rs')
-rw-r--r--mingling_core/src/comp/shell_ctx.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mingling_core/src/comp/shell_ctx.rs b/mingling_core/src/comp/shell_ctx.rs
index 734b5d2..ceb433f 100644
--- a/mingling_core/src/comp/shell_ctx.rs
+++ b/mingling_core/src/comp/shell_ctx.rs
@@ -64,7 +64,7 @@ impl TryFrom<Vec<String>> for ShellContext {
.map(|s| s.replace('^', "-"))
.collect();
- Ok(ShellContext {
+ Ok(Self {
command_line: command_line.replace('^', "-"),
cursor_position,
current_word: current_word.replace('^', "-"),
@@ -201,7 +201,7 @@ impl ShellContext {
}
#[cfg(not(target_os = "windows"))]
{
- self.current_word.starts_with("-")
+ self.current_word.starts_with('-')
}
}