Clean up.

This commit is contained in:
Tom Alexander
2025-02-22 19:24:05 -05:00
parent c501f7cedc
commit 7d73a3c948
4 changed files with 3 additions and 8 deletions

View File

@@ -1,5 +1,3 @@
use std::any::Any;
use super::macros::intermediate;
use super::IObject;
use crate::error::CustomError;
@@ -53,7 +51,7 @@ impl IParagraph {
.iter()
.filter(|c| match c {
IObject::RegularLink(iregular_link) => match &iregular_link.target {
super::LinkTarget::Image { src, alt } => true,
super::LinkTarget::Image { src: _, alt: _ } => true,
_ => false,
},
_ => false,
@@ -62,7 +60,7 @@ impl IParagraph {
num_images == 1
&& self.children.iter().all(|c| match c {
IObject::RegularLink(iregular_link) => match &iregular_link.target {
super::LinkTarget::Image { src, alt } => true,
super::LinkTarget::Image { src: _, alt: _ } => true,
_ => false,
},
IObject::PlainText(iplain_text) => {