chore: run rustfmt and typo fix
MODIFY
crates/rome_js_analyze/src/semantic_analyzers/nursery/use_exhaustive_dependencies.rs
crates/rome_js_analyze/src/semantic_analyzers/nursery/use_exhaustive_dependencies.rs
@@ -126,7 +126,7 @@ pub enum Fix {
function_name_range: TextRange,
capture_range: TextRange,
dependency_range: TextRange,
- }
+ },
}
fn get_whole_static_member_expression(
@@ -248,8 +248,11 @@ impl Rule for UseExhaustiveDependencies {
let mut is_captured_covered = false;
for (dependency_text, dependency_range) in deps.iter() {
let capture_deeper_than_dependency = capture_text.starts_with(dependency_text);
- let dependency_deeper_then_capture = dependency_text.starts_with(capture_text);
- match (capture_deeper_than_dependency, dependency_deeper_then_capture) {
+ let dependency_deeper_than_capture = dependency_text.starts_with(capture_text);
+ match (
+ capture_deeper_than_dependency,
+ dependency_deeper_than_capture,
+ ) {
// capture == dependency
(true, true) => {
suggested_fix = None;
@@ -361,7 +364,11 @@ impl Rule for UseExhaustiveDependencies {
Some(diag)
}
- Fix::DependencyTooDeep { function_name_range, capture_range, dependency_range } => {
+ Fix::DependencyTooDeep {
+ function_name_range,
+ capture_range,
+ dependency_range,
+ } => {
let diag = RuleDiagnostic::new(
rule_category!(),
function_name_range,

chore: run rustfmt and typo fix (#3840)