Skip to content

Commit 38f3df7

Browse files
committed
Fix formatting
1 parent b4a292f commit 38f3df7

3 files changed

Lines changed: 28 additions & 19 deletions

File tree

src/components/search_bar.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::db::models::SymbolSuggestion;
2-
use crate::dsl::{TextSearchRequest, parse_query, tokenize_for_autocomplete};
2+
use crate::dsl::{TextSearchRequest, tokenize_for_autocomplete};
33
use crate::services::search_service::{
44
autocomplete_branches, autocomplete_files, autocomplete_languages, autocomplete_paths,
55
autocomplete_repositories, autocomplete_symbols,
@@ -660,12 +660,12 @@ pub fn SearchBar(
660660
class="font-mono text-sm bg-gray-100 dark:bg-gray-700 p-2 rounded cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600"
661661
on:mousedown=move |ev| {
662662
ev.prevent_default();
663-
set_query.set(ex.to_string());
664-
active_index.set(None);
665-
}
666-
>
667-
{ex}
668-
</div>
663+
set_query.set(ex.to_string());
664+
active_index.set(None);
665+
}
666+
>
667+
{ex}
668+
</div>
669669
}
670670
})
671671
.collect_view()}
@@ -693,15 +693,15 @@ pub fn SearchBar(
693693
}
694694
let symbol_column = symbol_group
695695
.map(|group| {
696-
render_group_view(
697-
group,
698-
active_idx,
699-
active_start,
700-
current_query.clone(),
701-
set_query,
702-
active_index,
703-
)
704-
});
696+
render_group_view(
697+
group,
698+
active_idx,
699+
active_start,
700+
current_query.clone(),
701+
set_query,
702+
active_index,
703+
)
704+
});
705705
let dsl_column = dsl_group
706706
.map(|group| {
707707
render_group_view(

src/db/postgres.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2678,6 +2678,7 @@ struct SearchResultRow {
26782678
file_path: String,
26792679
content_hash: String,
26802680
start_line: i64,
2681+
#[allow(dead_code)]
26812682
line_count: i32,
26822683
content_text: String,
26832684
match_line_number: i32,
@@ -2690,15 +2691,23 @@ struct SearchResultRow {
26902691
#[derive(sqlx::FromRow, Debug, Clone)]
26912692
struct RankedFileRow {
26922693
repository: String,
2694+
#[allow(dead_code)]
26932695
commit_sha: String,
26942696
file_path: String,
2697+
#[allow(dead_code)]
26952698
content_hash: String,
2699+
#[allow(dead_code)]
26962700
chunk_index: i32,
2701+
#[allow(dead_code)]
26972702
total_score: f64,
2703+
#[allow(dead_code)]
26982704
include_historical: bool,
26992705
branches: Vec<String>,
2706+
#[allow(dead_code)]
27002707
live_branches: Vec<String>,
2708+
#[allow(dead_code)]
27012709
is_historical: bool,
2710+
#[allow(dead_code)]
27022711
snapshot_indexed_at: Option<DateTime<Utc>>,
27032712
}
27042713

src/pages/file_viewer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,9 @@ pub fn FileViewer() -> impl IntoView {
673673
</Suspense>
674674
</div>
675675
<div class="w-80 flex-shrink-0 flex flex-col gap-3 sticky top-20 self-start">
676-
<CopyPathButton
677-
path=Signal::derive(move || path().unwrap_or_default())
678-
/>
676+
<CopyPathButton path=Signal::derive(move || {
677+
path().unwrap_or_default()
678+
}) />
679679
<CodeIntelPanel
680680
repo=repo.into()
681681
branch=branch.into()

0 commit comments

Comments
 (0)