Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
refactor: remove BackslashEscape
Browse files Browse the repository at this point in the history
  • Loading branch information
unvalley committed Jul 6, 2023
1 parent 23937a0 commit 90188d0
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ declare_rule! {
#[derive(Debug)]
pub(crate) enum FixSuggestionKind {
Refactor,
// EscapeBackslash,
}

#[derive(Debug)]
Expand Down Expand Up @@ -148,14 +147,6 @@ impl Rule for NoNonoctalDecimalEscape {
replace_string_range: replace_string_range.clone(),
})
}
// \8 -> \\8
// signals.push(RuleState {
// kind: FixSuggestionKind::EscapeBackslash,
// diagnostics_text_range: decimal_escape_range,
// replace_to: format!("\\{}", decimal_escape),
// replace_from: decimal_escape.to_string(),
// replace_string_range,
// });
}
}

Expand Down Expand Up @@ -214,9 +205,6 @@ impl Rule for NoNonoctalDecimalEscape {
FixSuggestionKind::Refactor => {
markup! ("Replace "<Emphasis>{replace_from}</Emphasis>" with "<Emphasis>{replace_to}</Emphasis>". This maintains the current functionality.").to_owned()
}
// FixSuggestionKind::EscapeBackslash => {
// markup! ("Replace "<Emphasis>{replace_from}</Emphasis>" with "<Emphasis>{replace_to}</Emphasis>" to include the actual backslash character." ).to_owned()
// }
},
mutation,
})
Expand Down

0 comments on commit 90188d0

Please sign in to comment.