summaryrefslogtreecommitdiff
path: root/cli/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-19 01:16:35 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-19 01:16:35 +0100
commitb4b022940b908d8fe490b9f4f68bc60dcfb76cd2 (patch)
treebc93a2f51295f97f971466ab87bdd763c0ed6002 /cli/src
parentba384e5bb6c2455eb431f6e1fcc8b98aca1e9879 (diff)
Syntax and example sections
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/main.rs b/cli/src/main.rs
index 7b961183..39769968 100644
--- a/cli/src/main.rs
+++ b/cli/src/main.rs
@@ -664,7 +664,7 @@ impl FontSearcher {
let path = path.as_ref();
if let Ok(file) = File::open(path) {
if let Ok(mmap) = unsafe { Mmap::map(&file) } {
- for (i, info) in FontInfo::from_data(&mmap).enumerate() {
+ for (i, info) in FontInfo::iter(&mmap).enumerate() {
self.book.push(info);
self.fonts.push(FontSlot {
path: path.into(),