Skip to content

Commit dca173c

Browse files
thanks clippy
1 parent 095f885 commit dca173c

File tree

1 file changed

+2
-2
lines changed
  • crates/djls-template-ast/src

1 file changed

+2
-2
lines changed

crates/djls-template-ast/src/ast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ impl Block {
185185
}
186186
}
187187

188-
pub fn closing(&self) -> Option<&Box<Block>> {
188+
pub fn closing(&self) -> Option<&Block> {
189189
match self {
190-
Block::Block { closing, .. } => closing.as_ref(),
190+
Block::Block { closing, .. } => closing.as_deref(),
191191
_ => None,
192192
}
193193
}

0 commit comments

Comments
 (0)