From 025110efae60cbce7f2d12d288bf92639a78c455 Mon Sep 17 00:00:00 2001 From: Khoa Vo Date: Sun, 15 Mar 2026 07:03:01 +0700 Subject: [PATCH] fix: Update Rust edition and fix frontend TypeScript error --- Dockerfile | 2 +- backend-rust/Cargo.toml | 2 +- frontend-vite/src/components/PlayerBar.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cd8d289..bc45649 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN npm run build # --------------------------- # Stage 2: Build Backend (Rust) # --------------------------- -FROM rust:1.75-bookworm AS backend-builder +FROM rust:1.85-bookworm AS backend-builder WORKDIR /app/backend COPY backend-rust/Cargo.toml ./ diff --git a/backend-rust/Cargo.toml b/backend-rust/Cargo.toml index a53518d..da9f7fb 100644 --- a/backend-rust/Cargo.toml +++ b/backend-rust/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "backend-rust" version = "0.1.0" -edition = "2024" +edition = "2021" [dependencies] axum = "0.8.8" diff --git a/frontend-vite/src/components/PlayerBar.tsx b/frontend-vite/src/components/PlayerBar.tsx index 8a6c7d2..487a796 100644 --- a/frontend-vite/src/components/PlayerBar.tsx +++ b/frontend-vite/src/components/PlayerBar.tsx @@ -461,7 +461,7 @@ export default function PlayerBar() { className="w-full h-1 bg-[#4d4d4d] rounded-lg appearance-none cursor-pointer accent-white group-hover:accent-green-500" /> -