Closed najamelan closed 6 years ago
You might have two different versions of iron (therefore two versions of Handler
) -- check your Cargo.lock to be sure that your direct dependency and staticfile's dependency on iron are the same version.
Ok, thanks for the hint, I didn't think of that at all. Surely that's what went wrong.
I just try to serve 1 static file, not mount a folder. I tried to figure out from the docs and examples how to do that, but didn't really find out, so looking in the code I saw
Static
implements handler, so I just try to forward the call to handle, but the compiler won't have it and I don't understand why. My handler in itself works.I get the following error:
The trait obviously is in scope, we're implementing it ourselves, so I'm a bit puzzled. Note that changing the use statement to include ::middleware:: don't change anything, nor adding a use to the handle method.
What am I doing wrong?
I can upload a full crate if needed for reproducing.