Skip to content

Commit dee275f

Browse files
committed
feat: 为NodeType枚举添加Clone和Copy派生
1 parent 8748cee commit dee275f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fdt-edit/src/node/view/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ impl core::fmt::Display for NodeView<'_> {
407407
// ---------------------------------------------------------------------------
408408

409409
#[enum_dispatch(ViewOp)]
410+
#[derive(Clone, Copy)]
410411
/// Typed node view enum, allowing pattern matching by node kind.
411412
pub enum NodeType<'a> {
412413
/// A clock provider node (has `#clock-cells` property).

0 commit comments

Comments
 (0)