Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Nov 6, 2024
1 parent 04a61fd commit 981ec90
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,10 +667,15 @@ impl Entry {
/// before calling [`Self::content_bytes`].
#[uniffi::method(async_runtime = "tokio")]
pub async fn content_bytes(&self, doc: Arc<Doc>) -> Result<Vec<u8>, IrohError> {
let res = self.0.content_bytes(&doc.inner).await.map(|c| c.to_vec()).map_err(|e| {
eprintln!(" failed content bytes: {:?}", e);
e
})?;
let res = self
.0
.content_bytes(&doc.inner)
.await
.map(|c| c.to_vec())
.map_err(|e| {
eprintln!(" failed content bytes: {:?}", e);
e
})?;
Ok(res)
}
}
Expand Down

0 comments on commit 981ec90

Please sign in to comment.