Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao committed Dec 16, 2024
1 parent c6b5da3 commit 10d929d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,7 @@ fn App() -> impl IntoView {
</div>

</div>
<Settings
show=show_settings
set_show=set_show_settings
/>
<Settings show=show_settings set_show=set_show_settings />
</div>
}
}
Expand Down
8 changes: 2 additions & 6 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ fn save_to_storage(key: &str, value: &str) {
}

#[component]
pub fn Settings(
show: ReadSignal<bool>,
set_show: WriteSignal<bool>,
) -> impl IntoView {
let (anthropic_key, set_anthropic_key) = signal(get_stored_value(ANTHROPIC_API_KEY, ""));
pub fn Settings(show: ReadSignal<bool>, set_show: WriteSignal<bool>) -> impl IntoView {
let (anthropic_key, set_anthropic_key) = signal(get_stored_value(ANTHROPIC_API_KEY, ""));
let (s3_endpoint, set_s3_endpoint) = signal(get_stored_value(
S3_ENDPOINT_KEY,
"https://s3.amazonaws.com",
Expand Down Expand Up @@ -93,7 +90,6 @@ pub fn Settings(
class="w-full px-3 py-2 border border-gray-300 rounded-md"
/>
</div>

</div>

// S3 Configuration Section
Expand Down

0 comments on commit 10d929d

Please sign in to comment.