From dca173cfb53103dde08e85bc0841fcf5fb4ff952 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 6 Jan 2025 22:58:13 -0600 Subject: [PATCH] thanks clippy --- crates/djls-template-ast/src/ast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/djls-template-ast/src/ast.rs b/crates/djls-template-ast/src/ast.rs index a0effaa..5e8bed4 100644 --- a/crates/djls-template-ast/src/ast.rs +++ b/crates/djls-template-ast/src/ast.rs @@ -185,9 +185,9 @@ impl Block { } } - pub fn closing(&self) -> Option<&Box> { + pub fn closing(&self) -> Option<&Block> { match self { - Block::Block { closing, .. } => closing.as_ref(), + Block::Block { closing, .. } => closing.as_deref(), _ => None, } }