diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-31 19:29:01 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-31 19:29:01 +0100 |
| commit | f72c81a7571888251e23999dcdc3daf7d567d7bf (patch) | |
| tree | 8806a62da981436d293af8ea06cecfe12389fa96 /src/export | |
| parent | ec05ed7e0646d1e8ff76677d0332ddf93ed57b69 (diff) | |
More `PartialEq` impls for `EcoString`
Diffstat (limited to 'src/export')
| -rw-r--r-- | src/export/pdf/page.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/export/pdf/page.rs b/src/export/pdf/page.rs index d1a2e70e..ef6c0ccc 100644 --- a/src/export/pdf/page.rs +++ b/src/export/pdf/page.rs @@ -115,9 +115,7 @@ fn write_page(ctx: &mut PdfContext, page: Page) { link.subtype(AnnotationType::Link).rect(rect); match dest { Destination::Url(uri) => { - link.action() - .action_type(ActionType::Uri) - .uri(Str(uri.as_str().as_bytes())); + link.action().action_type(ActionType::Uri).uri(Str(uri.as_bytes())); } Destination::Internal(loc) => { let index = loc.page.get() - 1; |
