Skip to content

Commit

Permalink
Fix typo and clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
doonv committed May 25, 2024
1 parent b53ec39 commit 772e3e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/builtin_parser/runner/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ impl Environment {
let name = name.into();
if self.variables.contains_key(&name) {
warn!("Function {name} declared twice.");
} else {
}
self.variables
.insert(name, Variable::Function(function.into_function()));
Expand Down
2 changes: 1 addition & 1 deletion src/ui/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn completions(
}

let cursor_index = (|| {
// Conver the cursor's char index into a byte index
// Convert the cursor's char index into a byte index
// aswell as returning the character at the cursor's position position
let (primary_index, char) = state
.command
Expand Down

0 comments on commit 772e3e0

Please sign in to comment.