Skip to content

Commit

Permalink
fix: formatting issues from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Jun 15, 2024
1 parent 2bb2a19 commit fc24016
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions harper-core/src/linting/multiple_sequential_pronouns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ use crate::{CharString, Document, Lint, LintKind, Linter, Span, Token, TokenStri
#[derive(Debug)]
pub struct MultipleSequentialPronouns {
/// Since there aren't many pronouns, it's faster to store this as a vector.
pronouns: Vec<CharString>,
pronouns: Vec<CharString>
}

impl MultipleSequentialPronouns {
fn new() -> Self {
let pronoun_strs = [
"me", "my", "I", "we", "you", "he", "him", "her", "she", "it", "they",
"me", "my", "I", "we", "you", "he", "him", "her", "she", "it", "they"
];

let mut pronouns: Vec<CharString> = pronoun_strs
Expand Down Expand Up @@ -89,7 +89,7 @@ mod tests {
assert_lint_count(
"...little bit about my I want to do.",
MultipleSequentialPronouns::new(),
1,
1
)
}

Expand All @@ -98,7 +98,7 @@ mod tests {
assert_lint_count(
"...little bit about my I you want to do.",
MultipleSequentialPronouns::new(),
1,
1
)
}

Expand All @@ -107,7 +107,7 @@ mod tests {
assert_lint_count(
"...little bit about I want to do.",
MultipleSequentialPronouns::new(),
0,
0
)
}

Expand All @@ -116,7 +116,7 @@ mod tests {
assert_lint_count(
"...little bit about I want to do to me you.",
MultipleSequentialPronouns::new(),
1,
1
)
}
}

0 comments on commit fc24016

Please sign in to comment.