Skip to content

Commit f0dc3c6

Browse files
fix fmt
1 parent 8d8fa03 commit f0dc3c6

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

raz-core/src/file_detection.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,6 @@ impl FileDetector {
947947
Ok("unknown".to_string())
948948
}
949949

950-
951950
fn detect_non_test_entries(content: &str) -> RazResult<Vec<EntryPoint>> {
952951
let mut entry_points = Vec::new();
953952
let lines: Vec<&str> = content.lines().collect();
@@ -1057,9 +1056,7 @@ impl FileDetector {
10571056
if let Some(for_pos) = trimmed.find(" for ") {
10581057
// Extract the type after "for"
10591058
let after_for = &trimmed[for_pos + 5..];
1060-
let name_end = after_for
1061-
.find([' ', '{', '<'])
1062-
.unwrap_or(after_for.len());
1059+
let name_end = after_for.find([' ', '{', '<']).unwrap_or(after_for.len());
10631060
let type_name = after_for[..name_end].trim();
10641061
if !type_name.is_empty() {
10651062
return Some(type_name.to_string());
@@ -1077,9 +1074,7 @@ impl FileDetector {
10771074
&trimmed[4..].trim() // Skip "impl"
10781075
};
10791076

1080-
let name_end = after_impl
1081-
.find([' ', '{', '<'])
1082-
.unwrap_or(after_impl.len());
1077+
let name_end = after_impl.find([' ', '{', '<']).unwrap_or(after_impl.len());
10831078
let type_name = after_impl[..name_end].trim();
10841079
if !type_name.is_empty() {
10851080
return Some(type_name.to_string());

raz-core/src/tree_sitter_test_detector.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ impl TreeSitterTestDetector {
179179
}
180180
}
181181

182-
183182
/// Check if the doc comment text contains Rust code blocks
184183
fn contains_rust_code_blocks(&self, doc_text: &str) -> bool {
185184
// Look for ``` blocks (with or without rust specifier)
@@ -756,7 +755,6 @@ impl TreeSitterTestDetector {
756755
None
757756
}
758757

759-
760758
/// Recursively find the test context at cursor position
761759
fn find_context_recursive(
762760
&self,

0 commit comments

Comments
 (0)