Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/communities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -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();
}
2 changes: 1 addition & 1 deletion build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion build/top_projects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
5 changes: 1 addition & 4 deletions src/components/stay_up_date.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down