Skip to content
New issue

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

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

Already on GitHub? # to your account

Not working with iron 0.6 #103

Open
AlbertoElias opened this issue Feb 13, 2018 · 2 comments
Open

Not working with iron 0.6 #103

AlbertoElias opened this issue Feb 13, 2018 · 2 comments

Comments

@AlbertoElias
Copy link

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)));

@zgtm
Copy link

zgtm commented Feb 20, 2019

Have you tried a cargo update to see whether you had some old crates lying around?

Can you provide a minimal example? staticfile seems to work fine for me with iron 0.6. Maybe the problem only occurs in combination with mount?

@dvberkel
Copy link

I had a similar problem and cargo update suggestion worked for me

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

No branches or pull requests

3 participants