1
Fork 0
mirror of https://github.com/RGBCube/GDUS synced 2025-07-29 05:57:45 +00:00

Remove useless cast

This commit is contained in:
RGBCube 2024-01-10 09:22:05 +03:00
parent c521ad4e82
commit f489bf90d6
No known key found for this signature in database

View file

@ -37,7 +37,7 @@ async fn view(data: Data<SqlitePool>) -> web::Result<Markup> {
.map(|(date_time, message, led)| { .map(|(date_time, message, led)| {
let local_time = Local.from_local_datetime(&date_time).unwrap(); let local_time = Local.from_local_datetime(&date_time).unwrap();
( (
local_time.timestamp() as i64, local_time.timestamp(),
local_time.format("%Y/%m/%d %H:%M").to_string(), local_time.format("%Y/%m/%d %H:%M").to_string(),
message, message,
led, led,