build: allow dead_code on CommentCountResponse for WASM builds

This commit is contained in:
xfy 2026-06-16 17:12:35 +08:00
parent 1444ccef86
commit 2dcd300930

View File

@ -33,7 +33,11 @@ pub struct CommentTreeResponse {
}
/// 评论计数响应。
///
/// 此类型仅在服务端函数体中构造;保留 `#[allow(dead_code)]` 以避免 WASM 构建中
/// 因函数体被剥离而产生的未使用警告。
#[derive(Debug, Clone, Serialize, Deserialize)]
#[allow(dead_code)]
pub struct CommentCountResponse {
/// 评论数量。
pub count: i64,