Skip to content

Commit

Permalink
cargo bump, rm unused font errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Nov 4, 2023
1 parent 73b56e8 commit ccadb56
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 35 deletions.
54 changes: 27 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions martin/src/fonts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use pbf_font_tools::{render_sdf_glyph, Fontstack, Glyphs, PbfFontError};
use regex::Regex;
use serde::{Deserialize, Serialize};

use crate::fonts::FontError::IoError;
use crate::OptOneMany;

const MAX_UNICODE_CP: usize = 0xFFFF;
Expand Down Expand Up @@ -60,12 +59,6 @@ pub enum FontError {
#[error("No font files found in {}", .0.display())]
NoFontFilesFound(PathBuf),

#[error("Font {} could not be loaded", .0.display())]
UnableToReadFont(PathBuf),

#[error("{0} in file {}", .1.display())]
FontProcessingError(spreet::error::Error, PathBuf),

#[error("Font {0} is missing a family name")]
MissingFamilyName(PathBuf),

Expand Down Expand Up @@ -254,7 +247,7 @@ fn recurse_dirs(
if path.is_dir() {
for dir_entry in path
.read_dir()
.map_err(|e| IoError(e, path.clone()))?
.map_err(|e| FontError::IoError(e, path.clone()))?
.flatten()
{
recurse_dirs(lib, dir_entry.path(), fonts, false)?;
Expand Down

0 comments on commit ccadb56

Please sign in to comment.