Skip to content

Commit 57c3a6a

Browse files
committed
og_image: Use new() method in Default implementation
1 parent af714e1 commit 57c3a6a

File tree

1 file changed

+1
-3
lines changed
  • crates/crates_io_og_image/src

1 file changed

+1
-3
lines changed

crates/crates_io_og_image/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,7 @@ impl Default for OgImageGenerator {
272272
/// Creates a default `OgImageGenerator` that assumes the Typst binary is available
273273
/// as "typst" in the system PATH.
274274
fn default() -> Self {
275-
Self {
276-
typst_binary_path: PathBuf::from("typst"),
277-
}
275+
Self::new(PathBuf::from("typst"))
278276
}
279277
}
280278

0 commit comments

Comments
 (0)