diff --git a/build/communities.rs b/build/communities.rs index 3211b15..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"); @@ -73,5 +73,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 {