Skip to content

Commit 92d2dec

Browse files
authored
ci: integrate clippy on riir branch (#114)
1 parent 38073f3 commit 92d2dec

4 files changed

Lines changed: 8 additions & 11 deletions

File tree

‎.github/workflows/clippy.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ on:
66
- ready_for_review
77

88
push:
9-
branches:
10-
- main
9+
branches: [main, riir]
1110
paths-ignore:
1211
- "extras"
1312
- ".rusty-hook.toml"

‎Makefile.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ args = ["fmt", "--all"]
2626
script = '''
2727
leptosfmt .
2828
cargo fmt --all
29-
cargo clippy --fix -- -D warnings
29+
cargo clippy --fix --features ssr -- -D warnings
3030
'''
3131

3232
[tasks.check]
3333
script = '''
3434
leptosfmt --check .
3535
cargo fmt --all --check
36-
cargo clippy -- -D warnings
36+
cargo clippy --features ssr -- -D warnings
3737
'''
3838

3939
[tasks.leptos-format]

‎src/components/contributors.rs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ pub fn Contributors() -> impl IntoView {
2828
let contributors_list = contributors
2929
.into_iter()
3030
.map(|c| {
31-
return view! {
32-
// <div class="min-w-60 max-w-xs h-full">
31+
view! {
3332
<div class="min-w-87.5 max-w-md h-full mt-5">
3433
<Card class="min-w-87.5 max-w-md h-full">
3534
<div class="flex flex-col gap-4 justify-between h-full">

‎src/components/other_communities.rs‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
use leptos::prelude::*;
22
use rustlanges_components::{
33
avatar::Avatar,
4-
badge::Badge,
54
button::{Button, Variant as ButtonVariant},
6-
card::{Card, Variant as CardVariant},
5+
card::Card,
76
chip::{Chip, Variant as ChipVariant},
8-
icons::{Github, Telegram, Twitter},
7+
icons::Telegram,
98
input::{Filter, InputSearch},
10-
tag::Tag,
119
};
1210

1311
type ResourceAlias = Vec<Filter>;
@@ -22,7 +20,8 @@ pub fn OtherCommunities() -> impl IntoView {
2220
<p class="text-center max-w-lg">"Encuentra la comunidad más cercana a ti"</p>
2321
</div>
2422
<div class="flex flex-col justify-center mb-8 container mt-10 mx-auto max-w-fit">
25-
<InputSearch on_change_filter=move |resource: ResourceAlias| () />
23+
// TODO: Implement functionality referenced in the issue: https://github.com/RustLangES/RustLangES.github.io/issues/113
24+
<InputSearch on_change_filter=move |_resource: ResourceAlias| () />
2625
</div>
2726
</div>
2827
<div class="flex flex-row justify-center items-center gap-4 max-w-full m-auto">

0 commit comments

Comments
 (0)