Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Sep 7, 2024
1 parent ad6fa41 commit f22c675
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/deno_task_shell/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,6 @@ fn parse_word(pair: Pair<Rule>) -> Result<Word> {
for part in pair.into_inner() {
match part.as_rule() {
Rule::UNQUOTED_ESCAPE_CHAR => {
println!("part: {:?}", part);
if let Some(WordPart::Text(ref mut text)) = parts.last_mut() {
text.push(part.as_str().chars().next().unwrap());
} else {
Expand Down
2 changes: 1 addition & 1 deletion crates/deno_task_shell/src/shell/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1498,4 +1498,4 @@ async fn multiline() {
.await;

insta::assert_snapshot!(stdout);
}
}
1 change: 0 additions & 1 deletion crates/deno_task_shell/src/shell/test_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ impl TestBuilder {
"\n\nFailed for: {}",
self.command
);


for assertion in &self.assertions {
match assertion {
Expand Down
2 changes: 1 addition & 1 deletion crates/shell/src/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl Completer for ShellCompleter {
}

fn extract_word(line: &str, pos: usize) -> (usize, &str) {
if line.ends_with(" ") {
if line.ends_with(' ') {
return (pos, "");
}
let words: Vec<_> = line[..pos].split_whitespace().collect();
Expand Down

0 comments on commit f22c675

Please sign in to comment.