Skip to content

Commit ccadb56

Browse files
committed
cargo bump, rm unused font errors
1 parent 73b56e8 commit ccadb56

File tree

2 files changed

+28
-35
lines changed

2 files changed

+28
-35
lines changed

Cargo.lock

+27-27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martin/src/fonts/mod.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use pbf_font_tools::{render_sdf_glyph, Fontstack, Glyphs, PbfFontError};
1414
use regex::Regex;
1515
use serde::{Deserialize, Serialize};
1616

17-
use crate::fonts::FontError::IoError;
1817
use crate::OptOneMany;
1918

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

63-
#[error("Font {} could not be loaded", .0.display())]
64-
UnableToReadFont(PathBuf),
65-
66-
#[error("{0} in file {}", .1.display())]
67-
FontProcessingError(spreet::error::Error, PathBuf),
68-
6962
#[error("Font {0} is missing a family name")]
7063
MissingFamilyName(PathBuf),
7164

@@ -254,7 +247,7 @@ fn recurse_dirs(
254247
if path.is_dir() {
255248
for dir_entry in path
256249
.read_dir()
257-
.map_err(|e| IoError(e, path.clone()))?
250+
.map_err(|e| FontError::IoError(e, path.clone()))?
258251
.flatten()
259252
{
260253
recurse_dirs(lib, dir_entry.path(), fonts, false)?;

0 commit comments

Comments
 (0)