Skip to content

Commit

Permalink
fix: formatting for terminating conjunction linter
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Oct 20, 2024
1 parent a25bb55 commit 754ded0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions harper-core/src/linting/terminating_conjunctions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::{Lint, LintKind, PatternLinter};
use crate::patterns::{ConsumesRemainingPattern, Pattern, SequencePattern};
use crate::{Lrc, TokenStringExt};
use crate::Lrc;

pub struct TerminatingConjunctions {
pattern: Box<dyn Pattern>,
Expand Down Expand Up @@ -54,11 +54,11 @@ impl PatternLinter for TerminatingConjunctions {
}

fn match_to_lint(&self, matched_tokens: &[crate::Token], source: &[char]) -> Lint {
let span = matched_tokens.span().unwrap();
let word = span.get_content_string(source);
let word_span = matched_tokens[0].span;
let word = word_span.get_content_string(source);

Lint {
span,
span: word_span,
lint_kind: LintKind::Miscellaneous,
suggestions: vec![],
message: format!(
Expand Down

0 comments on commit 754ded0

Please sign in to comment.