diff options
author | 2025-02-25 18:32:58 +0000 | |
---|---|---|
committer | 2025-02-25 18:32:58 +0000 | |
commit | f0f82bf1f9be43b11e355b17f25d276220a600ec (patch) | |
tree | 15996e463d2f3418c9ed19cba33b720dfbf59778 /src/xml/composers.rs | |
parent | fe389c38ca2ff23e3f2bd2305b455e4d551a9ccc (diff) | |
download | peanuts-f0f82bf1f9be43b11e355b17f25d276220a600ec.tar.gz peanuts-f0f82bf1f9be43b11e355b17f25d276220a600ec.tar.bz2 peanuts-f0f82bf1f9be43b11e355b17f25d276220a600ec.zip |
cleanup
Diffstat (limited to 'src/xml/composers.rs')
-rw-r--r-- | src/xml/composers.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xml/composers.rs b/src/xml/composers.rs index b8fbe13..8299708 100644 --- a/src/xml/composers.rs +++ b/src/xml/composers.rs @@ -19,7 +19,7 @@ use super::{ /// Compact Composer trait, can create different trait later for pretty composition pub trait Composer<'s> { - async fn write<W>(&self, writer: &mut W) -> io::Result<()> + fn write<W>(&self, writer: &mut W) -> impl std::future::Future<Output = io::Result<()>> where W: Unpin + AsyncWrite; } @@ -817,7 +817,8 @@ impl<'s> Composer<'s> for Content<'s> { ContentItem::CDSect(cd_sect) => cd_sect.write(writer).await?, ContentItem::PI(pi) => pi.write(writer).await?, ContentItem::Comment(comment) => comment.write(writer).await?, - _ => todo!("verify no split chardata"), + // TODO: verify no split chardata + // _ => todo!("verify no split chardata"), } if let Some(char_data) = char_data { char_data.write(writer).await?; |