♻️ Rename get_children to children (Paragraph)

This commit is contained in:
Belén Albeza
2025-09-02 15:30:54 +02:00
parent d40b68c004
commit 1cf0de395c
2 changed files with 4 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ impl TextContent {
self.paragraphs.push(paragraph);
}
pub fn paragraphs(&self) -> &Vec<Paragraph> {
pub fn paragraphs(&self) -> &[Paragraph] {
&self.paragraphs
}
@@ -194,8 +194,7 @@ impl Paragraph {
self.children = children;
}
#[allow(dead_code)]
pub fn get_children(&self) -> &Vec<TextLeaf> {
pub fn children(&self) -> &[TextLeaf] {
&self.children
}