mirror of
https://github.com/bvanroll/advent_of_code_2022.git
synced 2025-08-29 19:52:38 +00:00
i'm taking a break
This commit is contained in:
@@ -55,4 +55,29 @@ static COUNTRIES: phf::Map<&'static str, &'static str> = phf_map! {
|
||||
"US" => "United States",
|
||||
"UK" => "United Kingdom",
|
||||
};
|
||||
```
|
||||
```
|
||||
|
||||
this gave some issues when trying to import the crate (something with the macro's).
|
||||
I couldn't find the fix for this in the documentation so i decided in the end to go back to the ugly but native solution
|
||||
|
||||
example of the errors:
|
||||
|
||||
```
|
||||
error[E0432]: unresolved import `phf::phf_map`
|
||||
--> src\main.rs:5:5
|
||||
|
|
||||
5 | use phf::phf_map;
|
||||
| ^^^^^^^^^^^^ no `phf_map` in the root
|
||||
```
|
||||
|
||||
|
||||
```
|
||||
error: cannot determine resolution for the macro `phf_map`
|
||||
--> src\main.rs:7:49
|
||||
|
|
||||
7 | pub static scores: phf::Map<&'static str, u8> = phf_map! (
|
||||
| ^^^^^^^
|
||||
|
|
||||
= note: import resolution is stuck, try simplifying macro imports
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user