Ogeon/rustful

Unable to build

Closed this issue · 1 comments

wasi commented

getting the following error:

src/router.rs:61:34: 61:42 error: unresolved import `std::collections::hash_map::Occupied`. There is no `Occupied` in `std::collections::hash_map`
src/router.rs:61 use std::collections::hash_map::{Occupied, Vacant};

Occupied and Vacant seems to be renamed to OccupiedEntry and VacantEntry. After replacing these two, the use statemant works without error, but within the match, its not able to find them.

src/router.rs:160:5: 160:18 error: unresolved enum variant, struct or const `OccupiedEntry`
src/router.rs:160               OccupiedEntry(entry) => entry.into_mut(),

My updated Code:
https://github.com/wasi/rustful/blob/vacant_occupied_issue/src/router.rs

I had to shuffle some things around, but this issue and most of the others are fixed now. Thanks for your help :)