chore: format with cargo fix

This commit is contained in:
xfy 2026-06-03 10:12:04 +08:00
parent 0290f4d2e7
commit e6c3cacf12
2 changed files with 2 additions and 3 deletions

View File

@ -57,11 +57,11 @@ pub fn Posts() -> Element {
Ok(CreatePostResponse { success: true, .. }) => {
posts_res.restart();
}
Ok(CreatePostResponse { success: false, message, .. }) => {
Ok(CreatePostResponse { success: false, message: _, .. }) => {
#[cfg(target_arch = "wasm32")]
web_sys::window().map(|w| w.alert_with_message(&message).ok());
}
Err(e) => {
Err(_e) => {
#[cfg(target_arch = "wasm32")]
web_sys::window().map(|w| w.alert_with_message(&format!("删除失败: {}", e)).ok());
}

View File

@ -3,7 +3,6 @@ use dioxus::prelude::*;
#[cfg(target_arch = "wasm32")]
use wasm_bindgen::JsCast;
use crate::api::posts::{create_post, CreatePostResponse};
use crate::components::write_skeleton::WriteSkeleton;
#[component]