Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Over here the inference is not working & think it's a good idea to explicitly tell the type for the compiler. #167

Open
emadbaqeri opened this issue Jan 29, 2023 · 1 comment

Comments

@emadbaqeri
Copy link

let mut fonts = HashMap::new();

Here I think the best way of defining this variable is

use pdf::object::MaybeRef;
use pdf::font::Font;
use std::collections::HashMap;

let mut fonts = HashMap<String, MaybeRef<Font>> = HashMap::new();
@s3bk
Copy link
Contributor

s3bk commented Jan 29, 2023

It compiles for me, but feel free to make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants