implementing arguments for configs

This commit is contained in:
2024-02-22 02:16:58 -05:00
parent 05fb399530
commit 875ea1e53e
3 changed files with 18 additions and 13 deletions

View File

@@ -163,7 +163,7 @@ impl<'a> TryFrom<&'a AstNode<'a>> for TaskGroup {
if let NodeValue::Heading(heading) = node_ref.value {
let level = heading.level;
let first_child_ref = &node.first_child();
let first_child = if let Some(child) = first_child_ref.borrow() {
let first_child = if let Some(child) = first_child_ref {
child
} else {
return Err(TaskError::ParsingError("Node has no children"));