Ogeon / rustful

[OUTDATED] A light HTTP framework for Rust
https://docs.rs/rustful
Apache License 2.0
862 stars 51 forks source link

Unable to build #10

Closed wasi closed 9 years ago

wasi commented 9 years ago

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

Ogeon commented 9 years ago

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