fix(write): add allow lint for unused vars in write_editor

This commit is contained in:
xfy 2026-06-05 17:58:05 +08:00
parent 077573af67
commit 72b932c21b

View File

@ -20,6 +20,7 @@ pub fn WriteEdit(id: i32) -> Element {
write_editor(Some(id))
}
#[allow(unused_mut, unused_variables)]
fn write_editor(post_id: Option<i32>) -> Element {
let is_edit = post_id.is_some();