Skip to content

Commit 6011293

Browse files
committed
og_image: Use new() method in Default implementation
1 parent ae15baa commit 6011293

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
@@ -271,9 +271,7 @@ impl Default for OgImageGenerator {
271271
/// Creates a default `OgImageGenerator` that assumes the Typst binary is available
272272
/// as "typst" in the system PATH.
273273
fn default() -> Self {
274-
Self {
275-
typst_binary_path: PathBuf::from("typst"),
276-
}
274+
Self::new(PathBuf::from("typst"))
277275
}
278276
}
279277

0 commit comments

Comments
 (0)