Skip to content

Commit

Permalink
refactor: fixed some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonVirgo committed Jul 23, 2024
1 parent 22af8c9 commit 9aef90f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/routes/api/dashboard/player_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::components::{
use actix_web::{get, HttpResponse, Responder};
use maud::html;


#[get("/players")]
async fn player_data() -> impl Responder {
HttpResponse::Ok().body(
Expand Down
5 changes: 2 additions & 3 deletions src/routes/api/dashboard/vote_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ struct TableRow {
name: String,
alignment: String,
role: String,
replacements: String
replacements: String,
}
fn format_table_row(row:TableRow) -> Markup {
fn format_table_row(row: TableRow) -> Markup {
html!({
tr."even:bg-zinc-600" {
td."px-4 py-2" { (row.name) }
Expand All @@ -22,7 +22,6 @@ fn format_table_row(row:TableRow) -> Markup {
})
}


#[get("/votes")]
async fn vote_data() -> impl Responder {
HttpResponse::Ok().body(
Expand Down

0 comments on commit 9aef90f

Please sign in to comment.