Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/typst-layout/src/math/attach.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Can be re-enabled once `Option::map_or_default` is stabilized
#![allow(unstable_name_collisions)]

use typst_library::diag::SourceResult;
use typst_library::foundations::{Packed, StyleChain, SymbolElem};
use typst_library::layout::{Abs, Axis, Corner, Frame, Point, Rel, Size};
Expand Down
2 changes: 1 addition & 1 deletion crates/typst-library/src/visualize/image/pdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl PdfImage {
}

/// Returns the PDF page of the image.
pub fn page(&self) -> &Page {
pub fn page(&self) -> &Page<'_> {
&self.document().pdf().pages()[self.0.page_index]
}

Expand Down
Loading