iron / iron/staticfile

Not working with iron 0.6

Open
#103 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
66
Forks
57
PR merge metrics
No merged PRs in 30d

Description

I recently updated to iron 0.6, so I updated mount to 0.4 and staticfile to 0.5, and now it won't compile with the following error:

`the trait for<'r, 'r, 'r> std::ops::Fn<(&'r mut iron::Request<'r, 'r>,)> is not implemented for staticfile::Static`
`required because of the requirements on the impl of iron::Handler for staticfile::Static`

on this line:

`mount.mount(prefix, Static::new(Path::new(path)));`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.