From e8f7d2badd2616f4fe3d44eec55396ea2d4a953a Mon Sep 17 00:00:00 2001 From: MarioYellowy Date: Mon, 2 Nov 2026 22:19:41 -0600 Subject: [PATCH 1/2] Make no mistakes --- build/communities.rs | 5 ++--- build/main.rs | 2 +- build/top_projects.rs | 2 +- src/components/stay_up_date.rs | 5 +---- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/build/communities.rs b/build/communities.rs index 3211b15..280e66e 100644 --- a/build/communities.rs +++ b/build/communities.rs @@ -59,8 +59,7 @@ pub fn generate(path: &Path) { write!( output_file, - r#" - CommunityItem {{ + r#" CommunityItem {{ name: &{name:?}, description: "{description}", link: "{link}", @@ -73,5 +72,5 @@ pub fn generate(path: &Path) { } write!(other_file, "\n];").unwrap(); - write!(rust_file, "\n];").unwrap(); + write!(rust_file, "\n];\n").unwrap(); } diff --git a/build/main.rs b/build/main.rs index e996ce4..fcee5c2 100644 --- a/build/main.rs +++ b/build/main.rs @@ -20,7 +20,7 @@ fn main() { // Generate src/extras/mod.rs let mut out = fs::File::create("src/extras/mod.rs").unwrap(); - write!(out, "#[rustfmt::skip]\nmod other_communities;\nmod rust_communities;\n#[rustfmt::skip]\nmod projects;\n#[rustfmt::skip]\nmod top_projects;\npub use other_communities::*;\npub use rust_communities::*;\npub use projects::*;\npub use top_projects::*;\n").unwrap(); + write!(out, "#[rustfmt::skip]\nmod other_communities;\n#[rustfmt::skip]\nmod projects;\nmod rust_communities;\n#[rustfmt::skip]\nmod top_projects;\npub use other_communities::*;\npub use projects::*;\npub use rust_communities::*;\npub use top_projects::*;\n").unwrap(); let mut extra_projects = Vec::new(); diff --git a/build/top_projects.rs b/build/top_projects.rs index 5484ba7..d06def1 100644 --- a/build/top_projects.rs +++ b/build/top_projects.rs @@ -43,7 +43,7 @@ pub fn generate(extra_projects: &[ProjectItem]) { return; } - let projects = fetch().unwrap_or_else(|e| random_extra_projects(extra_projects)); + let projects = fetch().unwrap_or_else(|_e| random_extra_projects(extra_projects)); write(&projects); } diff --git a/src/components/stay_up_date.rs b/src/components/stay_up_date.rs index 79365cb..df8f45c 100644 --- a/src/components/stay_up_date.rs +++ b/src/components/stay_up_date.rs @@ -1,8 +1,5 @@ use leptos::prelude::*; -use rustlanges_components::{ - button::{Button, Variant as ButtonVariant}, - card::Card, -}; +use rustlanges_components::button::{Button, Variant as ButtonVariant}; #[component] pub fn StayUpDate() -> impl IntoView { From 768bd3f408889e1205436c140cd63fa039a9ac97 Mon Sep 17 00:00:00 2001 From: Phosphorus-M Date: Tue, 3 Nov 2026 01:34:34 -0300 Subject: [PATCH 2/2] GRACIAS MARIO POR Co-authored-by: YellowDev <111405389+MarioYellowy@users.noreply.github.com> --- build/communities.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/communities.rs b/build/communities.rs index 280e66e..ba2a654 100644 --- a/build/communities.rs +++ b/build/communities.rs @@ -36,7 +36,7 @@ pub fn generate(path: &Path) { let mut rust_file = fs::File::create("src/extras/rust_communities.rs").unwrap(); write!( rust_file, - "use crate::models::CommunityItem;\npub const RUST_COMMUNITIES: &[CommunityItem] = &[\n" + "use crate::models::CommunityItem;\npub const RUST_COMMUNITIES: &[CommunityItem] = &[" ) .expect("No se pudo crear el archivo src/extras/rust_communities.rs"); @@ -59,7 +59,8 @@ pub fn generate(path: &Path) { write!( output_file, - r#" CommunityItem {{ + r#" + CommunityItem {{ name: &{name:?}, description: "{description}", link: "{link}",