Skip to content

Commit

Permalink
fix(document): Implemented Clone Trait
Browse files Browse the repository at this point in the history
  • Loading branch information
monoamine11231 committed May 16, 2024
1 parent 387b002 commit b97aef5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ impl Drop for Document {
}
}

impl Clone for Document {
fn clone(&self) -> Self {
unsafe { Document::from_raw(fz_keep_document(context(), self.inner)) }
}
}

#[derive(Debug)]
pub struct PageIter<'a> {
index: i32,
Expand Down

0 comments on commit b97aef5

Please sign in to comment.