Skip to content

Commit

Permalink
[IFT] organize imports in font_test_data/ift
Browse files Browse the repository at this point in the history
  • Loading branch information
garretrieger committed Oct 15, 2024
1 parent a3b74ec commit 3c64487
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions font-test-data/src/ift.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

use read_fonts::types::Tag;
use read_fonts::{be_buffer, be_buffer_add, test_helpers::BeBuffer, types::Int24, types::Uint24};
use write_fonts::tables::head::Head;
use write_fonts::tables::loca::Loca;
use write_fonts::tables::maxp::Maxp;
use write_fonts::FontBuilder;
use write_fonts::{
tables::{head::Head, loca::Loca, maxp::Maxp},
FontBuilder,
};

pub static IFT_BASE: &[u8] = include_bytes!("../test_data/ttf/ift_base.ttf");

Expand Down
4 changes: 2 additions & 2 deletions incremental-font-transfer/src/font_patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ pub enum PatchingError {
InternalError,
}

impl PatchingError {
pub(crate) fn from(decoding_error: DecodeError) -> Self {
impl From<DecodeError> for PatchingError {
fn from(decoding_error: DecodeError) -> Self {
match decoding_error {
DecodeError::InitFailure => {
PatchingError::InvalidPatch("Failure to init brotli encoder.")
Expand Down

0 comments on commit 3c64487

Please sign in to comment.