From 48e19bcd0289699f7b898c81f0c102637f20cce0 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Mon, 2 Dec 2024 21:21:36 +0000 Subject: [PATCH] [IFT] review suggestions. --- incremental-font-transfer/src/ift_extend.rs | 7 +++++-- resources/scripts/println_ignore.txt | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/incremental-font-transfer/src/ift_extend.rs b/incremental-font-transfer/src/ift_extend.rs index 5088a46e6..b49b4ee62 100644 --- a/incremental-font-transfer/src/ift_extend.rs +++ b/incremental-font-transfer/src/ift_extend.rs @@ -13,7 +13,10 @@ use read_fonts::collections::IntSet; use skrifa::FontRef; #[derive(Parser, Debug)] -#[command(version, about = "Run the IFT extension algorithm (https://w3c.github.io/IFT/Overview.html#extend-font-subset) on an IFT font.", long_about = None)] +#[command( + version, + about = "Run the IFT extension algorithm (https://w3c.github.io/IFT/Overview.html#extend-font-subset) on an IFT font." +)] struct Args { /// The input IFT font file. #[arg(short, long)] @@ -38,7 +41,7 @@ fn main() { let mut font_bytes = std::fs::read(&args.font).unwrap_or_else(|e| { panic!( "Unable to read input font file ({}): {:?}", - args.font.to_str().unwrap_or(""), + args.font.display(), e ) }); diff --git a/resources/scripts/println_ignore.txt b/resources/scripts/println_ignore.txt index f11ded172..7fc9cda24 100644 --- a/resources/scripts/println_ignore.txt +++ b/resources/scripts/println_ignore.txt @@ -3,3 +3,4 @@ otexplorer/src/main.rs otexplorer/src/query.rs read-fonts/build.rs klippa/src/main.rs +incremental-font-transfer/ift_extend.rs